From 81da6c3af9c58a124e67fa75a5fcaa93f932ff24 Mon Sep 17 00:00:00 2001 From: zhaoxiangchun <1422928955@qq.com> Date: Thu, 3 Jun 2021 15:11:22 +0800 Subject: [PATCH] feat: support jdcloud pull monitor metric --- go.mod | 2 +- go.sum | 5 +- pkg/multicloud/jdcloud/monitor.go | 42 ++ pkg/multicloud/jdcloud/shell/monitor.go | 27 ++ .../services/monitor/apis/CreateAlarm.go | 269 +++++++++++ .../services/monitor/apis/DeleteAlarms.go | 101 +++++ .../services/monitor/apis/DescribeAlarm.go | 120 +++++ .../monitor/apis/DescribeAlarmContacts.go | 136 ++++++ .../monitor/apis/DescribeAlarmHistory.go | 252 +++++++++++ .../services/monitor/apis/DescribeAlarms.go | 222 ++++++++++ .../monitor/apis/DescribeCustomMetricData.go | 163 +++++++ .../monitor/apis/DescribeMetricData.go | 240 ++++++++++ .../services/monitor/apis/DescribeMetrics.go | 124 ++++++ .../monitor/apis/DescribeMetricsForAlarm.go | 132 ++++++ .../monitor/apis/DescribeProductsForAlarm.go | 110 +++++ .../services/monitor/apis/DescribeServices.go | 113 +++++ .../monitor/apis/DescribeTagValues.go | 199 +++++++++ .../services/monitor/apis/EnableAlarms.go | 112 +++++ .../services/monitor/apis/LastDownsample.go | 232 ++++++++++ .../monitor/apis/PutCustomMetricData.go | 100 +++++ .../services/monitor/apis/PutMetricData.go | 100 +++++ .../services/monitor/apis/UpdateAlarm.go | 270 +++++++++++ .../services/monitor/client/MonitorClient.go | 419 ++++++++++++++++++ .../services/monitor/models/AddTagsSpec.go | 42 ++ .../monitor/models/AlarmNofityConfig.go | 30 ++ .../services/monitor/models/AlarmUsage.go | 30 ++ .../services/monitor/models/AlarmVo.go | 84 ++++ .../services/monitor/models/AlertChannel.go | 36 ++ .../services/monitor/models/AlertResource.go | 33 ++ .../services/monitor/models/Annotation.go | 39 ++ .../services/monitor/models/Attrs.go | 27 ++ .../services/monitor/models/BaseContact.go | 27 ++ .../services/monitor/models/BaseRule.go | 63 +++ .../services/monitor/models/BaseRuleT.go | 63 +++ .../monitor/models/BasicCustomRule.go | 42 ++ .../monitor/models/BasicDatasource.go | 33 ++ .../services/monitor/models/BasicRule.go | 45 ++ .../monitor/models/BasicRuleDetail.go | 51 +++ .../monitor/models/BatchUpdateWidgetError.go | 30 ++ .../monitor/models/BatchUpdateWidgetSpec.go | 24 + .../services/monitor/models/Chart.go | 30 ++ .../services/monitor/models/ChartDetail.go | 30 ++ .../services/monitor/models/ChartDimension.go | 30 ++ .../monitor/models/ChartDimensionDetail.go | 39 ++ .../monitor/models/CloudMonitorAccessList.go | 27 ++ .../monitor/models/CloudMonitorOption.go | 27 ++ .../models/CloudMonitorServiceCodeItem.go | 27 ++ .../services/monitor/models/CmAlarm.go | 102 +++++ .../services/monitor/models/CmAlarmHistory.go | 99 +++++ .../monitor/models/ConfigNotificationSpec.go | 30 ++ .../services/monitor/models/Contact.go | 27 ++ .../monitor/models/CreateAlarmSpec.go | 66 +++ .../monitor/models/CreateCmAlarmParam.go | 60 +++ .../monitor/models/CreateCmAlarmSpec.go | 27 ++ .../monitor/models/CreateCustomAlarmParam.go | 58 +++ .../monitor/models/CreateCustomQuerySpec.go | 36 ++ .../monitor/models/CreateDashboardSpec.go | 24 + .../monitor/models/CreateDynamicSpec.go | 36 ++ .../models/CreateGrafanaDashboardSpec.go | 36 ++ .../monitor/models/CreateGrafanaFolderReq.go | 24 + .../monitor/models/CreatePanelSpec.go | 51 +++ .../monitor/models/CreateTemplateRequestV2.go | 39 ++ .../models/CreateTemplateResponseEnd.go | 27 ++ .../monitor/models/CreateTemplateSpec.go | 39 ++ .../monitor/models/CreateWidgetSpec.go | 57 +++ .../monitor/models/CustomMetricStatus.go | 33 ++ .../services/monitor/models/CustomQuery.go | 39 ++ .../monitor/models/CustomReportDetailsInfo.go | 36 ++ .../monitor/models/CustomRuleDetail.go | 48 ++ .../services/monitor/models/Dashboard.go | 42 ++ .../services/monitor/models/DashboardInfo.go | 42 ++ .../services/monitor/models/DataInfoB.go | 27 ++ .../services/monitor/models/DataMappingB.go | 33 ++ .../services/monitor/models/DataPoint.go | 27 ++ .../services/monitor/models/DataPointByTag.go | 27 ++ .../services/monitor/models/DataPointX.go | 33 ++ .../services/monitor/models/DataTag.go | 31 ++ .../services/monitor/models/Datasource.go | 36 ++ .../monitor/models/DatasourceDetail.go | 42 ++ .../monitor/models/DatasourceToken.go | 33 ++ .../services/monitor/models/DateAlertCount.go | 27 ++ .../services/monitor/models/DeepLogOption.go | 21 + .../monitor/models/DeleteAlarmsSpec.go | 25 ++ .../monitor/models/DeleteDashboardsSpec.go | 24 + .../monitor/models/DeleteDataBackSpec.go | 24 + .../models/DeleteGrafanaDashboardsSpec.go | 24 + .../models/DeleteGrafanaTemplatesSpec.go | 24 + .../models/DeleteTemplateResponseEnd.go | 24 + .../monitor/models/DeleteTemplateSpec.go | 24 + .../models/DescribeAlarmHistoryDetail.go | 60 +++ .../models/DescribeAlarmHistoryResponseEnd.go | 27 ++ .../models/DescribeCMMetricsDataSpec.go | 40 ++ .../models/DescribeCustomAlarmDetail.go | 61 +++ .../models/DescribeCustomMetricDataSpec.go | 33 ++ .../monitor/models/DescribeDashboardsSpec.go | 32 ++ .../monitor/models/DescribeDatasourceEnd.go | 42 ++ .../monitor/models/DescribeDatasourcesEnd.go | 24 + .../models/DescribeGrafanaDashboardsSpec.go | 32 ++ .../models/DescribeGrafanaTemplatesSpec.go | 37 ++ .../monitor/models/DescribeGroupAlarm.go | 67 +++ .../monitor/models/DescribeMetricDataSpec.go | 60 +++ .../models/DescribeMetricsByNameSpaceSpec.go | 24 + .../DescribeMetricsForCreateAlarmEnd.go | 24 + .../models/DescribeMonitorNamespacesSpec.go | 24 + .../monitor/models/DescribeOrgsEnd.go | 24 + .../monitor/models/DescribeQueryOption.go | 36 ++ .../models/DescribeRawMetricDataSpec.go | 39 ++ .../DescribeResourceMonitorStatusOut.go | 24 + .../models/DescribeTagKeysByMetricSpec.go | 24 + .../models/DescribeTagValuesByTagKeySpec.go | 27 ++ .../models/DescribeTemplateByIDSpec.go | 25 ++ .../monitor/models/DescribeTemplateSpec.go | 37 ++ ...escribeTemplatesByTemplateIDResponseEnd.go | 24 + .../models/DescribeTemplatesResponseEnd.go | 39 ++ .../monitor/models/DescribeTokenEnd.go | 43 ++ .../monitor/models/DescribeTokensEnd.go | 36 ++ .../monitor/models/DescribeTopNSlowSqlSpec.go | 42 ++ .../monitor/models/DescribeUsersEnd.go | 24 + .../services/monitor/models/DescribedAlarm.go | 93 ++++ .../monitor/models/DescribedAlarmHistory.go | 81 ++++ .../monitor/models/DescribedNoticeContacts.go | 27 ++ .../services/monitor/models/DetailAPIB.go | 30 ++ .../services/monitor/models/Dimension.go | 36 ++ .../monitor/models/DimensionParamDetail.go | 33 ++ .../monitor/models/DimensionsParam.go | 30 ++ .../services/monitor/models/Dynamic.go | 48 ++ .../monitor/models/EnableAlarmsSpec.go | 24 + .../models/EnableOneClickAlarmsSpec.go | 27 ++ .../services/monitor/models/Err.go | 33 ++ .../services/monitor/models/Filter.go | 27 ++ .../services/monitor/models/FolderInfo.go | 27 ++ .../monitor/models/GetWidgetDataPointsSpec.go | 66 +++ .../monitor/models/GetWidgetMetricOut.go | 24 + .../services/monitor/models/GroupAlarm.go | 60 +++ .../services/monitor/models/GroupInfo.go | 36 ++ .../services/monitor/models/GroupNode.go | 30 ++ .../services/monitor/models/GroupTree.go | 27 ++ .../services/monitor/models/HandleTags.go | 30 ++ .../services/monitor/models/HawkeyeOption.go | 21 + .../services/monitor/models/KeyInfo.go | 27 ++ .../services/monitor/models/KeyValue.go | 27 ++ .../monitor/models/LastDownsampleRespItem.go | 36 ++ .../services/monitor/models/LinkPolicyInfo.go | 27 ++ .../services/monitor/models/ListAPIB.go | 33 ++ .../services/monitor/models/Location.go | 27 ++ .../services/monitor/models/LvInfoB.go | 27 ++ .../monitor/models/MaintainAuxiliaryTags.go | 42 ++ .../services/monitor/models/Metric.go | 36 ++ .../services/monitor/models/MetricCm.go | 42 ++ .../services/monitor/models/MetricCmByTag.go | 45 ++ .../services/monitor/models/MetricData.go | 30 ++ .../services/monitor/models/MetricDataCm.go | 42 ++ .../monitor/models/MetricDataItemCm.go | 27 ++ .../monitor/models/MetricDataItemCmByTag.go | 27 ++ .../services/monitor/models/MetricDataList.go | 27 ++ .../services/monitor/models/MetricDetail.go | 39 ++ .../services/monitor/models/MetricInfo.go | 30 ++ .../services/monitor/models/NoticeLevel.go | 27 ++ .../services/monitor/models/NoticeOption.go | 36 ++ .../services/monitor/models/NoticeReceiver.go | 36 ++ .../services/monitor/models/NsInfo.go | 27 ++ .../services/monitor/models/NsReportInfo.go | 27 ++ .../services/monitor/models/ObjInfo.go | 30 ++ .../services/monitor/models/OneClickAlarm.go | 49 ++ .../monitor/models/OneClickAlarmOption.go | 46 ++ .../monitor/models/OnlineDynamicSpec.go | 24 + .../services/monitor/models/OpentsdbExtend.go | 27 ++ .../services/monitor/models/OptionsB.go | 33 ++ .../services/monitor/models/Org.go | 30 ++ .../services/monitor/models/OrgUser.go | 33 ++ .../services/monitor/models/Pagination.go | 33 ++ .../services/monitor/models/PanelDimension.go | 36 ++ .../services/monitor/models/PanelEnd.go | 57 +++ .../services/monitor/models/PanelMetric.go | 36 ++ .../monitor/models/PanelMetricForCreate.go | 30 ++ .../monitor/models/PanelMonitorData.go | 51 +++ .../services/monitor/models/PanelPosition.go | 36 ++ .../monitor/models/PanelPositionForUpdate.go | 39 ++ .../services/monitor/models/PanelProduct.go | 39 ++ .../services/monitor/models/PanelResource.go | 30 ++ .../monitor/models/PanelTagResource.go | 30 ++ .../services/monitor/models/ParamInfo.go | 42 ++ .../models/PreviewPanelMonitorDataSpec.go | 45 ++ .../services/monitor/models/Product.go | 39 ++ .../monitor/models/ProductAlertStatistics.go | 30 ++ .../services/monitor/models/ProductB.go | 51 +++ .../services/monitor/models/ProductLine.go | 36 ++ .../monitor/models/ProductLineSpec.go | 33 ++ .../monitor/models/PrometheusExtend.go | 24 + .../services/monitor/models/PutBody.go | 36 ++ .../monitor/models/PutDataBackSpec.go | 24 + .../services/monitor/models/QueryOption.go | 33 ++ .../monitor/models/QueryOptionCreate.go | 33 ++ .../monitor/models/QueryResponseItem.go | 43 ++ .../services/monitor/models/RawData.go | 33 ++ .../services/monitor/models/Resource.go | 30 ++ .../services/monitor/models/ResourceItem.go | 27 ++ .../monitor/models/ResourceMonitorStatus.go | 33 ++ .../services/monitor/models/ResourceOption.go | 27 ++ .../services/monitor/models/RuleCount.go | 30 ++ .../services/monitor/models/RuleCounting.go | 39 ++ .../services/monitor/models/RuleDetail.go | 51 +++ .../monitor/models/RuleMetricDetail.go | 39 ++ .../services/monitor/models/RuleOption.go | 27 ++ .../monitor/models/RuleOptionDetail.go | 27 ++ .../monitor/models/RuleResourceInfo.go | 33 ++ .../services/monitor/models/RuleState.go | 30 ++ .../services/monitor/models/SearchB.go | 30 ++ .../services/monitor/models/SendEmailSpec.go | 30 ++ .../services/monitor/models/SendSmsSpec.go | 30 ++ .../monitor/models/ServiceCodeMetrics.go | 27 ++ .../services/monitor/models/ServiceInfo.go | 39 ++ .../services/monitor/models/ServiceInfoB.go | 60 +++ .../monitor/models/ServiceInfoCreateB.go | 57 +++ .../services/monitor/models/ServiceInfoV2.go | 33 ++ .../services/monitor/models/ServiceMetric.go | 27 ++ .../models/ServiceMetricAggregateItem.go | 27 ++ .../monitor/models/ServiceMetricItem.go | 36 ++ .../services/monitor/models/SqlDataPoint.go | 66 +++ .../services/monitor/models/SqlInfo.go | 66 +++ .../monitor/models/StatisticsProductMetric.go | 33 ++ .../services/monitor/models/StatsItem.go | 39 ++ .../services/monitor/models/StatusB.go | 33 ++ .../services/monitor/models/SubNodeKeys.go | 27 ++ .../monitor/models/SwitchCustomAlarmsSpec.go | 27 ++ .../models/SwitchOneClickAlarmsSpec.go | 27 ++ .../services/monitor/models/TableColumnB.go | 33 ++ .../services/monitor/models/Tag.go | 27 ++ .../services/monitor/models/TagFilter.go | 27 ++ .../services/monitor/models/TagsOption.go | 27 ++ .../services/monitor/models/TemplateInfo.go | 51 +++ .../services/monitor/models/TemplateOption.go | 27 ++ .../services/monitor/models/TemplateParam.go | 39 ++ .../monitor/models/TemplateRulesVo.go | 84 ++++ .../monitor/models/TemplateRulesVoV2.go | 84 ++++ .../services/monitor/models/TemplateVo.go | 54 +++ .../services/monitor/models/TemplateVoV2.go | 75 ++++ .../services/monitor/models/TsdbFilter.go | 36 ++ .../models/UpdateAlarmResourcesSpec.go | 27 ++ .../monitor/models/UpdateAlarmSpec.go | 63 +++ .../monitor/models/UpdateCmAlarmSpec.go | 58 +++ .../monitor/models/UpdateCustomQuerySpec.go | 33 ++ .../monitor/models/UpdateDashboardSpec.go | 30 ++ .../monitor/models/UpdateDataBackSpec.go | 24 + .../monitor/models/UpdateDynamicSpec.go | 33 ++ .../models/UpdateGrafanaDashboardSpec.go | 27 ++ .../models/UpdateOneClickAlarmOption.go | 41 ++ .../models/UpdateOneClickAlarmOptionSpec.go | 38 ++ .../monitor/models/UpdateOneClickAlarmSpec.go | 34 ++ .../monitor/models/UpdatePanelSpec.go | 54 +++ .../models/UpdatePanelsPositionSpec.go | 27 ++ .../monitor/models/UpdateProductLineSpec.go | 30 ++ .../monitor/models/UpdateTemplateRequestV2.go | 39 ++ .../models/UpdateTemplateResponseEnd.go | 27 ++ .../models/UpdateTemplateResponseResultV2.go | 27 ++ .../monitor/models/UpdateTemplateSpec.go | 39 ++ .../monitor/models/UpdateWebHookOut.go | 24 + .../monitor/models/UpdateWebHookReq.go | 36 ++ .../monitor/models/UpdateWebHookSpec.go | 36 ++ .../monitor/models/UpdateWidgetSpec.go | 57 +++ .../services/monitor/models/User.go | 30 ++ .../services/monitor/models/UserRole.go | 27 ++ .../services/monitor/models/Users.go | 24 + .../services/monitor/models/WebHookOption.go | 33 ++ .../services/monitor/models/Widget.go | 57 +++ .../monitor/models/WidgetDataPointItem.go | 30 ++ .../services/monitor/models/WidgetMetric.go | 30 ++ .../services/monitor/models/WidgetPosition.go | 42 ++ .../monitor/models/WidgetRawResource.go | 33 ++ .../monitor/models/WidgetResources.go | 27 ++ .../monitor/models/WidgetSupportedProduct.go | 27 ++ .../monitor/models/WidgetTagResource.go | 33 ++ vendor/modules.txt | 5 +- vendor/yunion.io/x/sqlchemy/parser.go | 2 +- 274 files changed, 12628 insertions(+), 6 deletions(-) create mode 100644 pkg/multicloud/jdcloud/monitor.go create mode 100644 pkg/multicloud/jdcloud/shell/monitor.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/CreateAlarm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DeleteAlarms.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarmContacts.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarmHistory.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarms.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeCustomMetricData.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetricData.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetrics.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetricsForAlarm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeProductsForAlarm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeServices.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeTagValues.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/EnableAlarms.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/LastDownsample.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/PutCustomMetricData.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/PutMetricData.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/UpdateAlarm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/client/MonitorClient.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AddTagsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmNofityConfig.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmUsage.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmVo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlertChannel.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlertResource.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Annotation.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Attrs.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseContact.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseRule.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseRuleT.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicCustomRule.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicDatasource.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicRule.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicRuleDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BatchUpdateWidgetError.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BatchUpdateWidgetSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Chart.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDimension.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDimensionDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorAccessList.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorServiceCodeItem.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CmAlarm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CmAlarmHistory.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ConfigNotificationSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Contact.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateAlarmSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCmAlarmParam.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCmAlarmSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCustomAlarmParam.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCustomQuerySpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateDashboardSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateDynamicSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateGrafanaDashboardSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateGrafanaFolderReq.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreatePanelSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateRequestV2.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateResponseEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateWidgetSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomMetricStatus.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomQuery.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomReportDetailsInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomRuleDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dashboard.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DashboardInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataInfoB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataMappingB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPoint.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPointByTag.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPointX.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataTag.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Datasource.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DatasourceDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DatasourceToken.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DateAlertCount.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeepLogOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteAlarmsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteDashboardsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteDataBackSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteGrafanaDashboardsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteGrafanaTemplatesSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteTemplateResponseEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteTemplateSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeAlarmHistoryDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeAlarmHistoryResponseEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCMMetricsDataSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCustomAlarmDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCustomMetricDataSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDashboardsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDatasourceEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDatasourcesEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGrafanaDashboardsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGrafanaTemplatesSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGroupAlarm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricDataSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricsByNameSpaceSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricsForCreateAlarmEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMonitorNamespacesSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeOrgsEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeQueryOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeRawMetricDataSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeResourceMonitorStatusOut.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTagKeysByMetricSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTagValuesByTagKeySpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplateByIDSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplateSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplatesByTemplateIDResponseEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplatesResponseEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTokenEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTokensEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTopNSlowSqlSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeUsersEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedAlarm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedAlarmHistory.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedNoticeContacts.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DetailAPIB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dimension.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DimensionParamDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DimensionsParam.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dynamic.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/EnableAlarmsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/EnableOneClickAlarmsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Err.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Filter.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/FolderInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GetWidgetDataPointsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GetWidgetMetricOut.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupAlarm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupNode.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupTree.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/HandleTags.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/HawkeyeOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/KeyInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/KeyValue.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LastDownsampleRespItem.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LinkPolicyInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ListAPIB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Location.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LvInfoB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MaintainAuxiliaryTags.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Metric.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricCm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricCmByTag.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricData.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataCm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataItemCm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataItemCmByTag.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataList.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeLevel.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeReceiver.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NsInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NsReportInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ObjInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OneClickAlarm.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OneClickAlarmOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OnlineDynamicSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OpentsdbExtend.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OptionsB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Org.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OrgUser.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Pagination.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelDimension.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMetric.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMetricForCreate.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMonitorData.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelPosition.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelPositionForUpdate.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelProduct.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelResource.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelTagResource.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ParamInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PreviewPanelMonitorDataSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Product.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductAlertStatistics.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductLine.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductLineSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PrometheusExtend.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PutBody.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PutDataBackSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryOptionCreate.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryResponseItem.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RawData.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Resource.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceItem.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceMonitorStatus.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleCount.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleCounting.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleMetricDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleOptionDetail.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleResourceInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleState.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SearchB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SendEmailSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SendSmsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceCodeMetrics.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoCreateB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoV2.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetric.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetricAggregateItem.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetricItem.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SqlDataPoint.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SqlInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatisticsProductMetric.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatsItem.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatusB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SubNodeKeys.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SwitchCustomAlarmsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SwitchOneClickAlarmsSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TableColumnB.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Tag.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TagFilter.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TagsOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateInfo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateParam.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateRulesVo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateRulesVoV2.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateVo.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateVoV2.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TsdbFilter.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateAlarmResourcesSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateAlarmSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateCmAlarmSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateCustomQuerySpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDashboardSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDataBackSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDynamicSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateGrafanaDashboardSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmOptionSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdatePanelSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdatePanelsPositionSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateProductLineSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateRequestV2.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateResponseEnd.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateResponseResultV2.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookOut.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookReq.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWidgetSpec.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/User.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UserRole.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Users.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WebHookOption.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Widget.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetDataPointItem.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetMetric.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetPosition.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetRawResource.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetResources.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetSupportedProduct.go create mode 100644 vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetTagResource.go diff --git a/go.mod b/go.mod index 8ba25507cd..11cd4ec061 100644 --- a/go.mod +++ b/go.mod @@ -154,7 +154,7 @@ require ( yunion.io/x/ovsdb v0.0.0-20200526071744-27bf0940cbc7 yunion.io/x/pkg v0.0.0-20210218105412-13a69f60034c yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e - yunion.io/x/sqlchemy v0.0.0-20210401131841-cdb9ab689824 + yunion.io/x/sqlchemy v0.0.0-20210519174758-cb08030e2008 yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce ) diff --git a/go.sum b/go.sum index dfbe5af789..0fe5f89fca 100644 --- a/go.sum +++ b/go.sum @@ -749,7 +749,6 @@ golang.org/x/sys v0.0.0-20190830023255-19e00faab6ad/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191003212358-c178f38b412c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -931,7 +930,7 @@ yunion.io/x/pkg v0.0.0-20210218105412-13a69f60034c h1:J/joqbA1N2mAlOl0Uqd4LpAq3+ yunion.io/x/pkg v0.0.0-20210218105412-13a69f60034c/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E= yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e h1:v+EzIadodSwkdZ/7bremd7J8J50Cise/HCylsOJngmo= yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e/go.mod h1:0iFKpOs1y4lbCxeOmq3Xx/0AcQoewVPwj62eRluioEo= -yunion.io/x/sqlchemy v0.0.0-20210401131841-cdb9ab689824 h1:3/VcCiO+vr3+zZFLNvre41ARF2xE6NVq6Ue7JPFuJvU= -yunion.io/x/sqlchemy v0.0.0-20210401131841-cdb9ab689824/go.mod h1:FTdwPdGhMgh4E+UFXc9klI1Ok34fMuybTT+jLhOaIjI= +yunion.io/x/sqlchemy v0.0.0-20210519174758-cb08030e2008 h1:h3jv9rx8LhvuuRigVee6vPveMtIybbz66jaMkutCtF4= +yunion.io/x/sqlchemy v0.0.0-20210519174758-cb08030e2008/go.mod h1:FTdwPdGhMgh4E+UFXc9klI1Ok34fMuybTT+jLhOaIjI= yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce h1:kU8xE7O5uZ1GSJVMZHoJ+jrNL7csUQHYGyAPW9QfNpE= yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce/go.mod h1:EP6NSv2C0zzqBDTKumv8hPWLb3XvgMZDHQRfyuOrQng= diff --git a/pkg/multicloud/jdcloud/monitor.go b/pkg/multicloud/jdcloud/monitor.go new file mode 100644 index 0000000000..d195564a51 --- /dev/null +++ b/pkg/multicloud/jdcloud/monitor.go @@ -0,0 +1,42 @@ +package jdcloud + +import ( + jc_apis "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis" + client "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/client" +) + +type DescribeMetricDataRequest struct { + *jc_apis.DescribeMetricDataRequest +} + +type DescribeMetricDataResponse struct { + *jc_apis.DescribeMetricDataResponse +} + +func (r *SRegion) GetMetricsData(req *DescribeMetricDataRequest) (*DescribeMetricDataResponse, error) { + if len(req.RegionId) == 0 { + req.RegionId = r.GetId() + } + monitorClient := client.NewMonitorClient(r.Credential) + response, err := monitorClient.DescribeMetricData(req.DescribeMetricDataRequest) + if err != nil { + return nil, err + } + return &DescribeMetricDataResponse{response}, err +} + +func NewDescribeMetricDataRequestWithAllParams( + regionId string, + metric string, + startTime *string, + endTime *string, + timeInterval *string, + serviceCode *string, + resourceId string, +) *DescribeMetricDataRequest { + var aggrType, downSampleType = "avg", "avg" + request := new(DescribeMetricDataRequest) + request.DescribeMetricDataRequest = jc_apis.NewDescribeMetricDataRequestWithAllParams(regionId, metric, &aggrType, &downSampleType, startTime, endTime, + timeInterval, nil, nil, nil, serviceCode, nil, resourceId) + return request +} diff --git a/pkg/multicloud/jdcloud/shell/monitor.go b/pkg/multicloud/jdcloud/shell/monitor.go new file mode 100644 index 0000000000..49a9df7f5b --- /dev/null +++ b/pkg/multicloud/jdcloud/shell/monitor.go @@ -0,0 +1,27 @@ +package shell + +import ( + "yunion.io/x/onecloud/pkg/multicloud/jdcloud" + "yunion.io/x/onecloud/pkg/util/shellutils" +) + +func init() { + type DescribeMetricDataOptions struct { + /* 监控项英文标识(id) */ + Metric string `help:"metric name"json:"metric"` + TimeInterval string `help:"time interval" choices:"1h|6h|12h|1d|3d|7d|14d" json:"timeInterval"` + ServiceCode string `help:"resource code" choices:"vm" json:"serviceCode"` + ResourceId string `help:"resource id" json:"resourceId"` + } + shellutils.R(&DescribeMetricDataOptions{}, "metric-list", "list metric", func(cli *jdcloud.SRegion, + args *DescribeMetricDataOptions) error { + request := jdcloud.NewDescribeMetricDataRequestWithAllParams(cli.GetId(), + args.Metric, nil, nil, &args.TimeInterval, &args.ServiceCode, args.ResourceId) + response, err := cli.GetMetricsData(request) + if err != nil { + return err + } + printList(response.Result.MetricDatas, 0, 0, 0, nil) + return nil + }) +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/CreateAlarm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/CreateAlarm.go new file mode 100644 index 0000000000..788f401f09 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/CreateAlarm.go @@ -0,0 +1,269 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type CreateAlarmRequest struct { + + core.JDCloudRequest + + /* 弹性伸缩组Id。注:仅ag\asg产品线内部使用 (Optional) */ + AutoScalingPolicyId *string `json:"autoScalingPolicyId"` + + /* 告警通知联系人 (Optional) */ + BaseContact []monitor.BaseContact `json:"baseContact"` + + /* 幂等性校验参数,最长36位,若两个请求clientToken相等,则返回第一次创建的规则id,只创建一次规则 */ + ClientToken string `json:"clientToken"` + + /* 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) */ + DataOwner *int64 `json:"dataOwner"` + + /* 资源维度,可用的维度请使用 describeProductsForAlarm接口查询 (Optional) */ + Dimension *string `json:"dimension"` + + /* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */ + Enabled *int64 `json:"enabled"` + + /* url回调设置数组 (Optional) */ + MultiWebHook []monitor.WebHookOption `json:"multiWebHook"` + + /* 通知策略 (Optional) */ + NoticeOption []monitor.NoticeOption `json:"noticeOption"` + + /* 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。 */ + Product string `json:"product"` + + /* */ + ResourceOption *monitor.ResourceOption `json:"resourceOption"` + + /* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" */ + RuleName string `json:"ruleName"` + + /* */ + RuleOption *monitor.RuleOption `json:"ruleOption"` + + /* 规则类型, 默认为resourceMonitor (Optional) */ + RuleType *string `json:"ruleType"` + + /* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足) (Optional) */ + Tags *interface{} `json:"tags"` + + /* (Optional) */ + WebHookOption *monitor.WebHookOption `json:"webHookOption"` +} + +/* + * param clientToken: 幂等性校验参数,最长36位,若两个请求clientToken相等,则返回第一次创建的规则id,只创建一次规则 (Required) + * param product: 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。 (Required) + * param resourceOption: (Required) + * param ruleName: 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" (Required) + * param ruleOption: (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewCreateAlarmRequest( + clientToken string, + product string, + resourceOption *monitor.ResourceOption, + ruleName string, + ruleOption *monitor.RuleOption, +) *CreateAlarmRequest { + + return &CreateAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms", + Method: "POST", + Header: nil, + Version: "v2", + }, + ClientToken: clientToken, + Product: product, + ResourceOption: resourceOption, + RuleName: ruleName, + RuleOption: ruleOption, + } +} + +/* + * param autoScalingPolicyId: 弹性伸缩组Id。注:仅ag\asg产品线内部使用 (Optional) + * param baseContact: 告警通知联系人 (Optional) + * param clientToken: 幂等性校验参数,最长36位,若两个请求clientToken相等,则返回第一次创建的规则id,只创建一次规则 (Required) + * param dataOwner: 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) + * param dimension: 资源维度,可用的维度请使用 describeProductsForAlarm接口查询 (Optional) + * param enabled: 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) + * param multiWebHook: url回调设置数组 (Optional) + * param noticeOption: 通知策略 (Optional) + * param product: 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。 (Required) + * param resourceOption: (Required) + * param ruleName: 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" (Required) + * param ruleOption: (Required) + * param ruleType: 规则类型, 默认为resourceMonitor (Optional) + * param tags: 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足) (Optional) + * param webHookOption: (Optional) + */ +func NewCreateAlarmRequestWithAllParams( + autoScalingPolicyId *string, + baseContact []monitor.BaseContact, + clientToken string, + dataOwner *int64, + dimension *string, + enabled *int64, + multiWebHook []monitor.WebHookOption, + noticeOption []monitor.NoticeOption, + product string, + resourceOption *monitor.ResourceOption, + ruleName string, + ruleOption *monitor.RuleOption, + ruleType *string, + tags *interface{}, + webHookOption *monitor.WebHookOption, +) *CreateAlarmRequest { + + return &CreateAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms", + Method: "POST", + Header: nil, + Version: "v2", + }, + AutoScalingPolicyId: autoScalingPolicyId, + BaseContact: baseContact, + ClientToken: clientToken, + DataOwner: dataOwner, + Dimension: dimension, + Enabled: enabled, + MultiWebHook: multiWebHook, + NoticeOption: noticeOption, + Product: product, + ResourceOption: resourceOption, + RuleName: ruleName, + RuleOption: ruleOption, + RuleType: ruleType, + Tags: tags, + WebHookOption: webHookOption, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewCreateAlarmRequestWithoutParam() *CreateAlarmRequest { + + return &CreateAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms", + Method: "POST", + Header: nil, + Version: "v2", + }, + } +} + +/* param autoScalingPolicyId: 弹性伸缩组Id。注:仅ag\asg产品线内部使用(Optional) */ +func (r *CreateAlarmRequest) SetAutoScalingPolicyId(autoScalingPolicyId string) { + r.AutoScalingPolicyId = &autoScalingPolicyId +} + +/* param baseContact: 告警通知联系人(Optional) */ +func (r *CreateAlarmRequest) SetBaseContact(baseContact []monitor.BaseContact) { + r.BaseContact = baseContact +} + +/* param clientToken: 幂等性校验参数,最长36位,若两个请求clientToken相等,则返回第一次创建的规则id,只创建一次规则(Required) */ +func (r *CreateAlarmRequest) SetClientToken(clientToken string) { + r.ClientToken = clientToken +} + +/* param dataOwner: 数据所有者,1云监控控制台; 2云鼎。默认为1(Optional) */ +func (r *CreateAlarmRequest) SetDataOwner(dataOwner int64) { + r.DataOwner = &dataOwner +} + +/* param dimension: 资源维度,可用的维度请使用 describeProductsForAlarm接口查询(Optional) */ +func (r *CreateAlarmRequest) SetDimension(dimension string) { + r.Dimension = &dimension +} + +/* param enabled: 是否启用, 1表示启用规则,0表示禁用规则,默认为1(Optional) */ +func (r *CreateAlarmRequest) SetEnabled(enabled int64) { + r.Enabled = &enabled +} + +/* param multiWebHook: url回调设置数组(Optional) */ +func (r *CreateAlarmRequest) SetMultiWebHook(multiWebHook []monitor.WebHookOption) { + r.MultiWebHook = multiWebHook +} + +/* param noticeOption: 通知策略(Optional) */ +func (r *CreateAlarmRequest) SetNoticeOption(noticeOption []monitor.NoticeOption) { + r.NoticeOption = noticeOption +} + +/* param product: 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。(Required) */ +func (r *CreateAlarmRequest) SetProduct(product string) { + r.Product = product +} + +/* param resourceOption: (Required) */ +func (r *CreateAlarmRequest) SetResourceOption(resourceOption *monitor.ResourceOption) { + r.ResourceOption = resourceOption +} + +/* param ruleName: 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_"(Required) */ +func (r *CreateAlarmRequest) SetRuleName(ruleName string) { + r.RuleName = ruleName +} + +/* param ruleOption: (Required) */ +func (r *CreateAlarmRequest) SetRuleOption(ruleOption *monitor.RuleOption) { + r.RuleOption = ruleOption +} + +/* param ruleType: 规则类型, 默认为resourceMonitor(Optional) */ +func (r *CreateAlarmRequest) SetRuleType(ruleType string) { + r.RuleType = &ruleType +} + +/* param tags: 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足)(Optional) */ +func (r *CreateAlarmRequest) SetTags(tags interface{}) { + r.Tags = &tags +} + +/* param webHookOption: (Optional) */ +func (r *CreateAlarmRequest) SetWebHookOption(webHookOption *monitor.WebHookOption) { + r.WebHookOption = webHookOption +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r CreateAlarmRequest) GetRegionId() string { + return "" +} + +type CreateAlarmResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result CreateAlarmResult `json:"result"` +} + +type CreateAlarmResult struct { + AlarmId string `json:"alarmId"` + RuleIds []int64 `json:"ruleIds"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DeleteAlarms.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DeleteAlarms.go new file mode 100644 index 0000000000..b7c9ce7c7c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DeleteAlarms.go @@ -0,0 +1,101 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" +) + +type DeleteAlarmsRequest struct { + + core.JDCloudRequest + + /* 规则id */ + AlarmId string `json:"alarmId"` +} + +/* + * param alarmId: 规则id (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDeleteAlarmsRequest( + alarmId string, +) *DeleteAlarmsRequest { + + return &DeleteAlarmsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}", + Method: "DELETE", + Header: nil, + Version: "v2", + }, + AlarmId: alarmId, + } +} + +/* + * param alarmId: 规则id (Required) + */ +func NewDeleteAlarmsRequestWithAllParams( + alarmId string, +) *DeleteAlarmsRequest { + + return &DeleteAlarmsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}", + Method: "DELETE", + Header: nil, + Version: "v2", + }, + AlarmId: alarmId, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDeleteAlarmsRequestWithoutParam() *DeleteAlarmsRequest { + + return &DeleteAlarmsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}", + Method: "DELETE", + Header: nil, + Version: "v2", + }, + } +} + +/* param alarmId: 规则id(Required) */ +func (r *DeleteAlarmsRequest) SetAlarmId(alarmId string) { + r.AlarmId = alarmId +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DeleteAlarmsRequest) GetRegionId() string { + return "" +} + +type DeleteAlarmsResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DeleteAlarmsResult `json:"result"` +} + +type DeleteAlarmsResult struct { + Success bool `json:"success"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarm.go new file mode 100644 index 0000000000..e84271d226 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarm.go @@ -0,0 +1,120 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeAlarmRequest struct { + + core.JDCloudRequest + + /* 规则id */ + AlarmId string `json:"alarmId"` +} + +/* + * param alarmId: 规则id (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeAlarmRequest( + alarmId string, +) *DescribeAlarmRequest { + + return &DescribeAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}", + Method: "GET", + Header: nil, + Version: "v2", + }, + AlarmId: alarmId, + } +} + +/* + * param alarmId: 规则id (Required) + */ +func NewDescribeAlarmRequestWithAllParams( + alarmId string, +) *DescribeAlarmRequest { + + return &DescribeAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}", + Method: "GET", + Header: nil, + Version: "v2", + }, + AlarmId: alarmId, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeAlarmRequestWithoutParam() *DescribeAlarmRequest { + + return &DescribeAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param alarmId: 规则id(Required) */ +func (r *DescribeAlarmRequest) SetAlarmId(alarmId string) { + r.AlarmId = alarmId +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeAlarmRequest) GetRegionId() string { + return "" +} + +type DescribeAlarmResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeAlarmResult `json:"result"` +} + +type DescribeAlarmResult struct { + AlarmId string `json:"alarmId"` + AlarmStatus int64 `json:"alarmStatus"` + AlarmStatusList []int64 `json:"alarmStatusList"` + BaseContact []monitor.BaseContact `json:"baseContact"` + CreateTime string `json:"createTime"` + Dimension string `json:"dimension"` + DimensionName string `json:"dimensionName"` + Enabled int64 `json:"enabled"` + MultiWebHook []monitor.WebHookOption `json:"multiWebHook"` + NoticeOption []monitor.NoticeOption `json:"noticeOption"` + Product string `json:"product"` + ProductName string `json:"productName"` + ResourceOption monitor.ResourceOption `json:"resourceOption"` + RuleName string `json:"ruleName"` + RuleOption monitor.RuleOptionDetail `json:"ruleOption"` + RuleType string `json:"ruleType"` + RuleVersion string `json:"ruleVersion"` + Tags interface{} `json:"tags"` + WebHookOption monitor.WebHookOption `json:"webHookOption"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarmContacts.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarmContacts.go new file mode 100644 index 0000000000..b3352bb94d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarmContacts.go @@ -0,0 +1,136 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeAlarmContactsRequest struct { + + core.JDCloudRequest + + /* 规则id */ + AlarmId string `json:"alarmId"` + + /* 当前所在页,默认为1 (Optional) */ + PageNumber *int `json:"pageNumber"` + + /* 页面大小,默认为20;取值范围[1, 100] (Optional) */ + PageSize *int `json:"pageSize"` + + /* 联系人类型。0,联系人分组; 1,联系人 (Optional) */ + ReferenceType *int `json:"referenceType"` +} + +/* + * param alarmId: 规则id (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeAlarmContactsRequest( + alarmId string, +) *DescribeAlarmContactsRequest { + + return &DescribeAlarmContactsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}/contacts", + Method: "GET", + Header: nil, + Version: "v2", + }, + AlarmId: alarmId, + } +} + +/* + * param alarmId: 规则id (Required) + * param pageNumber: 当前所在页,默认为1 (Optional) + * param pageSize: 页面大小,默认为20;取值范围[1, 100] (Optional) + * param referenceType: 联系人类型。0,联系人分组; 1,联系人 (Optional) + */ +func NewDescribeAlarmContactsRequestWithAllParams( + alarmId string, + pageNumber *int, + pageSize *int, + referenceType *int, +) *DescribeAlarmContactsRequest { + + return &DescribeAlarmContactsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}/contacts", + Method: "GET", + Header: nil, + Version: "v2", + }, + AlarmId: alarmId, + PageNumber: pageNumber, + PageSize: pageSize, + ReferenceType: referenceType, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeAlarmContactsRequestWithoutParam() *DescribeAlarmContactsRequest { + + return &DescribeAlarmContactsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}/contacts", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param alarmId: 规则id(Required) */ +func (r *DescribeAlarmContactsRequest) SetAlarmId(alarmId string) { + r.AlarmId = alarmId +} + +/* param pageNumber: 当前所在页,默认为1(Optional) */ +func (r *DescribeAlarmContactsRequest) SetPageNumber(pageNumber int) { + r.PageNumber = &pageNumber +} + +/* param pageSize: 页面大小,默认为20;取值范围[1, 100](Optional) */ +func (r *DescribeAlarmContactsRequest) SetPageSize(pageSize int) { + r.PageSize = &pageSize +} + +/* param referenceType: 联系人类型。0,联系人分组; 1,联系人(Optional) */ +func (r *DescribeAlarmContactsRequest) SetReferenceType(referenceType int) { + r.ReferenceType = &referenceType +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeAlarmContactsRequest) GetRegionId() string { + return "" +} + +type DescribeAlarmContactsResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeAlarmContactsResult `json:"result"` +} + +type DescribeAlarmContactsResult struct { + ContactsList []monitor.DescribedNoticeContacts `json:"contactsList"` + Total int64 `json:"total"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarmHistory.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarmHistory.go new file mode 100644 index 0000000000..aedf58b69c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarmHistory.go @@ -0,0 +1,252 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeAlarmHistoryRequest struct { + + core.JDCloudRequest + + /* 当前所在页,默认为1 (Optional) */ + PageNumber *int `json:"pageNumber"` + + /* 页面大小,默认为20;取值范围[1, 100] (Optional) */ + PageSize *int `json:"pageSize"` + + /* 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) */ + DataOwner *int `json:"dataOwner"` + + /* 产品线标识,同一个产品线下可能存在多个product,如(redis下有redis2.8cluster、redis4.0) (Optional) */ + ServiceCode *string `json:"serviceCode"` + + /* 产品标识,默认返回该product下所有dimension的数据。eg:product=redis2.8cluster(redis2.8cluster产品下包含redis2.8-shard与redis2.8-proxy、redis2.8-instance多个维度)。 (Optional) */ + Product *string `json:"product"` + + /* 维度标识、指定该参数时,查询只返回该维度的数据。如redis2.8cluster下存在实例、分片等多个维度 (Optional) */ + Dimension *string `json:"dimension"` + + /* 根据region筛选对应region的资源的报警历史 (Optional) */ + Region *string `json:"region"` + + /* 正在报警, 取值为1 (Optional) */ + IsAlarming *int `json:"isAlarming"` + + /* 报警的状态,1为报警恢复、2为报警、4为报警恢复无数据 (Optional) */ + Status *int `json:"status"` + + /* 开始时间 (Optional) */ + StartTime *string `json:"startTime"` + + /* 结束时间 (Optional) */ + EndTime *string `json:"endTime"` + + /* 规则类型,默认查询1, 1表示资源监控,6表示站点监控,7表示可用性监控 (Optional) */ + RuleType *int `json:"ruleType"` + + /* 规则名称模糊搜索 (Optional) */ + RuleName *string `json:"ruleName"` + + /* serviceCodes - 产品线servicecode,精确匹配,支持多个 +resourceIds - 资源Id,精确匹配,支持多个(必须指定serviceCode才会在该serviceCode下根据resourceIds过滤,否则该参数不生效) +alarmIds - 规则Id,精确匹配,支持多个 (Optional) */ + Filters []monitor.Filter `json:"filters"` +} + +/* + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeAlarmHistoryRequest( +) *DescribeAlarmHistoryRequest { + + return &DescribeAlarmHistoryRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarmsHistory", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* + * param pageNumber: 当前所在页,默认为1 (Optional) + * param pageSize: 页面大小,默认为20;取值范围[1, 100] (Optional) + * param dataOwner: 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) + * param serviceCode: 产品线标识,同一个产品线下可能存在多个product,如(redis下有redis2.8cluster、redis4.0) (Optional) + * param product: 产品标识,默认返回该product下所有dimension的数据。eg:product=redis2.8cluster(redis2.8cluster产品下包含redis2.8-shard与redis2.8-proxy、redis2.8-instance多个维度)。 (Optional) + * param dimension: 维度标识、指定该参数时,查询只返回该维度的数据。如redis2.8cluster下存在实例、分片等多个维度 (Optional) + * param region: 根据region筛选对应region的资源的报警历史 (Optional) + * param isAlarming: 正在报警, 取值为1 (Optional) + * param status: 报警的状态,1为报警恢复、2为报警、4为报警恢复无数据 (Optional) + * param startTime: 开始时间 (Optional) + * param endTime: 结束时间 (Optional) + * param ruleType: 规则类型,默认查询1, 1表示资源监控,6表示站点监控,7表示可用性监控 (Optional) + * param ruleName: 规则名称模糊搜索 (Optional) + * param filters: serviceCodes - 产品线servicecode,精确匹配,支持多个 +resourceIds - 资源Id,精确匹配,支持多个(必须指定serviceCode才会在该serviceCode下根据resourceIds过滤,否则该参数不生效) +alarmIds - 规则Id,精确匹配,支持多个 (Optional) + */ +func NewDescribeAlarmHistoryRequestWithAllParams( + pageNumber *int, + pageSize *int, + dataOwner *int, + serviceCode *string, + product *string, + dimension *string, + region *string, + isAlarming *int, + status *int, + startTime *string, + endTime *string, + ruleType *int, + ruleName *string, + filters []monitor.Filter, +) *DescribeAlarmHistoryRequest { + + return &DescribeAlarmHistoryRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarmsHistory", + Method: "GET", + Header: nil, + Version: "v2", + }, + PageNumber: pageNumber, + PageSize: pageSize, + DataOwner: dataOwner, + ServiceCode: serviceCode, + Product: product, + Dimension: dimension, + Region: region, + IsAlarming: isAlarming, + Status: status, + StartTime: startTime, + EndTime: endTime, + RuleType: ruleType, + RuleName: ruleName, + Filters: filters, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeAlarmHistoryRequestWithoutParam() *DescribeAlarmHistoryRequest { + + return &DescribeAlarmHistoryRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarmsHistory", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param pageNumber: 当前所在页,默认为1(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetPageNumber(pageNumber int) { + r.PageNumber = &pageNumber +} + +/* param pageSize: 页面大小,默认为20;取值范围[1, 100](Optional) */ +func (r *DescribeAlarmHistoryRequest) SetPageSize(pageSize int) { + r.PageSize = &pageSize +} + +/* param dataOwner: 数据所有者,1云监控控制台; 2云鼎。默认为1(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetDataOwner(dataOwner int) { + r.DataOwner = &dataOwner +} + +/* param serviceCode: 产品线标识,同一个产品线下可能存在多个product,如(redis下有redis2.8cluster、redis4.0)(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetServiceCode(serviceCode string) { + r.ServiceCode = &serviceCode +} + +/* param product: 产品标识,默认返回该product下所有dimension的数据。eg:product=redis2.8cluster(redis2.8cluster产品下包含redis2.8-shard与redis2.8-proxy、redis2.8-instance多个维度)。(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetProduct(product string) { + r.Product = &product +} + +/* param dimension: 维度标识、指定该参数时,查询只返回该维度的数据。如redis2.8cluster下存在实例、分片等多个维度(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetDimension(dimension string) { + r.Dimension = &dimension +} + +/* param region: 根据region筛选对应region的资源的报警历史(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetRegion(region string) { + r.Region = ®ion +} + +/* param isAlarming: 正在报警, 取值为1(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetIsAlarming(isAlarming int) { + r.IsAlarming = &isAlarming +} + +/* param status: 报警的状态,1为报警恢复、2为报警、4为报警恢复无数据(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetStatus(status int) { + r.Status = &status +} + +/* param startTime: 开始时间(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetStartTime(startTime string) { + r.StartTime = &startTime +} + +/* param endTime: 结束时间(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetEndTime(endTime string) { + r.EndTime = &endTime +} + +/* param ruleType: 规则类型,默认查询1, 1表示资源监控,6表示站点监控,7表示可用性监控(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetRuleType(ruleType int) { + r.RuleType = &ruleType +} + +/* param ruleName: 规则名称模糊搜索(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetRuleName(ruleName string) { + r.RuleName = &ruleName +} + +/* param filters: serviceCodes - 产品线servicecode,精确匹配,支持多个 +resourceIds - 资源Id,精确匹配,支持多个(必须指定serviceCode才会在该serviceCode下根据resourceIds过滤,否则该参数不生效) +alarmIds - 规则Id,精确匹配,支持多个(Optional) */ +func (r *DescribeAlarmHistoryRequest) SetFilters(filters []monitor.Filter) { + r.Filters = filters +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeAlarmHistoryRequest) GetRegionId() string { + return "" +} + +type DescribeAlarmHistoryResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeAlarmHistoryResult `json:"result"` +} + +type DescribeAlarmHistoryResult struct { + AlarmHistoryList []monitor.DescribedAlarmHistory `json:"alarmHistoryList"` + NumberPages int64 `json:"numberPages"` + NumberRecords int64 `json:"numberRecords"` + PageNumber int64 `json:"pageNumber"` + PageSize int64 `json:"pageSize"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarms.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarms.go new file mode 100644 index 0000000000..1f26ebb8b0 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeAlarms.go @@ -0,0 +1,222 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeAlarmsRequest struct { + + core.JDCloudRequest + + /* 当前所在页,默认为1 (Optional) */ + PageNumber *int `json:"pageNumber"` + + /* 页面大小,默认为20;取值范围[1, 100] (Optional) */ + PageSize *int `json:"pageSize"` + + /* 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) */ + DataOwner *int `json:"dataOwner"` + + /* 产品线标识,同一个产品线下可能存在多个product,如(redis下有redis2.8cluster、redis4.0) (Optional) */ + ServiceCode *string `json:"serviceCode"` + + /* 产品标识,如redis下分多个产品(redis2.8cluster、redis4.0)。同时指定serviceCode与product时,product优先生效 (Optional) */ + Product *string `json:"product"` + + /* 产品下的维度标识,指定dimension时必须指定product (Optional) */ + Dimension *string `json:"dimension"` + + /* 规则名称 (Optional) */ + RuleName *string `json:"ruleName"` + + /* 规则类型, 1表示资源监控,6表示站点监控,7表示可用性监控 (Optional) */ + RuleType *int `json:"ruleType"` + + /* 规则状态:1为启用,0为禁用 (Optional) */ + Enabled *int `json:"enabled"` + + /* 资源的规则状态 2:报警、4:数据不足 (Optional) */ + RuleStatus *int `json:"ruleStatus"` + + /* 服务码或资源Id列表 +products - 产品product,精确匹配,支持多个 +resourceIds - 资源Id,精确匹配,支持多个(必须指定serviceCode、product或dimension,否则该参数不生效) +alarmIds - 规则id,精确匹配,支持多个 (Optional) */ + Filters []monitor.Filter `json:"filters"` +} + +/* + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeAlarmsRequest( +) *DescribeAlarmsRequest { + + return &DescribeAlarmsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* + * param pageNumber: 当前所在页,默认为1 (Optional) + * param pageSize: 页面大小,默认为20;取值范围[1, 100] (Optional) + * param dataOwner: 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) + * param serviceCode: 产品线标识,同一个产品线下可能存在多个product,如(redis下有redis2.8cluster、redis4.0) (Optional) + * param product: 产品标识,如redis下分多个产品(redis2.8cluster、redis4.0)。同时指定serviceCode与product时,product优先生效 (Optional) + * param dimension: 产品下的维度标识,指定dimension时必须指定product (Optional) + * param ruleName: 规则名称 (Optional) + * param ruleType: 规则类型, 1表示资源监控,6表示站点监控,7表示可用性监控 (Optional) + * param enabled: 规则状态:1为启用,0为禁用 (Optional) + * param ruleStatus: 资源的规则状态 2:报警、4:数据不足 (Optional) + * param filters: 服务码或资源Id列表 +products - 产品product,精确匹配,支持多个 +resourceIds - 资源Id,精确匹配,支持多个(必须指定serviceCode、product或dimension,否则该参数不生效) +alarmIds - 规则id,精确匹配,支持多个 (Optional) + */ +func NewDescribeAlarmsRequestWithAllParams( + pageNumber *int, + pageSize *int, + dataOwner *int, + serviceCode *string, + product *string, + dimension *string, + ruleName *string, + ruleType *int, + enabled *int, + ruleStatus *int, + filters []monitor.Filter, +) *DescribeAlarmsRequest { + + return &DescribeAlarmsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms", + Method: "GET", + Header: nil, + Version: "v2", + }, + PageNumber: pageNumber, + PageSize: pageSize, + DataOwner: dataOwner, + ServiceCode: serviceCode, + Product: product, + Dimension: dimension, + RuleName: ruleName, + RuleType: ruleType, + Enabled: enabled, + RuleStatus: ruleStatus, + Filters: filters, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeAlarmsRequestWithoutParam() *DescribeAlarmsRequest { + + return &DescribeAlarmsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param pageNumber: 当前所在页,默认为1(Optional) */ +func (r *DescribeAlarmsRequest) SetPageNumber(pageNumber int) { + r.PageNumber = &pageNumber +} + +/* param pageSize: 页面大小,默认为20;取值范围[1, 100](Optional) */ +func (r *DescribeAlarmsRequest) SetPageSize(pageSize int) { + r.PageSize = &pageSize +} + +/* param dataOwner: 数据所有者,1云监控控制台; 2云鼎。默认为1(Optional) */ +func (r *DescribeAlarmsRequest) SetDataOwner(dataOwner int) { + r.DataOwner = &dataOwner +} + +/* param serviceCode: 产品线标识,同一个产品线下可能存在多个product,如(redis下有redis2.8cluster、redis4.0)(Optional) */ +func (r *DescribeAlarmsRequest) SetServiceCode(serviceCode string) { + r.ServiceCode = &serviceCode +} + +/* param product: 产品标识,如redis下分多个产品(redis2.8cluster、redis4.0)。同时指定serviceCode与product时,product优先生效(Optional) */ +func (r *DescribeAlarmsRequest) SetProduct(product string) { + r.Product = &product +} + +/* param dimension: 产品下的维度标识,指定dimension时必须指定product(Optional) */ +func (r *DescribeAlarmsRequest) SetDimension(dimension string) { + r.Dimension = &dimension +} + +/* param ruleName: 规则名称(Optional) */ +func (r *DescribeAlarmsRequest) SetRuleName(ruleName string) { + r.RuleName = &ruleName +} + +/* param ruleType: 规则类型, 1表示资源监控,6表示站点监控,7表示可用性监控(Optional) */ +func (r *DescribeAlarmsRequest) SetRuleType(ruleType int) { + r.RuleType = &ruleType +} + +/* param enabled: 规则状态:1为启用,0为禁用(Optional) */ +func (r *DescribeAlarmsRequest) SetEnabled(enabled int) { + r.Enabled = &enabled +} + +/* param ruleStatus: 资源的规则状态 2:报警、4:数据不足(Optional) */ +func (r *DescribeAlarmsRequest) SetRuleStatus(ruleStatus int) { + r.RuleStatus = &ruleStatus +} + +/* param filters: 服务码或资源Id列表 +products - 产品product,精确匹配,支持多个 +resourceIds - 资源Id,精确匹配,支持多个(必须指定serviceCode、product或dimension,否则该参数不生效) +alarmIds - 规则id,精确匹配,支持多个(Optional) */ +func (r *DescribeAlarmsRequest) SetFilters(filters []monitor.Filter) { + r.Filters = filters +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeAlarmsRequest) GetRegionId() string { + return "" +} + +type DescribeAlarmsResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeAlarmsResult `json:"result"` +} + +type DescribeAlarmsResult struct { + AlarmList []monitor.DescribeGroupAlarm `json:"alarmList"` + NumberPages int64 `json:"numberPages"` + NumberRecords int64 `json:"numberRecords"` + PageNumber int64 `json:"pageNumber"` + PageSize int64 `json:"pageSize"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeCustomMetricData.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeCustomMetricData.go new file mode 100644 index 0000000000..a4d8ad9599 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeCustomMetricData.go @@ -0,0 +1,163 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeCustomMetricDataRequest struct { + + core.JDCloudRequest + + /* region */ + RegionId string `json:"regionId"` + + /* namespace */ + NamespaceUID string `json:"namespaceUID"` + + /* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出) (Optional) */ + EndTime *string `json:"endTime"` + + /* */ + Query *monitor.QueryOption `json:"query"` + + /* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800 (Optional) */ + StartTime *string `json:"startTime"` + + /* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h (Optional) */ + TimeInterval *string `json:"timeInterval"` +} + +/* + * param regionId: region (Required) + * param namespaceUID: namespace (Required) + * param query: (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeCustomMetricDataRequest( + regionId string, + namespaceUID string, + query *monitor.QueryOption, +) *DescribeCustomMetricDataRequest { + + return &DescribeCustomMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/namespaces/{namespaceUID}/metricData", + Method: "POST", + Header: nil, + Version: "v2", + }, + RegionId: regionId, + NamespaceUID: namespaceUID, + Query: query, + } +} + +/* + * param regionId: region (Required) + * param namespaceUID: namespace (Required) + * param endTime: 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出) (Optional) + * param query: (Required) + * param startTime: 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800 (Optional) + * param timeInterval: 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h (Optional) + */ +func NewDescribeCustomMetricDataRequestWithAllParams( + regionId string, + namespaceUID string, + endTime *string, + query *monitor.QueryOption, + startTime *string, + timeInterval *string, +) *DescribeCustomMetricDataRequest { + + return &DescribeCustomMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/namespaces/{namespaceUID}/metricData", + Method: "POST", + Header: nil, + Version: "v2", + }, + RegionId: regionId, + NamespaceUID: namespaceUID, + EndTime: endTime, + Query: query, + StartTime: startTime, + TimeInterval: timeInterval, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeCustomMetricDataRequestWithoutParam() *DescribeCustomMetricDataRequest { + + return &DescribeCustomMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/namespaces/{namespaceUID}/metricData", + Method: "POST", + Header: nil, + Version: "v2", + }, + } +} + +/* param regionId: region(Required) */ +func (r *DescribeCustomMetricDataRequest) SetRegionId(regionId string) { + r.RegionId = regionId +} + +/* param namespaceUID: namespace(Required) */ +func (r *DescribeCustomMetricDataRequest) SetNamespaceUID(namespaceUID string) { + r.NamespaceUID = namespaceUID +} + +/* param endTime: 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(Optional) */ +func (r *DescribeCustomMetricDataRequest) SetEndTime(endTime string) { + r.EndTime = &endTime +} + +/* param query: (Required) */ +func (r *DescribeCustomMetricDataRequest) SetQuery(query *monitor.QueryOption) { + r.Query = query +} + +/* param startTime: 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(Optional) */ +func (r *DescribeCustomMetricDataRequest) SetStartTime(startTime string) { + r.StartTime = &startTime +} + +/* param timeInterval: 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h(Optional) */ +func (r *DescribeCustomMetricDataRequest) SetTimeInterval(timeInterval string) { + r.TimeInterval = &timeInterval +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeCustomMetricDataRequest) GetRegionId() string { + return r.RegionId +} + +type DescribeCustomMetricDataResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeCustomMetricDataResult `json:"result"` +} + +type DescribeCustomMetricDataResult struct { + MetricDatas []monitor.MetricDataItemCm `json:"metricDatas"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetricData.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetricData.go new file mode 100644 index 0000000000..6f446f4141 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetricData.go @@ -0,0 +1,240 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeMetricDataRequest struct { + + core.JDCloudRequest + + /* 地域 Id */ + RegionId string `json:"regionId"` + + /* 监控项英文标识(id) */ + Metric string `json:"metric"` + + /* 聚合方式,用于不同时间轴上的聚合。如balance产品同一个resourceId下存在port=80和port=8080等多种维度。可选值参考:sum、avg、min、max (Optional) */ + AggrType *string `json:"aggrType"` + + /* 采样方式,用于在时间轴维度上将聚合周期内的数据聚合为一个点。可选值参考:sum(聚合周期内的数据求和)、avg(求平均)、last(最新值)、min(最小值)、max(最大值) (Optional) */ + DownSampleType *string `json:"downSampleType"` + + /* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) */ + StartTime *string `json:"startTime"` + + /* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) */ + EndTime *string `json:"endTime"` + + /* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h (Optional) */ + TimeInterval *string `json:"timeInterval"` + + /* 监控指标数据的维度信息,根据tags来筛选指标数据不同的维度 (Optional) */ + Tags []monitor.TagFilter `json:"tags"` + + /* 是否对查询的tags分组 (Optional) */ + GroupBy *bool `json:"groupBy"` + + /* 是否求速率。仅对累积类型指标有意义 (Optional) */ + Rate *bool `json:"rate"` + + /* 资源的类型,取值vm, lb, ip, database 等,describeServices:查询己接入云监控的产品线列表 (Optional) */ + ServiceCode *string `json:"serviceCode"` + + /* 资源的维度。查询serviceCode下可用的维度请使用describeServices接口 (Optional) */ + Dimension *string `json:"dimension"` + + /* 资源的uuid */ + ResourceId string `json:"resourceId"` +} + +/* + * param regionId: 地域 Id (Required) + * param metric: 监控项英文标识(id) (Required) + * param resourceId: 资源的uuid (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeMetricDataRequest( + regionId string, + metric string, + resourceId string, +) *DescribeMetricDataRequest { + + return &DescribeMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/metrics/{metric}/metricData", + Method: "GET", + Header: nil, + Version: "v2", + }, + RegionId: regionId, + Metric: metric, + ResourceId: resourceId, + } +} + +/* + * param regionId: 地域 Id (Required) + * param metric: 监控项英文标识(id) (Required) + * param aggrType: 聚合方式,用于不同时间轴上的聚合。如balance产品同一个resourceId下存在port=80和port=8080等多种维度。可选值参考:sum、avg、min、max (Optional) + * param downSampleType: 采样方式,用于在时间轴维度上将聚合周期内的数据聚合为一个点。可选值参考:sum(聚合周期内的数据求和)、avg(求平均)、last(最新值)、min(最小值)、max(最大值) (Optional) + * param startTime: 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) + * param endTime: 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) + * param timeInterval: 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h (Optional) + * param tags: 监控指标数据的维度信息,根据tags来筛选指标数据不同的维度 (Optional) + * param groupBy: 是否对查询的tags分组 (Optional) + * param rate: 是否求速率。仅对累积类型指标有意义 (Optional) + * param serviceCode: 资源的类型,取值vm, lb, ip, database 等,describeServices:查询己接入云监控的产品线列表 (Optional) + * param dimension: 资源的维度。查询serviceCode下可用的维度请使用describeServices接口 (Optional) + * param resourceId: 资源的uuid (Required) + */ +func NewDescribeMetricDataRequestWithAllParams( + regionId string, + metric string, + aggrType *string, + downSampleType *string, + startTime *string, + endTime *string, + timeInterval *string, + tags []monitor.TagFilter, + groupBy *bool, + rate *bool, + serviceCode *string, + dimension *string, + resourceId string, +) *DescribeMetricDataRequest { + + return &DescribeMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/metrics/{metric}/metricData", + Method: "GET", + Header: nil, + Version: "v2", + }, + RegionId: regionId, + Metric: metric, + AggrType: aggrType, + DownSampleType: downSampleType, + StartTime: startTime, + EndTime: endTime, + TimeInterval: timeInterval, + Tags: tags, + GroupBy: groupBy, + Rate: rate, + ServiceCode: serviceCode, + Dimension: dimension, + ResourceId: resourceId, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeMetricDataRequestWithoutParam() *DescribeMetricDataRequest { + + return &DescribeMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/metrics/{metric}/metricData", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param regionId: 地域 Id(Required) */ +func (r *DescribeMetricDataRequest) SetRegionId(regionId string) { + r.RegionId = regionId +} + +/* param metric: 监控项英文标识(id)(Required) */ +func (r *DescribeMetricDataRequest) SetMetric(metric string) { + r.Metric = metric +} + +/* param aggrType: 聚合方式,用于不同时间轴上的聚合。如balance产品同一个resourceId下存在port=80和port=8080等多种维度。可选值参考:sum、avg、min、max(Optional) */ +func (r *DescribeMetricDataRequest) SetAggrType(aggrType string) { + r.AggrType = &aggrType +} + +/* param downSampleType: 采样方式,用于在时间轴维度上将聚合周期内的数据聚合为一个点。可选值参考:sum(聚合周期内的数据求和)、avg(求平均)、last(最新值)、min(最小值)、max(最大值)(Optional) */ +func (r *DescribeMetricDataRequest) SetDownSampleType(downSampleType string) { + r.DownSampleType = &downSampleType +} + +/* param startTime: 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)(Optional) */ +func (r *DescribeMetricDataRequest) SetStartTime(startTime string) { + r.StartTime = &startTime +} + +/* param endTime: 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)(Optional) */ +func (r *DescribeMetricDataRequest) SetEndTime(endTime string) { + r.EndTime = &endTime +} + +/* param timeInterval: 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h(Optional) */ +func (r *DescribeMetricDataRequest) SetTimeInterval(timeInterval string) { + r.TimeInterval = &timeInterval +} + +/* param tags: 监控指标数据的维度信息,根据tags来筛选指标数据不同的维度(Optional) */ +func (r *DescribeMetricDataRequest) SetTags(tags []monitor.TagFilter) { + r.Tags = tags +} + +/* param groupBy: 是否对查询的tags分组(Optional) */ +func (r *DescribeMetricDataRequest) SetGroupBy(groupBy bool) { + r.GroupBy = &groupBy +} + +/* param rate: 是否求速率。仅对累积类型指标有意义(Optional) */ +func (r *DescribeMetricDataRequest) SetRate(rate bool) { + r.Rate = &rate +} + +/* param serviceCode: 资源的类型,取值vm, lb, ip, database 等,describeServices:查询己接入云监控的产品线列表(Optional) */ +func (r *DescribeMetricDataRequest) SetServiceCode(serviceCode string) { + r.ServiceCode = &serviceCode +} + +/* param dimension: 资源的维度。查询serviceCode下可用的维度请使用describeServices接口(Optional) */ +func (r *DescribeMetricDataRequest) SetDimension(dimension string) { + r.Dimension = &dimension +} + +/* param resourceId: 资源的uuid(Required) */ +func (r *DescribeMetricDataRequest) SetResourceId(resourceId string) { + r.ResourceId = resourceId +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeMetricDataRequest) GetRegionId() string { + return r.RegionId +} + +type DescribeMetricDataResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeMetricDataResult `json:"result"` +} + +type DescribeMetricDataResult struct { + MetricDatas []monitor.MetricData `json:"metricDatas"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetrics.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetrics.go new file mode 100644 index 0000000000..96f98c6656 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetrics.go @@ -0,0 +1,124 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeMetricsRequest struct { + + core.JDCloudRequest + + /* 资源的类型,取值vm, lb, ip, database 等。describeServices:查询己接入云监控的产品线列表 */ + ServiceCode string `json:"serviceCode"` + + /* (Optional) */ + Dimension *string `json:"dimension"` + + /* metric的类型,取值0(控制台展示)、1(内部使用,控制台不展示)、2(所有).默认取0 (Optional) */ + Type *int `json:"type"` +} + +/* + * param serviceCode: 资源的类型,取值vm, lb, ip, database 等。describeServices:查询己接入云监控的产品线列表 (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeMetricsRequest( + serviceCode string, +) *DescribeMetricsRequest { + + return &DescribeMetricsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/metrics", + Method: "GET", + Header: nil, + Version: "v2", + }, + ServiceCode: serviceCode, + } +} + +/* + * param serviceCode: 资源的类型,取值vm, lb, ip, database 等。describeServices:查询己接入云监控的产品线列表 (Required) + * param dimension: (Optional) + * param type_: metric的类型,取值0(控制台展示)、1(内部使用,控制台不展示)、2(所有).默认取0 (Optional) + */ +func NewDescribeMetricsRequestWithAllParams( + serviceCode string, + dimension *string, + type_ *int, +) *DescribeMetricsRequest { + + return &DescribeMetricsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/metrics", + Method: "GET", + Header: nil, + Version: "v2", + }, + ServiceCode: serviceCode, + Dimension: dimension, + Type: type_, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeMetricsRequestWithoutParam() *DescribeMetricsRequest { + + return &DescribeMetricsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/metrics", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param serviceCode: 资源的类型,取值vm, lb, ip, database 等。describeServices:查询己接入云监控的产品线列表(Required) */ +func (r *DescribeMetricsRequest) SetServiceCode(serviceCode string) { + r.ServiceCode = serviceCode +} + +/* param dimension: (Optional) */ +func (r *DescribeMetricsRequest) SetDimension(dimension string) { + r.Dimension = &dimension +} + +/* param type_: metric的类型,取值0(控制台展示)、1(内部使用,控制台不展示)、2(所有).默认取0(Optional) */ +func (r *DescribeMetricsRequest) SetType(type_ int) { + r.Type = &type_ +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeMetricsRequest) GetRegionId() string { + return "" +} + +type DescribeMetricsResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeMetricsResult `json:"result"` +} + +type DescribeMetricsResult struct { + Metrics []monitor.MetricDetail `json:"metrics"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetricsForAlarm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetricsForAlarm.go new file mode 100644 index 0000000000..02fec566d6 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeMetricsForAlarm.go @@ -0,0 +1,132 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeMetricsForAlarmRequest struct { + + core.JDCloudRequest + + /* 产品线 (Optional) */ + ServiceCode *string `json:"serviceCode"` + + /* 产品类型,如redis2.8cluster(集群)\redis2.8MS(主从)。当serviceCode与product同时指定时,product优先级更高 (Optional) */ + Product *string `json:"product"` + + /* 产品维度,必须指定serviceCode或product才生效。 (Optional) */ + Dimension *string `json:"dimension"` + + /* metric类型,取值0、1;默认值:0(常规指标,用于控制台创建报警规则)、1(其它) (Optional) */ + MetricType *int `json:"metricType"` +} + +/* + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeMetricsForAlarmRequest( +) *DescribeMetricsForAlarmRequest { + + return &DescribeMetricsForAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms:metrics", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* + * param serviceCode: 产品线 (Optional) + * param product: 产品类型,如redis2.8cluster(集群)\redis2.8MS(主从)。当serviceCode与product同时指定时,product优先级更高 (Optional) + * param dimension: 产品维度,必须指定serviceCode或product才生效。 (Optional) + * param metricType: metric类型,取值0、1;默认值:0(常规指标,用于控制台创建报警规则)、1(其它) (Optional) + */ +func NewDescribeMetricsForAlarmRequestWithAllParams( + serviceCode *string, + product *string, + dimension *string, + metricType *int, +) *DescribeMetricsForAlarmRequest { + + return &DescribeMetricsForAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms:metrics", + Method: "GET", + Header: nil, + Version: "v2", + }, + ServiceCode: serviceCode, + Product: product, + Dimension: dimension, + MetricType: metricType, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeMetricsForAlarmRequestWithoutParam() *DescribeMetricsForAlarmRequest { + + return &DescribeMetricsForAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms:metrics", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param serviceCode: 产品线(Optional) */ +func (r *DescribeMetricsForAlarmRequest) SetServiceCode(serviceCode string) { + r.ServiceCode = &serviceCode +} + +/* param product: 产品类型,如redis2.8cluster(集群)\redis2.8MS(主从)。当serviceCode与product同时指定时,product优先级更高(Optional) */ +func (r *DescribeMetricsForAlarmRequest) SetProduct(product string) { + r.Product = &product +} + +/* param dimension: 产品维度,必须指定serviceCode或product才生效。(Optional) */ +func (r *DescribeMetricsForAlarmRequest) SetDimension(dimension string) { + r.Dimension = &dimension +} + +/* param metricType: metric类型,取值0、1;默认值:0(常规指标,用于控制台创建报警规则)、1(其它)(Optional) */ +func (r *DescribeMetricsForAlarmRequest) SetMetricType(metricType int) { + r.MetricType = &metricType +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeMetricsForAlarmRequest) GetRegionId() string { + return "" +} + +type DescribeMetricsForAlarmResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeMetricsForAlarmResult `json:"result"` +} + +type DescribeMetricsForAlarmResult struct { + Metrics []monitor.RuleMetricDetail `json:"metrics"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeProductsForAlarm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeProductsForAlarm.go new file mode 100644 index 0000000000..a8619017bf --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeProductsForAlarm.go @@ -0,0 +1,110 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeProductsForAlarmRequest struct { + + core.JDCloudRequest + + /* 产品线,从产品线维度筛选 (Optional) */ + ServiceCode *string `json:"serviceCode"` + + /* 产品类型,从产品维度筛选、如redis2.8cluster\redis2.8instance。当serviceCode与product同时指定时,product优先级更高 (Optional) */ + Product *string `json:"product"` +} + +/* + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeProductsForAlarmRequest( +) *DescribeProductsForAlarmRequest { + + return &DescribeProductsForAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms:products", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* + * param serviceCode: 产品线,从产品线维度筛选 (Optional) + * param product: 产品类型,从产品维度筛选、如redis2.8cluster\redis2.8instance。当serviceCode与product同时指定时,product优先级更高 (Optional) + */ +func NewDescribeProductsForAlarmRequestWithAllParams( + serviceCode *string, + product *string, +) *DescribeProductsForAlarmRequest { + + return &DescribeProductsForAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms:products", + Method: "GET", + Header: nil, + Version: "v2", + }, + ServiceCode: serviceCode, + Product: product, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeProductsForAlarmRequestWithoutParam() *DescribeProductsForAlarmRequest { + + return &DescribeProductsForAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms:products", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param serviceCode: 产品线,从产品线维度筛选(Optional) */ +func (r *DescribeProductsForAlarmRequest) SetServiceCode(serviceCode string) { + r.ServiceCode = &serviceCode +} + +/* param product: 产品类型,从产品维度筛选、如redis2.8cluster\redis2.8instance。当serviceCode与product同时指定时,product优先级更高(Optional) */ +func (r *DescribeProductsForAlarmRequest) SetProduct(product string) { + r.Product = &product +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeProductsForAlarmRequest) GetRegionId() string { + return "" +} + +type DescribeProductsForAlarmResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeProductsForAlarmResult `json:"result"` +} + +type DescribeProductsForAlarmResult struct { + ProductList []monitor.Product `json:"productList"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeServices.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeServices.go new file mode 100644 index 0000000000..57fe88dd9d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeServices.go @@ -0,0 +1,113 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeServicesRequest struct { + + core.JDCloudRequest + + /* 服务码列表 +filter name 为serviceCodes表示查询多个产品线的规则 (Optional) */ + Filters []monitor.Filter `json:"filters"` + + /* 要查询的产品线类型 0:all 1:资源监控 2:其它 默认:1。若指定了查询的serviceCode,则忽略该参数 (Optional) */ + ProductType *int `json:"productType"` +} + +/* + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeServicesRequest( +) *DescribeServicesRequest { + + return &DescribeServicesRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/services", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* + * param filters: 服务码列表 +filter name 为serviceCodes表示查询多个产品线的规则 (Optional) + * param productType: 要查询的产品线类型 0:all 1:资源监控 2:其它 默认:1。若指定了查询的serviceCode,则忽略该参数 (Optional) + */ +func NewDescribeServicesRequestWithAllParams( + filters []monitor.Filter, + productType *int, +) *DescribeServicesRequest { + + return &DescribeServicesRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/services", + Method: "GET", + Header: nil, + Version: "v2", + }, + Filters: filters, + ProductType: productType, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeServicesRequestWithoutParam() *DescribeServicesRequest { + + return &DescribeServicesRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/services", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param filters: 服务码列表 +filter name 为serviceCodes表示查询多个产品线的规则(Optional) */ +func (r *DescribeServicesRequest) SetFilters(filters []monitor.Filter) { + r.Filters = filters +} + +/* param productType: 要查询的产品线类型 0:all 1:资源监控 2:其它 默认:1。若指定了查询的serviceCode,则忽略该参数(Optional) */ +func (r *DescribeServicesRequest) SetProductType(productType int) { + r.ProductType = &productType +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeServicesRequest) GetRegionId() string { + return "" +} + +type DescribeServicesResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeServicesResult `json:"result"` +} + +type DescribeServicesResult struct { + Services []monitor.ServiceInfoV2 `json:"services"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeTagValues.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeTagValues.go new file mode 100644 index 0000000000..a140393afb --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/DescribeTagValues.go @@ -0,0 +1,199 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type DescribeTagValuesRequest struct { + + core.JDCloudRequest + + /* region */ + RegionId string `json:"regionId"` + + /* region */ + TagKey string `json:"tagKey"` + + /* serviceCode */ + ServiceCode string `json:"serviceCode"` + + /* 资源标识 */ + ResourceId string `json:"resourceId"` + + /* metric (Optional) */ + Metric *string `json:"metric"` + + /* 查询时间范围的开始时间(如不传,则默认为1时前), UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+,:要转译,如2019-10-23T10%3A33%3A31%2B0800)。对于非连续的时序数据,开始时间无法保证准确性 (Optional) */ + StartTime *string `json:"startTime"` + + /* 查询时间范围的结束时间(如不传,则默认为当前), UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+,:要转译,如2019-10-23T10%3A33%3A31%2B0800).对于非连续的时序数据,结束时间无法保证准确性 (Optional) */ + EndTime *string `json:"endTime"` + + /* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h (Optional) */ + TimeInterval *string `json:"timeInterval"` + + /* 根据tags进行筛选(传入*和不传的效果一致) (Optional) */ + Tags []monitor.TagFilter `json:"tags"` +} + +/* + * param regionId: region (Required) + * param tagKey: region (Required) + * param serviceCode: serviceCode (Required) + * param resourceId: 资源标识 (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewDescribeTagValuesRequest( + regionId string, + tagKey string, + serviceCode string, + resourceId string, +) *DescribeTagValuesRequest { + + return &DescribeTagValuesRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/tagValues/{tagKey}", + Method: "GET", + Header: nil, + Version: "v2", + }, + RegionId: regionId, + TagKey: tagKey, + ServiceCode: serviceCode, + ResourceId: resourceId, + } +} + +/* + * param regionId: region (Required) + * param tagKey: region (Required) + * param serviceCode: serviceCode (Required) + * param resourceId: 资源标识 (Required) + * param metric: metric (Optional) + * param startTime: 查询时间范围的开始时间(如不传,则默认为1时前), UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+,:要转译,如2019-10-23T10%3A33%3A31%2B0800)。对于非连续的时序数据,开始时间无法保证准确性 (Optional) + * param endTime: 查询时间范围的结束时间(如不传,则默认为当前), UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+,:要转译,如2019-10-23T10%3A33%3A31%2B0800).对于非连续的时序数据,结束时间无法保证准确性 (Optional) + * param timeInterval: 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h (Optional) + * param tags: 根据tags进行筛选(传入*和不传的效果一致) (Optional) + */ +func NewDescribeTagValuesRequestWithAllParams( + regionId string, + tagKey string, + serviceCode string, + resourceId string, + metric *string, + startTime *string, + endTime *string, + timeInterval *string, + tags []monitor.TagFilter, +) *DescribeTagValuesRequest { + + return &DescribeTagValuesRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/tagValues/{tagKey}", + Method: "GET", + Header: nil, + Version: "v2", + }, + RegionId: regionId, + TagKey: tagKey, + ServiceCode: serviceCode, + ResourceId: resourceId, + Metric: metric, + StartTime: startTime, + EndTime: endTime, + TimeInterval: timeInterval, + Tags: tags, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewDescribeTagValuesRequestWithoutParam() *DescribeTagValuesRequest { + + return &DescribeTagValuesRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/tagValues/{tagKey}", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param regionId: region(Required) */ +func (r *DescribeTagValuesRequest) SetRegionId(regionId string) { + r.RegionId = regionId +} + +/* param tagKey: region(Required) */ +func (r *DescribeTagValuesRequest) SetTagKey(tagKey string) { + r.TagKey = tagKey +} + +/* param serviceCode: serviceCode(Required) */ +func (r *DescribeTagValuesRequest) SetServiceCode(serviceCode string) { + r.ServiceCode = serviceCode +} + +/* param resourceId: 资源标识(Required) */ +func (r *DescribeTagValuesRequest) SetResourceId(resourceId string) { + r.ResourceId = resourceId +} + +/* param metric: metric(Optional) */ +func (r *DescribeTagValuesRequest) SetMetric(metric string) { + r.Metric = &metric +} + +/* param startTime: 查询时间范围的开始时间(如不传,则默认为1时前), UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+,:要转译,如2019-10-23T10%3A33%3A31%2B0800)。对于非连续的时序数据,开始时间无法保证准确性(Optional) */ +func (r *DescribeTagValuesRequest) SetStartTime(startTime string) { + r.StartTime = &startTime +} + +/* param endTime: 查询时间范围的结束时间(如不传,则默认为当前), UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+,:要转译,如2019-10-23T10%3A33%3A31%2B0800).对于非连续的时序数据,结束时间无法保证准确性(Optional) */ +func (r *DescribeTagValuesRequest) SetEndTime(endTime string) { + r.EndTime = &endTime +} + +/* param timeInterval: 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h(Optional) */ +func (r *DescribeTagValuesRequest) SetTimeInterval(timeInterval string) { + r.TimeInterval = &timeInterval +} + +/* param tags: 根据tags进行筛选(传入*和不传的效果一致)(Optional) */ +func (r *DescribeTagValuesRequest) SetTags(tags []monitor.TagFilter) { + r.Tags = tags +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r DescribeTagValuesRequest) GetRegionId() string { + return r.RegionId +} + +type DescribeTagValuesResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result DescribeTagValuesResult `json:"result"` +} + +type DescribeTagValuesResult struct { + TagValues []string `json:"tagValues"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/EnableAlarms.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/EnableAlarms.go new file mode 100644 index 0000000000..b0b56f0e8c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/EnableAlarms.go @@ -0,0 +1,112 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" +) + +type EnableAlarmsRequest struct { + + core.JDCloudRequest + + /* 告警规则的ID列表 */ + AlarmIds []string `json:"alarmIds"` + + /* 启用:1,禁用0, (Optional) */ + State *int `json:"state"` +} + +/* + * param alarmIds: 告警规则的ID列表 (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewEnableAlarmsRequest( + alarmIds []string, +) *EnableAlarmsRequest { + + return &EnableAlarmsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms:switch", + Method: "POST", + Header: nil, + Version: "v2", + }, + AlarmIds: alarmIds, + } +} + +/* + * param alarmIds: 告警规则的ID列表 (Required) + * param state: 启用:1,禁用0, (Optional) + */ +func NewEnableAlarmsRequestWithAllParams( + alarmIds []string, + state *int, +) *EnableAlarmsRequest { + + return &EnableAlarmsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms:switch", + Method: "POST", + Header: nil, + Version: "v2", + }, + AlarmIds: alarmIds, + State: state, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewEnableAlarmsRequestWithoutParam() *EnableAlarmsRequest { + + return &EnableAlarmsRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms:switch", + Method: "POST", + Header: nil, + Version: "v2", + }, + } +} + +/* param alarmIds: 告警规则的ID列表(Required) */ +func (r *EnableAlarmsRequest) SetAlarmIds(alarmIds []string) { + r.AlarmIds = alarmIds +} + +/* param state: 启用:1,禁用0,(Optional) */ +func (r *EnableAlarmsRequest) SetState(state int) { + r.State = &state +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r EnableAlarmsRequest) GetRegionId() string { + return "" +} + +type EnableAlarmsResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result EnableAlarmsResult `json:"result"` +} + +type EnableAlarmsResult struct { + Success bool `json:"success"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/LastDownsample.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/LastDownsample.go new file mode 100644 index 0000000000..d19a6e1349 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/LastDownsample.go @@ -0,0 +1,232 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type LastDownsampleRequest struct { + + core.JDCloudRequest + + /* 地域 Id */ + RegionId string `json:"regionId"` + + /* 监控项英文标识(id) */ + Metric string `json:"metric"` + + /* 资源的类型,取值vm, lb, ip, database 等。可用的serviceCode请使用describeServices接口查询 */ + ServiceCode string `json:"serviceCode"` + + /* 资源的维度。serviceCode下可用的dimension请使用describeServices接口查询 (Optional) */ + Dimension *string `json:"dimension"` + + /* 资源的uuid,支持多个resourceId批量查询,每个id用竖线分隔。 如:id1|id2|id3|id4 */ + ResourceId string `json:"resourceId"` + + /* 自定义标签 (Optional) */ + Tags []monitor.TagFilter `json:"tags"` + + /* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(早于30d时,将被重置为30d)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) */ + StartTime *string `json:"startTime"` + + /* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) */ + EndTime *string `json:"endTime"` + + /* 查询的时间间隔,最大不超过30天,支持分钟级别,小时级别,天级别,例如:1m、1h、1d (Optional) */ + TimeInterval *string `json:"timeInterval"` + + /* 聚合方式:max avg min等,用于不同维度之间聚合 (Optional) */ + AggrType *string `json:"aggrType"` + + /* 聚合方式:max avg min等,用于将维度内一个周期数据聚合为一个点的聚合方式,默认last (Optional) */ + DownAggrType *string `json:"downAggrType"` + + /* 时间偏移,可传入30s、1m、1h、1d等数字+单位的形式(其中s秒,m分,h时,d天),当业务侧数据上报存在延迟时,可以传入该参数,该参数会使查询的时间段整体向前偏移.偏移后的开始时间若早于30天前,则开始时间自动设置为30天前;若偏移后结束时间早于30天前,则无效 (Optional) */ + TimeOffset *string `json:"timeOffset"` +} + +/* + * param regionId: 地域 Id (Required) + * param metric: 监控项英文标识(id) (Required) + * param serviceCode: 资源的类型,取值vm, lb, ip, database 等。可用的serviceCode请使用describeServices接口查询 (Required) + * param resourceId: 资源的uuid,支持多个resourceId批量查询,每个id用竖线分隔。 如:id1|id2|id3|id4 (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewLastDownsampleRequest( + regionId string, + metric string, + serviceCode string, + resourceId string, +) *LastDownsampleRequest { + + return &LastDownsampleRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/metrics/{metric}/lastDownsample", + Method: "GET", + Header: nil, + Version: "v2", + }, + RegionId: regionId, + Metric: metric, + ServiceCode: serviceCode, + ResourceId: resourceId, + } +} + +/* + * param regionId: 地域 Id (Required) + * param metric: 监控项英文标识(id) (Required) + * param serviceCode: 资源的类型,取值vm, lb, ip, database 等。可用的serviceCode请使用describeServices接口查询 (Required) + * param dimension: 资源的维度。serviceCode下可用的dimension请使用describeServices接口查询 (Optional) + * param resourceId: 资源的uuid,支持多个resourceId批量查询,每个id用竖线分隔。 如:id1|id2|id3|id4 (Required) + * param tags: 自定义标签 (Optional) + * param startTime: 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(早于30d时,将被重置为30d)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) + * param endTime: 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) + * param timeInterval: 查询的时间间隔,最大不超过30天,支持分钟级别,小时级别,天级别,例如:1m、1h、1d (Optional) + * param aggrType: 聚合方式:max avg min等,用于不同维度之间聚合 (Optional) + * param downAggrType: 聚合方式:max avg min等,用于将维度内一个周期数据聚合为一个点的聚合方式,默认last (Optional) + * param timeOffset: 时间偏移,可传入30s、1m、1h、1d等数字+单位的形式(其中s秒,m分,h时,d天),当业务侧数据上报存在延迟时,可以传入该参数,该参数会使查询的时间段整体向前偏移.偏移后的开始时间若早于30天前,则开始时间自动设置为30天前;若偏移后结束时间早于30天前,则无效 (Optional) + */ +func NewLastDownsampleRequestWithAllParams( + regionId string, + metric string, + serviceCode string, + dimension *string, + resourceId string, + tags []monitor.TagFilter, + startTime *string, + endTime *string, + timeInterval *string, + aggrType *string, + downAggrType *string, + timeOffset *string, +) *LastDownsampleRequest { + + return &LastDownsampleRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/metrics/{metric}/lastDownsample", + Method: "GET", + Header: nil, + Version: "v2", + }, + RegionId: regionId, + Metric: metric, + ServiceCode: serviceCode, + Dimension: dimension, + ResourceId: resourceId, + Tags: tags, + StartTime: startTime, + EndTime: endTime, + TimeInterval: timeInterval, + AggrType: aggrType, + DownAggrType: downAggrType, + TimeOffset: timeOffset, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewLastDownsampleRequestWithoutParam() *LastDownsampleRequest { + + return &LastDownsampleRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/regions/{regionId}/metrics/{metric}/lastDownsample", + Method: "GET", + Header: nil, + Version: "v2", + }, + } +} + +/* param regionId: 地域 Id(Required) */ +func (r *LastDownsampleRequest) SetRegionId(regionId string) { + r.RegionId = regionId +} + +/* param metric: 监控项英文标识(id)(Required) */ +func (r *LastDownsampleRequest) SetMetric(metric string) { + r.Metric = metric +} + +/* param serviceCode: 资源的类型,取值vm, lb, ip, database 等。可用的serviceCode请使用describeServices接口查询(Required) */ +func (r *LastDownsampleRequest) SetServiceCode(serviceCode string) { + r.ServiceCode = serviceCode +} + +/* param dimension: 资源的维度。serviceCode下可用的dimension请使用describeServices接口查询(Optional) */ +func (r *LastDownsampleRequest) SetDimension(dimension string) { + r.Dimension = &dimension +} + +/* param resourceId: 资源的uuid,支持多个resourceId批量查询,每个id用竖线分隔。 如:id1|id2|id3|id4(Required) */ +func (r *LastDownsampleRequest) SetResourceId(resourceId string) { + r.ResourceId = resourceId +} + +/* param tags: 自定义标签(Optional) */ +func (r *LastDownsampleRequest) SetTags(tags []monitor.TagFilter) { + r.Tags = tags +} + +/* param startTime: 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(早于30d时,将被重置为30d)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)(Optional) */ +func (r *LastDownsampleRequest) SetStartTime(startTime string) { + r.StartTime = &startTime +} + +/* param endTime: 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)(Optional) */ +func (r *LastDownsampleRequest) SetEndTime(endTime string) { + r.EndTime = &endTime +} + +/* param timeInterval: 查询的时间间隔,最大不超过30天,支持分钟级别,小时级别,天级别,例如:1m、1h、1d(Optional) */ +func (r *LastDownsampleRequest) SetTimeInterval(timeInterval string) { + r.TimeInterval = &timeInterval +} + +/* param aggrType: 聚合方式:max avg min等,用于不同维度之间聚合(Optional) */ +func (r *LastDownsampleRequest) SetAggrType(aggrType string) { + r.AggrType = &aggrType +} + +/* param downAggrType: 聚合方式:max avg min等,用于将维度内一个周期数据聚合为一个点的聚合方式,默认last(Optional) */ +func (r *LastDownsampleRequest) SetDownAggrType(downAggrType string) { + r.DownAggrType = &downAggrType +} + +/* param timeOffset: 时间偏移,可传入30s、1m、1h、1d等数字+单位的形式(其中s秒,m分,h时,d天),当业务侧数据上报存在延迟时,可以传入该参数,该参数会使查询的时间段整体向前偏移.偏移后的开始时间若早于30天前,则开始时间自动设置为30天前;若偏移后结束时间早于30天前,则无效(Optional) */ +func (r *LastDownsampleRequest) SetTimeOffset(timeOffset string) { + r.TimeOffset = &timeOffset +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r LastDownsampleRequest) GetRegionId() string { + return r.RegionId +} + +type LastDownsampleResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result LastDownsampleResult `json:"result"` +} + +type LastDownsampleResult struct { + Items []monitor.LastDownsampleRespItem `json:"items"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/PutCustomMetricData.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/PutCustomMetricData.go new file mode 100644 index 0000000000..1f13cbfb7e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/PutCustomMetricData.go @@ -0,0 +1,100 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type PutCustomMetricDataRequest struct { + + core.JDCloudRequest + + /* 数据参数 (Optional) */ + MetricDataList []monitor.MetricDataCm `json:"metricDataList"` +} + +/* + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewPutCustomMetricDataRequest( +) *PutCustomMetricDataRequest { + + return &PutCustomMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/customMetrics", + Method: "POST", + Header: nil, + Version: "v2", + }, + } +} + +/* + * param metricDataList: 数据参数 (Optional) + */ +func NewPutCustomMetricDataRequestWithAllParams( + metricDataList []monitor.MetricDataCm, +) *PutCustomMetricDataRequest { + + return &PutCustomMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/customMetrics", + Method: "POST", + Header: nil, + Version: "v2", + }, + MetricDataList: metricDataList, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewPutCustomMetricDataRequestWithoutParam() *PutCustomMetricDataRequest { + + return &PutCustomMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/customMetrics", + Method: "POST", + Header: nil, + Version: "v2", + }, + } +} + +/* param metricDataList: 数据参数(Optional) */ +func (r *PutCustomMetricDataRequest) SetMetricDataList(metricDataList []monitor.MetricDataCm) { + r.MetricDataList = metricDataList +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r PutCustomMetricDataRequest) GetRegionId() string { + return "" +} + +type PutCustomMetricDataResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result PutCustomMetricDataResult `json:"result"` +} + +type PutCustomMetricDataResult struct { + Success bool `json:"success"` + ErrMetricDataList []monitor.MetricDataList `json:"errMetricDataList"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/PutMetricData.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/PutMetricData.go new file mode 100644 index 0000000000..9f4fde7e50 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/PutMetricData.go @@ -0,0 +1,100 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type PutMetricDataRequest struct { + + core.JDCloudRequest + + /* 数据参数 (Optional) */ + MetricDataList []monitor.MetricDataCm `json:"metricDataList"` +} + +/* + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewPutMetricDataRequest( +) *PutMetricDataRequest { + + return &PutMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/customMetrics", + Method: "POST", + Header: nil, + Version: "v2", + }, + } +} + +/* + * param metricDataList: 数据参数 (Optional) + */ +func NewPutMetricDataRequestWithAllParams( + metricDataList []monitor.MetricDataCm, +) *PutMetricDataRequest { + + return &PutMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/customMetrics", + Method: "POST", + Header: nil, + Version: "v2", + }, + MetricDataList: metricDataList, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewPutMetricDataRequestWithoutParam() *PutMetricDataRequest { + + return &PutMetricDataRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/customMetrics", + Method: "POST", + Header: nil, + Version: "v2", + }, + } +} + +/* param metricDataList: 数据参数(Optional) */ +func (r *PutMetricDataRequest) SetMetricDataList(metricDataList []monitor.MetricDataCm) { + r.MetricDataList = metricDataList +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r PutMetricDataRequest) GetRegionId() string { + return "" +} + +type PutMetricDataResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result PutMetricDataResult `json:"result"` +} + +type PutMetricDataResult struct { + Success bool `json:"success"` + ErrMetricDataList []monitor.MetricDataList `json:"errMetricDataList"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/UpdateAlarm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/UpdateAlarm.go new file mode 100644 index 0000000000..843bb878a0 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis/UpdateAlarm.go @@ -0,0 +1,270 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package apis + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models" +) + +type UpdateAlarmRequest struct { + + core.JDCloudRequest + + /* 规则id */ + AlarmId string `json:"alarmId"` + + /* 弹性伸缩组Id。注:仅ag\asg产品线内部使用 (Optional) */ + AutoScalingPolicyId *string `json:"autoScalingPolicyId"` + + /* 告警通知联系人 (Optional) */ + BaseContact []monitor.BaseContact `json:"baseContact"` + + /* 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) */ + DataOwner *int64 `json:"dataOwner"` + + /* 资源维度,可用的维度请使用 describeProductsForAlarm接口查询 (Optional) */ + Dimension *string `json:"dimension"` + + /* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */ + Enabled *int64 `json:"enabled"` + + /* url回调设置数组 (Optional) */ + MultiWebHook []monitor.WebHookOption `json:"multiWebHook"` + + /* 通知策略 (Optional) */ + NoticeOption []monitor.NoticeOption `json:"noticeOption"` + + /* 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。 */ + Product string `json:"product"` + + /* */ + ResourceOption *monitor.ResourceOption `json:"resourceOption"` + + /* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" */ + RuleName string `json:"ruleName"` + + /* */ + RuleOption *monitor.RuleOption `json:"ruleOption"` + + /* 规则类型, 默认为resourceMonitor (Optional) */ + RuleType *string `json:"ruleType"` + + /* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足) (Optional) */ + Tags *interface{} `json:"tags"` + + /* (Optional) */ + WebHookOption *monitor.WebHookOption `json:"webHookOption"` +} + +/* + * param alarmId: 规则id (Required) + * param product: 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。 (Required) + * param resourceOption: (Required) + * param ruleName: 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" (Required) + * param ruleOption: (Required) + * + * @Deprecated, not compatible when mandatory parameters changed + */ +func NewUpdateAlarmRequest( + alarmId string, + product string, + resourceOption *monitor.ResourceOption, + ruleName string, + ruleOption *monitor.RuleOption, +) *UpdateAlarmRequest { + + return &UpdateAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}", + Method: "PUT", + Header: nil, + Version: "v2", + }, + AlarmId: alarmId, + Product: product, + ResourceOption: resourceOption, + RuleName: ruleName, + RuleOption: ruleOption, + } +} + +/* + * param alarmId: 规则id (Required) + * param autoScalingPolicyId: 弹性伸缩组Id。注:仅ag\asg产品线内部使用 (Optional) + * param baseContact: 告警通知联系人 (Optional) + * param dataOwner: 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) + * param dimension: 资源维度,可用的维度请使用 describeProductsForAlarm接口查询 (Optional) + * param enabled: 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) + * param multiWebHook: url回调设置数组 (Optional) + * param noticeOption: 通知策略 (Optional) + * param product: 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。 (Required) + * param resourceOption: (Required) + * param ruleName: 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" (Required) + * param ruleOption: (Required) + * param ruleType: 规则类型, 默认为resourceMonitor (Optional) + * param tags: 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足) (Optional) + * param webHookOption: (Optional) + */ +func NewUpdateAlarmRequestWithAllParams( + alarmId string, + autoScalingPolicyId *string, + baseContact []monitor.BaseContact, + dataOwner *int64, + dimension *string, + enabled *int64, + multiWebHook []monitor.WebHookOption, + noticeOption []monitor.NoticeOption, + product string, + resourceOption *monitor.ResourceOption, + ruleName string, + ruleOption *monitor.RuleOption, + ruleType *string, + tags *interface{}, + webHookOption *monitor.WebHookOption, +) *UpdateAlarmRequest { + + return &UpdateAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}", + Method: "PUT", + Header: nil, + Version: "v2", + }, + AlarmId: alarmId, + AutoScalingPolicyId: autoScalingPolicyId, + BaseContact: baseContact, + DataOwner: dataOwner, + Dimension: dimension, + Enabled: enabled, + MultiWebHook: multiWebHook, + NoticeOption: noticeOption, + Product: product, + ResourceOption: resourceOption, + RuleName: ruleName, + RuleOption: ruleOption, + RuleType: ruleType, + Tags: tags, + WebHookOption: webHookOption, + } +} + +/* This constructor has better compatible ability when API parameters changed */ +func NewUpdateAlarmRequestWithoutParam() *UpdateAlarmRequest { + + return &UpdateAlarmRequest{ + JDCloudRequest: core.JDCloudRequest{ + URL: "/groupAlarms/{alarmId}", + Method: "PUT", + Header: nil, + Version: "v2", + }, + } +} + +/* param alarmId: 规则id(Required) */ +func (r *UpdateAlarmRequest) SetAlarmId(alarmId string) { + r.AlarmId = alarmId +} + +/* param autoScalingPolicyId: 弹性伸缩组Id。注:仅ag\asg产品线内部使用(Optional) */ +func (r *UpdateAlarmRequest) SetAutoScalingPolicyId(autoScalingPolicyId string) { + r.AutoScalingPolicyId = &autoScalingPolicyId +} + +/* param baseContact: 告警通知联系人(Optional) */ +func (r *UpdateAlarmRequest) SetBaseContact(baseContact []monitor.BaseContact) { + r.BaseContact = baseContact +} + +/* param dataOwner: 数据所有者,1云监控控制台; 2云鼎。默认为1(Optional) */ +func (r *UpdateAlarmRequest) SetDataOwner(dataOwner int64) { + r.DataOwner = &dataOwner +} + +/* param dimension: 资源维度,可用的维度请使用 describeProductsForAlarm接口查询(Optional) */ +func (r *UpdateAlarmRequest) SetDimension(dimension string) { + r.Dimension = &dimension +} + +/* param enabled: 是否启用, 1表示启用规则,0表示禁用规则,默认为1(Optional) */ +func (r *UpdateAlarmRequest) SetEnabled(enabled int64) { + r.Enabled = &enabled +} + +/* param multiWebHook: url回调设置数组(Optional) */ +func (r *UpdateAlarmRequest) SetMultiWebHook(multiWebHook []monitor.WebHookOption) { + r.MultiWebHook = multiWebHook +} + +/* param noticeOption: 通知策略(Optional) */ +func (r *UpdateAlarmRequest) SetNoticeOption(noticeOption []monitor.NoticeOption) { + r.NoticeOption = noticeOption +} + +/* param product: 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。(Required) */ +func (r *UpdateAlarmRequest) SetProduct(product string) { + r.Product = product +} + +/* param resourceOption: (Required) */ +func (r *UpdateAlarmRequest) SetResourceOption(resourceOption *monitor.ResourceOption) { + r.ResourceOption = resourceOption +} + +/* param ruleName: 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_"(Required) */ +func (r *UpdateAlarmRequest) SetRuleName(ruleName string) { + r.RuleName = ruleName +} + +/* param ruleOption: (Required) */ +func (r *UpdateAlarmRequest) SetRuleOption(ruleOption *monitor.RuleOption) { + r.RuleOption = ruleOption +} + +/* param ruleType: 规则类型, 默认为resourceMonitor(Optional) */ +func (r *UpdateAlarmRequest) SetRuleType(ruleType string) { + r.RuleType = &ruleType +} + +/* param tags: 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足)(Optional) */ +func (r *UpdateAlarmRequest) SetTags(tags interface{}) { + r.Tags = &tags +} + +/* param webHookOption: (Optional) */ +func (r *UpdateAlarmRequest) SetWebHookOption(webHookOption *monitor.WebHookOption) { + r.WebHookOption = webHookOption +} + +// GetRegionId returns path parameter 'regionId' if exist, +// otherwise return empty string +func (r UpdateAlarmRequest) GetRegionId() string { + return "" +} + +type UpdateAlarmResponse struct { + RequestID string `json:"requestId"` + Error core.ErrorResponse `json:"error"` + Result UpdateAlarmResult `json:"result"` +} + +type UpdateAlarmResult struct { + AlarmId string `json:"alarmId"` + RuleIds []int64 `json:"ruleIds"` + Success bool `json:"success"` +} \ No newline at end of file diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/client/MonitorClient.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/client/MonitorClient.go new file mode 100644 index 0000000000..f34bd302bb --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/client/MonitorClient.go @@ -0,0 +1,419 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package client + +import ( + "github.com/jdcloud-api/jdcloud-sdk-go/core" + monitor "github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis" + "encoding/json" + "errors" +) + +type MonitorClient struct { + core.JDCloudClient +} + +func NewMonitorClient(credential *core.Credential) *MonitorClient { + if credential == nil { + return nil + } + + config := core.NewConfig() + config.SetEndpoint("monitor.jdcloud-api.com") + + return &MonitorClient{ + core.JDCloudClient{ + Credential: *credential, + Config: *config, + ServiceName: "monitor", + Revision: "2.4.5", + Logger: core.NewDefaultLogger(core.LogInfo), + }} +} + +func (c *MonitorClient) SetConfig(config *core.Config) { + c.Config = *config +} + +func (c *MonitorClient) SetLogger(logger core.Logger) { + c.Logger = logger +} + +func (c *MonitorClient) DisableLogger() { + c.Logger = core.NewDummyLogger() +} + +/* 创建报警规则 */ +func (c *MonitorClient) CreateAlarm(request *monitor.CreateAlarmRequest) (*monitor.CreateAlarmResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.CreateAlarmResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 查看某资源单个监控项数据,metric介绍:Metrics,可以使用接口describeMetrics:查询产品线可用的metric列表。 */ +func (c *MonitorClient) DescribeMetricData(request *monitor.DescribeMetricDataRequest) (*monitor.DescribeMetricDataResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeMetricDataResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 查询监控图可用的产品线列表 */ +func (c *MonitorClient) DescribeServices(request *monitor.DescribeServicesRequest) (*monitor.DescribeServicesResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeServicesResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 查询可用于创建监控规则的指标列表,metric介绍:Metrics */ +func (c *MonitorClient) DescribeMetricsForAlarm(request *monitor.DescribeMetricsForAlarmRequest) (*monitor.DescribeMetricsForAlarmResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeMetricsForAlarmResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 查询规则的报警联系人 */ +func (c *MonitorClient) DescribeAlarmContacts(request *monitor.DescribeAlarmContactsRequest) (*monitor.DescribeAlarmContactsResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeAlarmContactsResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 查询报警历史 */ +func (c *MonitorClient) DescribeAlarmHistory(request *monitor.DescribeAlarmHistoryRequest) (*monitor.DescribeAlarmHistoryResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeAlarmHistoryResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 查询规则详情 */ +func (c *MonitorClient) DescribeAlarm(request *monitor.DescribeAlarmRequest) (*monitor.DescribeAlarmResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeAlarmResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 删除规则 */ +func (c *MonitorClient) DeleteAlarms(request *monitor.DeleteAlarmsRequest) (*monitor.DeleteAlarmsResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DeleteAlarmsResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 根据不同的聚合方式将metric的数据聚合为一个点。downAggrType:last(最后一个点)、max(最大值)、min(最小值)、avg(平均值)。该接口返回值为上报metric的原始值,没有做单位转换。metric介绍:Metrics */ +func (c *MonitorClient) LastDownsample(request *monitor.LastDownsampleRequest) (*monitor.LastDownsampleResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.LastDownsampleResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 查询可用于创建监控规则的产品列表 */ +func (c *MonitorClient) DescribeProductsForAlarm(request *monitor.DescribeProductsForAlarmRequest) (*monitor.DescribeProductsForAlarmResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeProductsForAlarmResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 修改已创建的报警规则 */ +func (c *MonitorClient) UpdateAlarm(request *monitor.UpdateAlarmRequest) (*monitor.UpdateAlarmResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.UpdateAlarmResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 通过指定维度查询自定义监控的数据 */ +func (c *MonitorClient) DescribeCustomMetricData(request *monitor.DescribeCustomMetricDataRequest) (*monitor.DescribeCustomMetricDataResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeCustomMetricDataResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 启用、禁用规则 */ +func (c *MonitorClient) EnableAlarms(request *monitor.EnableAlarmsRequest) (*monitor.EnableAlarmsResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.EnableAlarmsResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 查询某资源下指定tag key的tag value */ +func (c *MonitorClient) DescribeTagValues(request *monitor.DescribeTagValuesRequest) (*monitor.DescribeTagValuesResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeTagValuesResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 该接口为自定义监控数据上报的接口,方便您将自己采集的时序数据上报到云监控。不同region域名上报不同region的数据,参考:调用说明可上报原始数据和已聚合的统计数据。支持批量上报方式。单次请求最多包含 50 个数据点;数据大小不超过 256k。 */ +func (c *MonitorClient) PutCustomMetricData(request *monitor.PutCustomMetricDataRequest) (*monitor.PutCustomMetricDataResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.PutCustomMetricDataResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 该接口为自定义监控数据上报的接口,方便您将自己采集的时序数据上报到云监控。不同region域名上报不同region的数据,参考:调用说明可上报原始数据和已聚合的统计数据。支持批量上报方式。单次请求最多包含 50 个数据点;数据大小不超过 256k。 */ +func (c *MonitorClient) PutMetricData(request *monitor.PutMetricDataRequest) (*monitor.PutMetricDataResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.PutMetricDataResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 查询规则列表 */ +func (c *MonitorClient) DescribeAlarms(request *monitor.DescribeAlarmsRequest) (*monitor.DescribeAlarmsResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeAlarmsResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + +/* 根据产品线查询可用监控项列表,metric介绍:Metrics */ +func (c *MonitorClient) DescribeMetrics(request *monitor.DescribeMetricsRequest) (*monitor.DescribeMetricsResponse, error) { + if request == nil { + return nil, errors.New("Request object is nil. ") + } + resp, err := c.Send(request, c.ServiceName) + if err != nil { + return nil, err + } + + jdResp := &monitor.DescribeMetricsResponse{} + err = json.Unmarshal(resp, jdResp) + if err != nil { + c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp)) + return nil, err + } + + return jdResp, err +} + diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AddTagsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AddTagsSpec.go new file mode 100644 index 0000000000..f765b8b398 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AddTagsSpec.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type AddTagsSpec struct { + + /* 应用码。调用此API前需找云监控提供 */ + AppCode string `json:"appCode"` + + /* 组id。须确保在一个APP范围内全局唯一 */ + GroupCode string `json:"groupCode"` + + /* 资源列表。总资源不能超过100个 */ + ResourceIds []string `json:"resourceIds"` + + /* 资源的产品线 */ + ServiceCode string `json:"serviceCode"` + + /* 打标签操作所属产品线的serviceCode */ + SrcServiceCode string `json:"srcServiceCode"` + + /* 标签名称。调用此API前需要与云监控确认可以使用的标签名称 */ + TagK string `json:"tagK"` + + /* 标签值 */ + TagV string `json:"tagV"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmNofityConfig.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmNofityConfig.go new file mode 100644 index 0000000000..02ce1a1817 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmNofityConfig.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type AlarmNofityConfig struct { + + /* ark节点 */ + ArkNode string `json:"arkNode"` + + /* 通知channle名称 */ + ChannelName string `json:"channelName"` + + /* 通知channle目的地url */ + ChannelUrl string `json:"channelUrl"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmUsage.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmUsage.go new file mode 100644 index 0000000000..edf61079a2 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmUsage.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type AlarmUsage struct { + + /* 规则类型:resourceMonitor资源监控;customMetric自定义监控;oneclickAlarm一键报警 (Optional) */ + AlarmType string `json:"alarmType"` + + /* 总个数 (Optional) */ + AllCount int64 `json:"allCount"` + + /* 启用个数 (Optional) */ + EnableCount int64 `json:"enableCount"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmVo.go new file mode 100644 index 0000000000..615ebf2068 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlarmVo.go @@ -0,0 +1,84 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type AlarmVo struct { + + /* 监控项单位 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */ + Calculation string `json:"calculation"` + + /* 联系人列表 (Optional) */ + Contacts []BaseContact `json:"contacts"` + + /* (Optional) */ + CreateTime string `json:"createTime"` + + /* 是否删除 1正常,0删除 (Optional) */ + Deleted int64 `json:"deleted"` + + /* downSample (Optional) */ + DownSample string `json:"downSample"` + + /* 规则ID (Optional) */ + Id int64 `json:"id"` + + /* 监控项 (Optional) */ + Metric string `json:"metric"` + + /* 监控项ID (Optional) */ + MetricId int64 `json:"metricId"` + + /* 监控项名称 (Optional) */ + MetricName string `json:"metricName"` + + /* (Optional) */ + NoticeLevel NoticeLevel `json:"noticeLevel"` + + /* 通知周期 (Optional) */ + NoticePeriod int64 `json:"noticePeriod"` + + /* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) (Optional) */ + Operation string `json:"operation"` + + /* 统计周期(单位:分钟) (Optional) */ + Period int64 `json:"period"` + + /* 规则类型 (Optional) */ + RuleType int64 `json:"ruleType"` + + /* 规则所属资源类型 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 监控项附属信息 (Optional) */ + Tag string `json:"tag"` + + /* 多值标签 (Optional) */ + Tags interface{} `json:"tags"` + + /* 阈值 (Optional) */ + Threshold float64 `json:"threshold"` + + /* 连续多少次后报警 (Optional) */ + Times int64 `json:"times"` + + /* (Optional) */ + UpdateTime string `json:"updateTime"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlertChannel.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlertChannel.go new file mode 100644 index 0000000000..7d039cbebc --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlertChannel.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type AlertChannel struct { + + /* (Optional) */ + Created string `json:"created"` + + /* channel id (Optional) */ + Uid string `json:"uid"` + + /* alert channel类型 (Optional) */ + AlertChannelType string `json:"alertChannelType"` + + /* 名称 (Optional) */ + Name string `json:"name"` + + /* 详情 (Optional) */ + Settings interface{} `json:"settings"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlertResource.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlertResource.go new file mode 100644 index 0000000000..1a17e7b07e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/AlertResource.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type AlertResource struct { + + /* 报警个数 (Optional) */ + AlertCount int64 `json:"alertCount"` + + /* 产品 (Optional) */ + Product string `json:"product"` + + /* 产品名称 (Optional) */ + ProductName string `json:"productName"` + + /* 资源id (Optional) */ + ResourceId string `json:"resourceId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Annotation.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Annotation.go new file mode 100644 index 0000000000..4d10f9cef4 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Annotation.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Annotation struct { + + /* (Optional) */ + Custom interface{} `json:"custom"` + + /* (Optional) */ + Description string `json:"description"` + + /* (Optional) */ + EndTime int64 `json:"endTime"` + + /* (Optional) */ + Notes string `json:"notes"` + + /* (Optional) */ + StartTime int64 `json:"startTime"` + + /* (Optional) */ + Tsuid string `json:"tsuid"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Attrs.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Attrs.go new file mode 100644 index 0000000000..4824af6bba --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Attrs.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Attrs struct { + + /* (Optional) */ + Key string `json:"key"` + + /* (Optional) */ + Value []string `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseContact.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseContact.go new file mode 100644 index 0000000000..803b669a95 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseContact.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type BaseContact struct { + + /* 联系人id。 注:ReferenceType=2时,联系人id请填0 */ + ReferenceId int64 `json:"referenceId"` + + /* 联系人id类型:0,联系人分组id;1,联系人id,2,pin帐号主联系人 */ + ReferenceType int64 `json:"referenceType"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseRule.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseRule.go new file mode 100644 index 0000000000..bd7f5ae1ab --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseRule.go @@ -0,0 +1,63 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type BaseRule struct { + + /* 弹性伸缩组ID (Optional) */ + AutoScalingPolicyId string `json:"autoScalingPolicyId"` + + /* 单位 */ + CalculateUnit string `json:"calculateUnit"` + + /* 统计方法,必须与定义的metric一致,可选值列表:avg,sum,max,min */ + Calculation string `json:"calculation"` + + /* 降采样函数 */ + DownSample string `json:"downSample"` + + /* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample */ + Metric string `json:"metric"` + + /* (Optional) */ + NoticeLevel NoticeLevel `json:"noticeLevel"` + + /* 通知周期,单位:小时 */ + NoticePeriod int64 `json:"noticePeriod"` + + /* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) */ + Operation string `json:"operation"` + + /* 查询指标的周期,单位为分钟,目前支持的取值:1,2,5,10,15,30,60 */ + Period int64 `json:"period"` + + /* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" (Optional) */ + RuleName string `json:"ruleName"` + + /* 规则类型, 1云监控的规则, 6站点监控。默认为1 (Optional) */ + RuleType int64 `json:"ruleType"` + + /* 多值标签 (Optional) */ + Tags interface{} `json:"tags"` + + /* 报警阈值,目前只开放数值类型功能 */ + Threshold float64 `json:"threshold"` + + /* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5,10,15,30,60 */ + Times int64 `json:"times"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseRuleT.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseRuleT.go new file mode 100644 index 0000000000..862cdf6a60 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BaseRuleT.go @@ -0,0 +1,63 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type BaseRuleT struct { + + /* 弹性伸缩组ID (Optional) */ + AutoScalingPolicyId string `json:"autoScalingPolicyId"` + + /* 监控项单位 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 统计方法,必须与定义的metric一致,可选值列表:avg,sum,max,min */ + Calculation string `json:"calculation"` + + /* 降采样函数 (Optional) */ + DownSample string `json:"downSample"` + + /* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample */ + Metric string `json:"metric"` + + /* 监控项ID (Optional) */ + MetricId int64 `json:"metricId"` + + /* (Optional) */ + NoticeLevel NoticeLevel `json:"noticeLevel"` + + /* 通知周期,单位:小时 */ + NoticePeriod int64 `json:"noticePeriod"` + + /* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) */ + Operation string `json:"operation"` + + /* 查询指标的周期,单位为分钟,目前支持的取值:1, 2,5,10,15,30,60 */ + Period int64 `json:"period"` + + /* 规则类型, 1表示云监控,2表示弹性伸缩,3表示AG,4表示AutoHeal,5表示自定义监控,6表示hawkeye */ + RuleType int64 `json:"ruleType"` + + /* 多值标签 (Optional) */ + Tags interface{} `json:"tags"` + + /* 报警阈值,目前只开放数值类型功能 */ + Threshold float64 `json:"threshold"` + + /* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5,10,15,30,60 */ + Times int64 `json:"times"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicCustomRule.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicCustomRule.go new file mode 100644 index 0000000000..6ccf989dfa --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicCustomRule.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type BasicCustomRule struct { + + /* 统计方法,必须与定义的metric一致,可选值列表:avg,sum,max,min */ + Calculation string `json:"calculation"` + + /* 监控项metric */ + Metric string `json:"metric"` + + /* (Optional) */ + NoticeLevel NoticeLevel `json:"noticeLevel"` + + /* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) */ + Operation string `json:"operation"` + + /* 查询指标的周期,单位为分钟,目前支持的取值:1,2,5,10,15,30,60 */ + Period int64 `json:"period"` + + /* 报警阈值,目前只开放数值类型功能 */ + Threshold float64 `json:"threshold"` + + /* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5,10,15,30,60 */ + Times int64 `json:"times"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicDatasource.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicDatasource.go new file mode 100644 index 0000000000..656140d8d0 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicDatasource.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type BasicDatasource struct { + + /* customHttpHeader (Optional) */ + CustomHttpHeader interface{} `json:"customHttpHeader"` + + /* (Optional) */ + OpentsdbExtend OpentsdbExtend `json:"opentsdbExtend"` + + /* jdcloud-monitor-opentsdb 后续可能会有其它。如jdcloud-monitor-prometheus等 */ + PluginType string `json:"pluginType"` + + /* 数据源地址 */ + Url string `json:"url"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicRule.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicRule.go new file mode 100644 index 0000000000..ea41aa8280 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicRule.go @@ -0,0 +1,45 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type BasicRule struct { + + /* 统计方法,必须与定义的metric一致,可选值列表:avg,sum,max,min */ + Calculation string `json:"calculation"` + + /* 降采样函数 (Optional) */ + DownSample *string `json:"downSample"` + + /* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample */ + Metric string `json:"metric"` + + /* (Optional) */ + NoticeLevel *NoticeLevel `json:"noticeLevel"` + + /* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) */ + Operation string `json:"operation"` + + /* 查询指标的周期,单位为分钟,目前支持的取值:1,2,5,10,15,30,60 */ + Period int64 `json:"period"` + + /* 报警阈值,目前只开放数值类型功能 */ + Threshold float64 `json:"threshold"` + + /* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5,10,15,30,60 */ + Times int64 `json:"times"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicRuleDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicRuleDetail.go new file mode 100644 index 0000000000..35572bf891 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BasicRuleDetail.go @@ -0,0 +1,51 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type BasicRuleDetail struct { + + /* 指标的计算单位,比如bit/s、%、k等 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 统计方法,必须与定义的metric一致,可选值列表:avg,sum,max,min */ + Calculation string `json:"calculation"` + + /* 降采样函数 (Optional) */ + DownSample string `json:"downSample"` + + /* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample */ + Metric string `json:"metric"` + + /* 监控项名称 */ + MetricName string `json:"metricName"` + + /* (Optional) */ + NoticeLevel NoticeLevel `json:"noticeLevel"` + + /* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) */ + Operation string `json:"operation"` + + /* 查询指标的周期,单位为分钟,目前支持的取值:1,2,5,10,15,30,60 */ + Period int64 `json:"period"` + + /* 报警阈值,目前只开放数值类型功能 */ + Threshold float64 `json:"threshold"` + + /* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5,10,15,30,60 */ + Times int64 `json:"times"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BatchUpdateWidgetError.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BatchUpdateWidgetError.go new file mode 100644 index 0000000000..49501b5bdc --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BatchUpdateWidgetError.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type BatchUpdateWidgetError struct { + + /* (Optional) */ + DashboardId string `json:"dashboardId"` + + /* (Optional) */ + Error string `json:"error"` + + /* (Optional) */ + WidgetId string `json:"widgetId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BatchUpdateWidgetSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BatchUpdateWidgetSpec.go new file mode 100644 index 0000000000..10ca515363 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/BatchUpdateWidgetSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type BatchUpdateWidgetSpec struct { + + /* (Optional) */ + List []Widget `json:"list"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Chart.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Chart.go new file mode 100644 index 0000000000..07f7cad815 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Chart.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Chart struct { + + /* 监控图名称 (Optional) */ + ChartName string `json:"chartName"` + + /* 监控图单位 (Optional) */ + ChartUnit string `json:"chartUnit"` + + /* 监控图包含的指标 (Optional) */ + Include []string `json:"include"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDetail.go new file mode 100644 index 0000000000..bd948bbbea --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDetail.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ChartDetail struct { + + /* 监控图名称 (Optional) */ + ChartName string `json:"chartName"` + + /* 监控图单位 (Optional) */ + ChartUnit string `json:"chartUnit"` + + /* 监控图包含的指标 (Optional) */ + Include []string `json:"include"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDimension.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDimension.go new file mode 100644 index 0000000000..6f7699626d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDimension.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ChartDimension struct { + + /* 分组groupCode (Optional) */ + Dimension string `json:"dimension"` + + /* 分组名称 (Optional) */ + DimensionName string `json:"dimensionName"` + + /* 分组下metric对应的tags (Optional) */ + Tags interface{} `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDimensionDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDimensionDetail.go new file mode 100644 index 0000000000..bb8668b669 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ChartDimensionDetail.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ChartDimensionDetail struct { + + /* 监控图的展示方式 (Optional) */ + Charts []ChartDetail `json:"charts"` + + /* 维度dimension (Optional) */ + Dimension string `json:"dimension"` + + /* 分组名称 (Optional) */ + DimensionName string `json:"dimensionName"` + + /* 产品线 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 分组名称 (Optional) */ + ServiceName string `json:"serviceName"` + + /* 分组下metric对应的tags (Optional) */ + Tags interface{} `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorAccessList.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorAccessList.go new file mode 100644 index 0000000000..56796c4d1c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorAccessList.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CloudMonitorAccessList struct { + + /* 是否允许选择全部 (Optional) */ + AllowedAll bool `json:"allowedAll"` + + /* serviceCode列表 (Optional) */ + ServiceCodes []CloudMonitorServiceCodeItem `json:"serviceCodes"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorOption.go new file mode 100644 index 0000000000..18d5cdf558 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorOption.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CloudMonitorOption struct { + + /* 1-all 2-指定权限 (Optional) */ + ControllerType int64 `json:"controllerType"` + + /* 个数最多20个 (Optional) */ + ServiceCodes []string `json:"serviceCodes"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorServiceCodeItem.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorServiceCodeItem.go new file mode 100644 index 0000000000..8968317fe4 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CloudMonitorServiceCodeItem.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CloudMonitorServiceCodeItem struct { + + /* serviceCode (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* serviceCode (Optional) */ + ServiceName string `json:"serviceName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CmAlarm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CmAlarm.go new file mode 100644 index 0000000000..5e9d2298fb --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CmAlarm.go @@ -0,0 +1,102 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CmAlarm struct { + + /* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */ + Calculation string `json:"calculation"` + + /* (Optional) */ + ContactGroups []string `json:"contactGroups"` + + /* (Optional) */ + ContactPersons []string `json:"contactPersons"` + + /* (Optional) */ + CreateTime string `json:"createTime"` + + /* 启用禁用 1启用,0禁用 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 规则id (Optional) */ + Id string `json:"id"` + + /* 监控项 (Optional) */ + Metric string `json:"metric"` + + /* 规则id监控项名称 (Optional) */ + MetricName string `json:"metricName"` + + /* 命名空间 (Optional) */ + Namespace string `json:"namespace"` + + /* 命名空间id (Optional) */ + NamespaceUID string `json:"namespaceUID"` + + /* 通知周期 单位:小时 (Optional) */ + NoticePeriod int64 `json:"noticePeriod"` + + /* (Optional) */ + NoticeTime string `json:"noticeTime"` + + /* 对象 (Optional) */ + Obj string `json:"obj"` + + /* 对象id (Optional) */ + ObjUID string `json:"objUID"` + + /* >=、>、<、<=、=、!= (Optional) */ + Operation string `json:"operation"` + + /* 统计周期(单位:分钟) (Optional) */ + Period int64 `json:"period"` + + /* 地域信息 (Optional) */ + Region string `json:"region"` + + /* 此规则所应用的资源id (Optional) */ + ResourceId string `json:"resourceId"` + + /* root rule id (Optional) */ + RootRuleId int64 `json:"rootRuleId"` + + /* rule id (Optional) */ + RuleId int64 `json:"ruleId"` + + /* 规则名称 (Optional) */ + RuleName string `json:"ruleName"` + + /* 报警规则对应的产品 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 监控项状态:1正常,2告警,4数据不足 (Optional) */ + Status int64 `json:"status"` + + /* 监控项附属信息 (Optional) */ + Tag string `json:"tag"` + + /* 阈值 (Optional) */ + Threshold float64 `json:"threshold"` + + /* 连续多少次后报警 (Optional) */ + Times int64 `json:"times"` + + /* 报警值 (Optional) */ + Value float64 `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CmAlarmHistory.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CmAlarmHistory.go new file mode 100644 index 0000000000..e06b082592 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CmAlarmHistory.go @@ -0,0 +1,99 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CmAlarmHistory struct { + + /* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */ + Calculation string `json:"calculation"` + + /* (Optional) */ + ContactGroups []string `json:"contactGroups"` + + /* (Optional) */ + ContactPersons []string `json:"contactPersons"` + + /* 该规则是否已经被删除,1表示已经被删除,0表示未删除,被删除的规则,在使用查询规则的接口时,将不会被检索到 (Optional) */ + Deleted int64 `json:"deleted"` + + /* 启用禁用 1启用,0禁用 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 规则id (Optional) */ + Id string `json:"id"` + + /* 监控项 (Optional) */ + Metric string `json:"metric"` + + /* 规则id监控项名称 (Optional) */ + MetricName string `json:"metricName"` + + /* 命名空间 (Optional) */ + Namespace string `json:"namespace"` + + /* 命名空间id (Optional) */ + NamespaceUID string `json:"namespaceUID"` + + /* 通知周期 单位:小时 (Optional) */ + NoticePeriod int64 `json:"noticePeriod"` + + /* (Optional) */ + NoticeTime string `json:"noticeTime"` + + /* 对象 (Optional) */ + Obj string `json:"obj"` + + /* 对象id (Optional) */ + ObjUID string `json:"objUID"` + + /* >=、>、<、<=、=、!= (Optional) */ + Operation string `json:"operation"` + + /* 统计周期(单位:分钟) (Optional) */ + Period int64 `json:"period"` + + /* 地域信息 (Optional) */ + Region string `json:"region"` + + /* 此规则所应用的资源id (Optional) */ + ResourceId string `json:"resourceId"` + + /* root rule id (Optional) */ + RootRuleId int64 `json:"rootRuleId"` + + /* rule id (Optional) */ + RuleId int64 `json:"ruleId"` + + /* 规则名称 (Optional) */ + RuleName string `json:"ruleName"` + + /* 报警规则对应的产品 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 监控项附属信息 (Optional) */ + Tag string `json:"tag"` + + /* 阈值 (Optional) */ + Threshold float64 `json:"threshold"` + + /* 连续多少次后报警 (Optional) */ + Times int64 `json:"times"` + + /* 报警值 (Optional) */ + Value float64 `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ConfigNotificationSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ConfigNotificationSpec.go new file mode 100644 index 0000000000..6fa7598c95 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ConfigNotificationSpec.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ConfigNotificationSpec struct { + + /* 事件操作类型、 create、update、delete */ + ActionType string `json:"actionType"` + + /* (Optional) */ + MsgDetail AlarmNofityConfig `json:"msgDetail"` + + /* 事件类型、 nofityChannelMsg(通知渠道配置消息) */ + MsgType string `json:"msgType"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Contact.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Contact.go new file mode 100644 index 0000000000..d175a340b9 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Contact.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Contact struct { + + /* 联系人类型。"group"表示群组,"user"表示用户, "self"表示发给pin自己 */ + Category string `json:"category"` + + /* 联系人ID */ + Id int64 `json:"id"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateAlarmSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateAlarmSpec.go new file mode 100644 index 0000000000..d707522287 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateAlarmSpec.go @@ -0,0 +1,66 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateAlarmSpec struct { + + /* 弹性伸缩组Id。注:仅ag\asg产品线内部使用 (Optional) */ + AutoScalingPolicyId string `json:"autoScalingPolicyId"` + + /* 告警通知联系人 (Optional) */ + BaseContact []BaseContact `json:"baseContact"` + + /* 幂等性校验参数,最长36位,若两个请求clientToken相等,则返回第一次创建的规则id,只创建一次规则 */ + ClientToken string `json:"clientToken"` + + /* 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) */ + DataOwner int64 `json:"dataOwner"` + + /* 资源维度,可用的维度请使用 describeProductsForAlarm接口查询 (Optional) */ + Dimension string `json:"dimension"` + + /* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */ + Enabled int64 `json:"enabled"` + + /* url回调设置数组 (Optional) */ + MultiWebHook []WebHookOption `json:"multiWebHook"` + + /* 通知策略 (Optional) */ + NoticeOption []NoticeOption `json:"noticeOption"` + + /* 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。 */ + Product string `json:"product"` + + /* */ + ResourceOption ResourceOption `json:"resourceOption"` + + /* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" */ + RuleName string `json:"ruleName"` + + /* */ + RuleOption RuleOption `json:"ruleOption"` + + /* 规则类型, 默认为resourceMonitor (Optional) */ + RuleType string `json:"ruleType"` + + /* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足) (Optional) */ + Tags interface{} `json:"tags"` + + /* (Optional) */ + WebHookOption WebHookOption `json:"webHookOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCmAlarmParam.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCmAlarmParam.go new file mode 100644 index 0000000000..67916cdf92 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCmAlarmParam.go @@ -0,0 +1,60 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateCmAlarmParam struct { + + /* 统计方法,必须与定义的metric一致,可选值列表:avg,max,sum,min */ + Calculation string `json:"calculation"` + + /* 报警规则通知的联系组,必须在控制台上已创建,例如" ['联系组1','联系组2']" (Optional) */ + ContactGroups []string `json:"contactGroups"` + + /* 报警规则通知的联系人,必须在控制台上已创建,例如 [“联系人1”,”联系人2”] (Optional) */ + ContactPersons []string `json:"contactPersons"` + + /* 取样频次 (Optional) */ + DownSample string `json:"downSample"` + + /* 根据产品线查询可用监控项列表 接口 返回的Metric字段 */ + MetricUID string `json:"metricUID"` + + /* 命名空间 */ + NamespaceUID string `json:"namespaceUID"` + + /* 通知周期 单位:小时 (Optional) */ + NoticePeriod int64 `json:"noticePeriod"` + + /* 报警规则对应实例列表,每次最多100个,例如"['resourceId1','resourceId2']" */ + ObjUIDs []string `json:"objUIDs"` + + /* 报警比较符,只能为以下几种<=,<,>,>=,==,!= */ + Operation string `json:"operation"` + + /* 查询指标的周期,单位为分钟,目前支持的取值:2,5,15,30,60 */ + Period int64 `json:"period"` + + /* 规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" (Optional) */ + RuleName string `json:"ruleName"` + + /* 报警阈值,目前只开放数值类型功能 */ + Threshold float64 `json:"threshold"` + + /* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5 */ + Times int64 `json:"times"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCmAlarmSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCmAlarmSpec.go new file mode 100644 index 0000000000..c7d53447fa --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCmAlarmSpec.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateCmAlarmSpec struct { + + /* 幂等性校验参数,最长36位,若两个请求clientToken相等,则返回第一次创建的规则id,保证只创建一次规则 */ + ClientToken string `json:"clientToken"` + + /* */ + CreateCmAlarmSpec CreateCustomAlarmParam `json:"createCmAlarmSpec"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCustomAlarmParam.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCustomAlarmParam.go new file mode 100644 index 0000000000..f70847b119 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCustomAlarmParam.go @@ -0,0 +1,58 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateCustomAlarmParam struct { + + /* 聚合方式,多个维度聚合成1个维度时,多维度值之间的聚合方式。可选值:sum、avg、min、max */ + AggrType string `json:"aggrType"` + + /* 告警通知联系人 (Optional) */ + BaseContact []BaseContact `json:"baseContact"` + + /* 数据所有者,1云监控控制台; 2云鼎。默认为1 +in: query (Optional) */ + DataOwner int64 `json:"dataOwner"` + + /* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足),至少指定一个 */ + Dimensions []DimensionsParam `json:"dimensions"` + + /* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 回调数组 (Optional) */ + MultiWebHook []WebHookOption `json:"multiWebHook"` + + /* 命名空间 */ + Namespace string `json:"namespace"` + + /* 通知策略 (Optional) */ + NoticeOption []NoticeOption `json:"noticeOption"` + + /* 规则绑定资源所在地域 */ + Region string `json:"region"` + + /* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" */ + RuleName string `json:"ruleName"` + + /* 规则的触发条件设置选项 */ + RuleOption []BasicCustomRule `json:"ruleOption"` + + /* (Optional) */ + WebHookOption WebHookOption `json:"webHookOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCustomQuerySpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCustomQuerySpec.go new file mode 100644 index 0000000000..147ca60229 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateCustomQuerySpec.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateCustomQuerySpec struct { + + /* 幂等性校验参数,最长36位 */ + ClientToken string `json:"clientToken"` + + /* 快捷检索条件名称,长度为32个字符,只允许中文、数字、大小写字母、英文下划线“_”及中划线“-”,且不允许重名 */ + Name string `json:"name"` + + /* 命名空间 */ + Namespace string `json:"namespace"` + + /* */ + QueryOption QueryOptionCreate `json:"queryOption"` + + /* */ + RegionId string `json:"regionId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateDashboardSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateDashboardSpec.go new file mode 100644 index 0000000000..399207ff9d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateDashboardSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateDashboardSpec struct { + + /* (Optional) */ + Name string `json:"name"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateDynamicSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateDynamicSpec.go new file mode 100644 index 0000000000..1b53261920 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateDynamicSpec.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateDynamicSpec struct { + + /* 幂等性校验参数 */ + ClientToken string `json:"clientToken"` + + /* 产品动态中文描述 */ + DynamicDetailCN string `json:"dynamicDetailCN"` + + /* 产品动态英文描述 */ + DynamicDetailEN string `json:"dynamicDetailEN"` + + /* 产品动态类型 1-新产品 2-新功能 3-功能调整 4-其它 */ + DynamicType int64 `json:"dynamicType"` + + /* 产品动态链接地址 (Optional) */ + DynamicUrl string `json:"dynamicUrl"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateGrafanaDashboardSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateGrafanaDashboardSpec.go new file mode 100644 index 0000000000..39625f8bcb --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateGrafanaDashboardSpec.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateGrafanaDashboardSpec struct { + + /* (Optional) */ + Description string `json:"description"` + + /* FolderId,文件夹id,默认为0 (Optional) */ + FolderId int64 `json:"folderId"` + + /* Params, 模板参数名称及指定值,key为名称、value为指定值 */ + Params interface{} `json:"params"` + + /* templateUid */ + TemplateUid string `json:"templateUid"` + + /* Title */ + Title string `json:"title"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateGrafanaFolderReq.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateGrafanaFolderReq.go new file mode 100644 index 0000000000..7f1dbf1866 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateGrafanaFolderReq.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateGrafanaFolderReq struct { + + /* 文件夹列表 */ + Title string `json:"title"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreatePanelSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreatePanelSpec.go new file mode 100644 index 0000000000..4ea2b6ad16 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreatePanelSpec.go @@ -0,0 +1,51 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreatePanelSpec struct { + + /* 该panel所属dashboard的uid */ + DashboardUid string `json:"dashboardUid"` + + /* 该panel所属维度 (Optional) */ + Dimension string `json:"dimension"` + + /* 该panel包含的metric */ + PanelMetrics []PanelMetricForCreate `json:"panelMetrics"` + + /* 该panel的名字 (Optional) */ + PanelName string `json:"panelName"` + + /* 资源id列表,与标签服务互斥,且资源id列表与标签服务列表至少传一个 (Optional) */ + PanelResources []PanelResource `json:"panelResources"` + + /* 标签服务列表,与资源id列表互斥,且资源id列表与标签服务列表至少传一个 (Optional) */ + PanelTagResources []PanelTagResource `json:"panelTagResources"` + + /* topN的数量,图表类型为3(topN表格)时必填 (Optional) */ + PanelTopNum int64 `json:"panelTopNum"` + + /* 该panel的类型,1-折线图(明细);2-折线图(汇总);3-topN表格 */ + PanelType int64 `json:"panelType"` + + /* 该panel所属产品 */ + Product string `json:"product"` + + /* 依据tag过滤(维度) (Optional) */ + Tags []TagFilter `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateRequestV2.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateRequestV2.go new file mode 100644 index 0000000000..53e1dcd59d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateRequestV2.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateTemplateRequestV2 struct { + + /* 幂等性校验参数,最长36位 */ + ClientToken string `json:"clientToken"` + + /* 模板描述 (Optional) */ + Description string `json:"description"` + + /* 模板资源类型下的维度,如果该资源分维度,则必须传入此参数 (Optional) */ + Dimension string `json:"dimension"` + + /* 模板的资源类型 */ + Product string `json:"product"` + + /* 模板名称,长度1-32个字符,只允许中英文、数字、''-''和"_" */ + TemplateName string `json:"templateName"` + + /* 模板内包含的规则 */ + TemplateRules []BasicRule `json:"templateRules"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateResponseEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateResponseEnd.go new file mode 100644 index 0000000000..dae3100166 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateResponseEnd.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateTemplateResponseEnd struct { + + /* 是否创建成功 (Optional) */ + Success bool `json:"success"` + + /* 创建成功的模板id (Optional) */ + TemplateId int64 `json:"templateId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateSpec.go new file mode 100644 index 0000000000..289cf69ffa --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateTemplateSpec.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateTemplateSpec struct { + + /* 幂等性校验参数,最长36位 */ + ClientToken string `json:"clientToken"` + + /* 模板描述 (Optional) */ + Description string `json:"description"` + + /* 规则的资源类型 */ + RuleServiceCode string `json:"ruleServiceCode"` + + /* 模板的资源类型 */ + ServiceCode string `json:"serviceCode"` + + /* 模板名称,长度1-32个字符,只允许中英文、数字、''-''和"_" */ + TemplateName string `json:"templateName"` + + /* 模板内包含的规则 */ + TemplateRules []BaseRuleT `json:"templateRules"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateWidgetSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateWidgetSpec.go new file mode 100644 index 0000000000..77dc6418a5 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CreateWidgetSpec.go @@ -0,0 +1,57 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CreateWidgetSpec struct { + + /* (Optional) */ + Aggregated string `json:"aggregated"` + + /* (Optional) */ + CreatedTime int64 `json:"createdTime"` + + /* (Optional) */ + DashboardId string `json:"dashboardId"` + + /* (Optional) */ + Metrics []WidgetMetric `json:"metrics"` + + /* (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + Position WidgetPosition `json:"position"` + + /* (Optional) */ + Resources WidgetResources `json:"resources"` + + /* (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* (Optional) */ + TopN int `json:"topN"` + + /* (Optional) */ + Type string `json:"type"` + + /* (Optional) */ + UpdatedTime int64 `json:"updatedTime"` + + /* (Optional) */ + WidgetId string `json:"widgetId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomMetricStatus.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomMetricStatus.go new file mode 100644 index 0000000000..2ffaca99dd --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomMetricStatus.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CustomMetricStatus struct { + + /* 影响资源个数 (Optional) */ + Count int64 `json:"count"` + + /* 命名空间数量 (Optional) */ + NamespaceCount int64 `json:"namespaceCount"` + + /* 地域 (Optional) */ + Region string `json:"region"` + + /* 服务状态 (Optional) */ + Status string `json:"status"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomQuery.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomQuery.go new file mode 100644 index 0000000000..d0b563f35b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomQuery.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CustomQuery struct { + + /* 快捷检索条件名称,长度为32个字符,只允许中文、数字、大小写字母、英文下划线“_”及中划线“-”,且不允许重名 (Optional) */ + Name string `json:"name"` + + /* 命名空间 (Optional) */ + Namespace string `json:"namespace"` + + /* 命名空间名字 (Optional) */ + NamespaceName string `json:"namespaceName"` + + /* (Optional) */ + Query DescribeQueryOption `json:"query"` + + /* 快捷检索条件Uuid (Optional) */ + QueryUuid string `json:"queryUuid"` + + /* 地域 (Optional) */ + Region string `json:"region"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomReportDetailsInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomReportDetailsInfo.go new file mode 100644 index 0000000000..29cfb1239c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomReportDetailsInfo.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CustomReportDetailsInfo struct { + + /* 该命名空间下metric的数量 (Optional) */ + MetricCount int64 `json:"metricCount"` + + /* 命名空间名称 (Optional) */ + NamespaceName string `json:"namespaceName"` + + /* 命名空间 (Optional) */ + NamespaceUid string `json:"namespaceUid"` + + /* 该命名空间下监控对象的数量 (Optional) */ + ObjectCount int64 `json:"objectCount"` + + /* 该namespace的上报详情 (Optional) */ + ReportInfo []NsReportInfo `json:"reportInfo"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomRuleDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomRuleDetail.go new file mode 100644 index 0000000000..2ad6cd8077 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/CustomRuleDetail.go @@ -0,0 +1,48 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type CustomRuleDetail struct { + + /* 指标的计算单位,比如bit/s、%、k等 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 统计方法,必须与定义的metric一致,可选值列表:avg,sum,max,min */ + Calculation string `json:"calculation"` + + /* 监控项metric */ + Metric string `json:"metric"` + + /* 监控项名称 (Optional) */ + MetricName string `json:"metricName"` + + /* (Optional) */ + NoticeLevel NoticeLevel `json:"noticeLevel"` + + /* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) */ + Operation string `json:"operation"` + + /* 查询指标的周期,单位为分钟,目前支持的取值:1,2,5,10,15,30,60 */ + Period int64 `json:"period"` + + /* 报警阈值,目前只开放数值类型功能 */ + Threshold float64 `json:"threshold"` + + /* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5,10,15,30,60 */ + Times int64 `json:"times"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dashboard.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dashboard.go new file mode 100644 index 0000000000..4513cd20f5 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dashboard.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Dashboard struct { + + /* (Optional) */ + CreatedTime int64 `json:"createdTime"` + + /* (Optional) */ + DashboardId string `json:"dashboardId"` + + /* (Optional) */ + Focused string `json:"focused"` + + /* (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + Pin string `json:"pin"` + + /* (Optional) */ + UpdatedTime int64 `json:"updatedTime"` + + /* (Optional) */ + WidgetCount int64 `json:"widgetCount"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DashboardInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DashboardInfo.go new file mode 100644 index 0000000000..293d093e8a --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DashboardInfo.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DashboardInfo struct { + + /* (Optional) */ + Description string `json:"description"` + + /* (Optional) */ + Id int64 `json:"id"` + + /* (Optional) */ + Tags []string `json:"tags"` + + /* (Optional) */ + Timezone string `json:"timezone"` + + /* (Optional) */ + Title string `json:"title"` + + /* (Optional) */ + Uid string `json:"uid"` + + /* (Optional) */ + Version int64 `json:"version"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataInfoB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataInfoB.go new file mode 100644 index 0000000000..5ddf25cc74 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataInfoB.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DataInfoB struct { + + /* (Optional) */ + Key string `json:"key"` + + /* (Optional) */ + Value string `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataMappingB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataMappingB.go new file mode 100644 index 0000000000..256a77b04c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataMappingB.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DataMappingB struct { + + /* (Optional) */ + InstanceId string `json:"instanceId"` + + /* (Optional) */ + InstanceName string `json:"instanceName"` + + /* (Optional) */ + InstanceStatus string `json:"instanceStatus"` + + /* (Optional) */ + ResourceId string `json:"resourceId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPoint.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPoint.go new file mode 100644 index 0000000000..499097f4c2 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPoint.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DataPoint struct { + + /* 时间戳 (Optional) */ + Timestamp int64 `json:"timestamp"` + + /* 值 (Optional) */ + Value interface{} `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPointByTag.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPointByTag.go new file mode 100644 index 0000000000..07baa53fbd --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPointByTag.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DataPointByTag struct { + + /* (Optional) */ + Timestamp int64 `json:"timestamp"` + + /* (Optional) */ + Value interface{} `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPointX.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPointX.go new file mode 100644 index 0000000000..9ac88678cf --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataPointX.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DataPointX struct { + + /* 监控指标名称,长度不超过255字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ], 其它会返回err */ + Metric string `json:"metric"` + + /* 数据维度,数据类型为map类型,最多五个标签,尽量不传或少传。总长度不大于255字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ], 其它会返回err (Optional) */ + Tags *interface{} `json:"tags"` + + /* 秒级时间戳,早于当前时间30天的不能写入;建议的上报时间戳:上报时间间隔的整数倍,如上报间隔为5s,则建议上报的时间戳为 timestamp = current timestamp - (current timestamp % time interval) = 1487647187 - (1487647187 % 5) = 1487647187 -2 = 1487647185 */ + Timestamp int64 `json:"timestamp"` + + /* 监控的值。number or string。最大值为long.MAX_VALUE=9223372036854775807=263-1。累计类型的指标,累计到最大值后需要翻转为0,重新开始计数。翻转后不影响速率的计算。 */ + Value interface{} `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataTag.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataTag.go new file mode 100644 index 0000000000..81a4b9a653 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DataTag.go @@ -0,0 +1,31 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DataTag struct { + + /* 1 进数据点打tag,如果数据点存在该tag,予以覆盖,2进行数据点打tag,如果数据存在该tag,跳过不予处理,3 对于数据点中存在tag进行改名称, +例如:{"tagKey":"resourceId","tagValue":"nodeId","operation":3},原数据点名称resourceId:"ia-adx01"改名成nodeId:"ia-adx01" (Optional) */ + Operation int64 `json:"operation"` + + /* (Optional) */ + TagKey string `json:"tagKey"` + + /* (Optional) */ + TagValue string `json:"tagValue"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Datasource.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Datasource.go new file mode 100644 index 0000000000..21e7a1140e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Datasource.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Datasource struct { + + /* customHttpHeader (Optional) */ + CustomHttpHeader interface{} `json:"customHttpHeader"` + + /* 数据源名称 */ + Name string `json:"name"` + + /* (Optional) */ + OpentsdbExtend OpentsdbExtend `json:"opentsdbExtend"` + + /* jdcloud-monitor-opentsdb 后续可能会有其它。如jdcloud-monitor-prometheus等 */ + PluginType string `json:"pluginType"` + + /* 数据源地址 */ + Url string `json:"url"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DatasourceDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DatasourceDetail.go new file mode 100644 index 0000000000..4f2fd8b7d2 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DatasourceDetail.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DatasourceDetail struct { + + /* 数据源id (Optional) */ + DatasourceId int `json:"datasourceId"` + + /* 是否是默认数据源 (Optional) */ + IsDefault bool `json:"isDefault"` + + /* 数据源名称 (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + OpentsdbExtend OpentsdbExtend `json:"opentsdbExtend"` + + /* orgId (Optional) */ + OrgId int `json:"orgId"` + + /* 插件类型 (Optional) */ + PluginType string `json:"pluginType"` + + /* 数据源地址 (Optional) */ + Url string `json:"url"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DatasourceToken.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DatasourceToken.go new file mode 100644 index 0000000000..2d7fa30a7e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DatasourceToken.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DatasourceToken struct { + + /* ark节点名称 */ + ArkNode string `json:"arkNode"` + + /* (Optional) */ + CloudMonitorOption CloudMonitorOption `json:"cloudMonitorOption"` + + /* cloudmonitor\hawkeye\deeplog */ + DatasourceType string `json:"datasourceType"` + + /* orgId (Optional) */ + OrgId int `json:"orgId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DateAlertCount.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DateAlertCount.go new file mode 100644 index 0000000000..549fc47ec7 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DateAlertCount.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DateAlertCount struct { + + /* 报警个数 (Optional) */ + AlertCount int64 `json:"alertCount"` + + /* (Optional) */ + Date string `json:"date"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeepLogOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeepLogOption.go new file mode 100644 index 0000000000..b87516c6b2 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeepLogOption.go @@ -0,0 +1,21 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DeepLogOption struct { +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteAlarmsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteAlarmsSpec.go new file mode 100644 index 0000000000..345d0e53f3 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteAlarmsSpec.go @@ -0,0 +1,25 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DeleteAlarmsSpec struct { + + /* filter name为'ids'为要删除的告警id +in: query */ + Filters []Filter `json:"filters"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteDashboardsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteDashboardsSpec.go new file mode 100644 index 0000000000..1540aa2aa2 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteDashboardsSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DeleteDashboardsSpec struct { + + /* filters, name为dashboardUids, values为dashboardUid列表,精确匹配,支持多个 */ + Filters []Filter `json:"filters"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteDataBackSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteDataBackSpec.go new file mode 100644 index 0000000000..0f072d919f --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteDataBackSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DeleteDataBackSpec struct { + + /* 要删除数据的key (Optional) */ + Key []string `json:"key"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteGrafanaDashboardsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteGrafanaDashboardsSpec.go new file mode 100644 index 0000000000..5011051983 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteGrafanaDashboardsSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DeleteGrafanaDashboardsSpec struct { + + /* filters, name为dashboardUids, values为dashboardUid列表,精确匹配,支持多个 (Optional) */ + Filters []Filter `json:"filters"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteGrafanaTemplatesSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteGrafanaTemplatesSpec.go new file mode 100644 index 0000000000..92fad7119a --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteGrafanaTemplatesSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DeleteGrafanaTemplatesSpec struct { + + /* filters, name为templateUids, values为templateUids列表,精确匹配,支持多个 */ + Filters []Filter `json:"filters"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteTemplateResponseEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteTemplateResponseEnd.go new file mode 100644 index 0000000000..4f939a5c76 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteTemplateResponseEnd.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DeleteTemplateResponseEnd struct { + + /* 是否删除成功 (Optional) */ + Success bool `json:"success"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteTemplateSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteTemplateSpec.go new file mode 100644 index 0000000000..ec62bdeefc --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DeleteTemplateSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DeleteTemplateSpec struct { + + /* filters, name为templateUids, values为templateUids列表,精确匹配,支持多个 */ + Filters []Filter `json:"filters"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeAlarmHistoryDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeAlarmHistoryDetail.go new file mode 100644 index 0000000000..541fc3164b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeAlarmHistoryDetail.go @@ -0,0 +1,60 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeAlarmHistoryDetail struct { + + /* 报警规则ID (Optional) */ + AlarmId string `json:"alarmId"` + + /* 资源维度 (Optional) */ + Dimension interface{} `json:"dimension"` + + /* 告警持续次数 (Optional) */ + DurationTimes int64 `json:"durationTimes"` + + /* 命名空间 (Optional) */ + Namespace string `json:"namespace"` + + /* 命名空间名称 (Optional) */ + NamespaceName string `json:"namespaceName"` + + /* 告警持续时间,单位分钟 (Optional) */ + NoticeDurationTime int64 `json:"noticeDurationTime"` + + /* 触发的告警级别。从低到高分别为‘common’, ‘critical’, ‘fatal’ (Optional) */ + NoticeLevelTriggered string `json:"noticeLevelTriggered"` + + /* 告警时间 (Optional) */ + NoticeTime string `json:"noticeTime"` + + /* 告警通知人 (Optional) */ + Receivers []NoticeReceiver `json:"receivers"` + + /* 规则绑定资源所在地域 (Optional) */ + Region string `json:"region"` + + /* (Optional) */ + Rule CustomRuleDetail `json:"rule"` + + /* 告警类型 1-告警恢复 2-告警 4-数据不足 (Optional) */ + Status int64 `json:"status"` + + /* 告警值 (Optional) */ + Value float64 `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeAlarmHistoryResponseEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeAlarmHistoryResponseEnd.go new file mode 100644 index 0000000000..1cba409c78 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeAlarmHistoryResponseEnd.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeAlarmHistoryResponseEnd struct { + + /* 告警历史列表 (Optional) */ + AlarmHistoryList []DescribedAlarmHistory `json:"alarmHistoryList"` + + /* 总数 (Optional) */ + Total int64 `json:"total"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCMMetricsDataSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCMMetricsDataSpec.go new file mode 100644 index 0000000000..a297d4fc8f --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCMMetricsDataSpec.go @@ -0,0 +1,40 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeCMMetricsDataSpec struct { + + /* (Optional) */ + AggrType string `json:"aggrType"` + + /* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) +in: query (Optional) */ + EndTime string `json:"endTime"` + + /* metric id列表 +in: query (Optional) */ + MetricUID []string `json:"metricUID"` + + /* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(早于30d时,将被重置为30d)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) +in: query (Optional) */ + StartTime string `json:"startTime"` + + /* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval 与 endTime 至少填一项 +in: query (Optional) */ + TimeInterval string `json:"timeInterval"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCustomAlarmDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCustomAlarmDetail.go new file mode 100644 index 0000000000..2acbdd078f --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCustomAlarmDetail.go @@ -0,0 +1,61 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeCustomAlarmDetail struct { + + /* 聚合方式,多个维度聚合成1个维度时,多维度值之间的聚合方式。可选值:sum、avg、min、max (Optional) */ + AggrType string `json:"aggrType"` + + /* 报警规则ID (Optional) */ + AlarmId string `json:"alarmId"` + + /* 规则状态,当一个规则下同时存在报警、数据不足、正常的资源时,规则状态按 报警>数据不足>正常的优先级展示 +监控项状态:-1 未启用 1正常,2告警,4数据不足 (Optional) */ + AlarmStatus int64 `json:"alarmStatus"` + + /* 创建时间 (Optional) */ + CreateTime string `json:"createTime"` + + /* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足),至少指定一个 (Optional) */ + Dimensions []DimensionParamDetail `json:"dimensions"` + + /* 拼接好的资源维度信息 (Optional) */ + DimensionsText string `json:"dimensionsText"` + + /* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 命名空间 (Optional) */ + Namespace string `json:"namespace"` + + /* 命名空间名称 (Optional) */ + NamespaceName string `json:"namespaceName"` + + /* 规则绑定资源所在地域 (Optional) */ + Region string `json:"region"` + + /* 规则名称 (Optional) */ + RuleName string `json:"ruleName"` + + /* 规则的触发条件设置选项 (Optional) */ + RuleOption []CustomRuleDetail `json:"ruleOption"` + + /* 规则版本 v1 v2 (Optional) */ + RuleVersion string `json:"ruleVersion"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCustomMetricDataSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCustomMetricDataSpec.go new file mode 100644 index 0000000000..13e7e89026 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeCustomMetricDataSpec.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeCustomMetricDataSpec struct { + + /* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出) (Optional) */ + EndTime string `json:"endTime"` + + /* */ + Query QueryOption `json:"query"` + + /* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800 (Optional) */ + StartTime string `json:"startTime"` + + /* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h (Optional) */ + TimeInterval string `json:"timeInterval"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDashboardsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDashboardsSpec.go new file mode 100644 index 0000000000..196797ace0 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDashboardsSpec.go @@ -0,0 +1,32 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeDashboardsSpec struct { + + /* folderIds-文件夹Id,精确匹配,支持单个; (Optional) */ + Filters []Filter `json:"filters"` + + /* 当前所在页,默认为1 +in: query (Optional) */ + PageNumber int64 `json:"pageNumber"` + + /* 页面大小,默认为20;取值范围[1, 100] +in: query (Optional) */ + PageSize int64 `json:"pageSize"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDatasourceEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDatasourceEnd.go new file mode 100644 index 0000000000..8989595c1f --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDatasourceEnd.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeDatasourceEnd struct { + + /* 数据源id (Optional) */ + DatasourceId int `json:"datasourceId"` + + /* 是否是默认数据源 (Optional) */ + IsDefault bool `json:"isDefault"` + + /* 其它属性 (Optional) */ + JsonData interface{} `json:"jsonData"` + + /* 数据源名称 (Optional) */ + Name string `json:"name"` + + /* orgId (Optional) */ + OrgId int `json:"orgId"` + + /* 插件类型 (Optional) */ + PluginType string `json:"pluginType"` + + /* 数据源地址 (Optional) */ + Url string `json:"url"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDatasourcesEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDatasourcesEnd.go new file mode 100644 index 0000000000..ff41845899 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeDatasourcesEnd.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeDatasourcesEnd struct { + + /* 数据源列表 (Optional) */ + Datasources []DescribeDatasourceEnd `json:"datasources"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGrafanaDashboardsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGrafanaDashboardsSpec.go new file mode 100644 index 0000000000..75b2b827ed --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGrafanaDashboardsSpec.go @@ -0,0 +1,32 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeGrafanaDashboardsSpec struct { + + /* folderIds-文件夹Id,精确匹配,支持单个; (Optional) */ + Filters []Filter `json:"filters"` + + /* 当前所在页,默认为1 +in: query (Optional) */ + PageNumber int64 `json:"pageNumber"` + + /* 页面大小,默认为20;取值范围[1, 100] +in: query (Optional) */ + PageSize int64 `json:"pageSize"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGrafanaTemplatesSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGrafanaTemplatesSpec.go new file mode 100644 index 0000000000..c7438f15dc --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGrafanaTemplatesSpec.go @@ -0,0 +1,37 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeGrafanaTemplatesSpec struct { + + /* 模板uid列表或数据源类型 +templateUids-模板uids,精确匹配,支持多个; +datasourceType-数据源类型,精确匹配,支持多个(云监控:cloudmonitor,hawkeye:hawkeye,deeplog:deeplog) (Optional) */ + Filters []Filter `json:"filters"` + + /* 当前所在页,默认为1 +in: query (Optional) */ + PageNumber int64 `json:"pageNumber"` + + /* 页面大小,默认为20;取值范围[1, 100] +in: query (Optional) */ + PageSize int64 `json:"pageSize"` + + /* 模板类型,0表示系统、1表示自定义,默认为0 (Optional) */ + TemplateType int64 `json:"templateType"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGroupAlarm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGroupAlarm.go new file mode 100644 index 0000000000..56093df3b0 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeGroupAlarm.go @@ -0,0 +1,67 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeGroupAlarm struct { + + /* 报警规则ID (Optional) */ + AlarmId string `json:"alarmId"` + + /* 规则状态,当一个规则下同时存在报警、数据不足、正常的资源时,规则状态按 报警>数据不足>正常的优先级展示 +监控项状态:-1 未启用 1正常,2告警,4数据不足 (Optional) */ + AlarmStatus int64 `json:"alarmStatus"` + + /* 规则的状态列表,可能同时存在多个:1正常,2告警,4数据不足 (Optional) */ + AlarmStatusList []int64 `json:"alarmStatusList"` + + /* 创建时间 (Optional) */ + CreateTime string `json:"createTime"` + + /* 资源维度 (Optional) */ + Dimension string `json:"dimension"` + + /* 资源维度名称 (Optional) */ + DimensionName string `json:"dimensionName"` + + /* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 资源类型 */ + Product string `json:"product"` + + /* 资源类型名称 (Optional) */ + ProductName string `json:"productName"` + + /* */ + ResourceOption ResourceOption `json:"resourceOption"` + + /* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" */ + RuleName string `json:"ruleName"` + + /* */ + RuleOption RuleOptionDetail `json:"ruleOption"` + + /* 规则类型, 默认为resourceMonitor (Optional) */ + RuleType string `json:"ruleType"` + + /* 规则版本 v1 v2 (Optional) */ + RuleVersion string `json:"ruleVersion"` + + /* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足) (Optional) */ + Tags interface{} `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricDataSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricDataSpec.go new file mode 100644 index 0000000000..b2a723265b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricDataSpec.go @@ -0,0 +1,60 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeMetricDataSpec struct { + + /* 聚合方式,可选值参考:sum、avg、min、max (Optional) */ + AggrType string `json:"aggrType"` + + /* 资源的维度。当serviceCode下存在多个维度时,查询数据必须指定相应的维度 (Optional) */ + Dimension string `json:"dimension"` + + /* 采样方式,可选值参考:sum、avg、last、min、max (Optional) */ + DownSampleType string `json:"downSampleType"` + + /* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) +in: query (Optional) */ + EndTime string `json:"endTime"` + + /* 是否对查询的tags分组 +in: query (Optional) */ + GroupBy bool `json:"groupBy"` + + /* 是否求速率 +in: query (Optional) */ + Rate bool `json:"rate"` + + /* 资源的uuid */ + ResourceId string `json:"resourceId"` + + /* 资源的类型,取值vm, lb, ip, database 等,describeServices:查询己接入云监控的产品线列表,当产品线下有多个分组时,查询分组对应的监控项,serviceCode请传对应分组的groupCode字段值 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) +in: query (Optional) */ + StartTime string `json:"startTime"` + + /* 监控指标数据的维度信息,根据tags来筛选指标数据不同的维度 +in: query (Optional) */ + Tags []TagFilter `json:"tags"` + + /* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h +in: query (Optional) */ + TimeInterval string `json:"timeInterval"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricsByNameSpaceSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricsByNameSpaceSpec.go new file mode 100644 index 0000000000..587ecc8d96 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricsByNameSpaceSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeMetricsByNameSpaceSpec struct { + + /* 要搜索的metric前缀 (Optional) */ + Metric string `json:"metric"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricsForCreateAlarmEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricsForCreateAlarmEnd.go new file mode 100644 index 0000000000..4339ae31a7 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMetricsForCreateAlarmEnd.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeMetricsForCreateAlarmEnd struct { + + /* (Optional) */ + ServiceCodeList []ServiceCodeMetrics `json:"serviceCodeList"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMonitorNamespacesSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMonitorNamespacesSpec.go new file mode 100644 index 0000000000..0efddde9fc --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeMonitorNamespacesSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeMonitorNamespacesSpec struct { + + /* 要搜索的namespace,支持前缀匹配 (Optional) */ + Namespace string `json:"namespace"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeOrgsEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeOrgsEnd.go new file mode 100644 index 0000000000..e3f96ecb15 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeOrgsEnd.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeOrgsEnd struct { + + /* org列表 (Optional) */ + Orgs []Org `json:"orgs"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeQueryOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeQueryOption.go new file mode 100644 index 0000000000..3160a2864a --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeQueryOption.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeQueryOption struct { + + /* 聚合方式,默认等于downSampleType(若downSampleType为last,AggrType取max)或avg,可选值参考:sum、avg、min、max (Optional) */ + AggrType string `json:"aggrType"` + + /* 监控指标数据的维度信息,根据tags来指定查询的监控数据维度,至少指定一个查询维度 (Optional) */ + Dimensions []DimensionParamDetail `json:"dimensions"` + + /* 采样方式,默认等于aggrType或avg,可选值参考:sum、avg、last、min、max (Optional) */ + DownSampleType string `json:"downSampleType"` + + /* metric (Optional) */ + Metric string `json:"metric"` + + /* metric名字 (Optional) */ + MetricName string `json:"metricName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeRawMetricDataSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeRawMetricDataSpec.go new file mode 100644 index 0000000000..4df5b7623d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeRawMetricDataSpec.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeRawMetricDataSpec struct { + + /* 多维度聚合方式,即多条时序数据聚合为一条时序数据的方式,支持zimsum,avg,max,min,参考opentsdb协议http://opentsdb.net/docs/build/html/user_guide/query/aggregators.html */ + Aggregator string `json:"aggregator"` + + /* 采样方式即时间维度的聚合, 比如5m-sum-zero。若要将时间范围内的数据聚合为一个值,用0all-sum。注意:采样周期不得低于5分钟。参考opentsdb协议http://opentsdb.net/docs/build/html/user_guide/query/downsampling.html */ + Downsample string `json:"downsample"` + + /* 查询结束时间, 秒级时间戳, 查询时间段不得超过31天 */ + End int64 `json:"end"` + + /* 监控指标数据的维度信息,根据filters来筛选指标数据不同的维度,至少需要包含一个 */ + Filters []TsdbFilter `json:"filters"` + + /* metric */ + Metric string `json:"metric"` + + /* 查询开始时间, 秒级时间戳, 查询时间段不得超过31天, 最早开始时间不得早于45天前 */ + Start int64 `json:"start"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeResourceMonitorStatusOut.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeResourceMonitorStatusOut.go new file mode 100644 index 0000000000..efa3f2628c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeResourceMonitorStatusOut.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeResourceMonitorStatusOut struct { + + /* 资源监控服务状态 (Optional) */ + ResourceMonitorStatus []ResourceMonitorStatus `json:"resourceMonitorStatus"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTagKeysByMetricSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTagKeysByMetricSpec.go new file mode 100644 index 0000000000..86cdba3152 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTagKeysByMetricSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeTagKeysByMetricSpec struct { + + /* 要搜索的dimensionKey前缀 (Optional) */ + DimensionKey string `json:"dimensionKey"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTagValuesByTagKeySpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTagValuesByTagKeySpec.go new file mode 100644 index 0000000000..acf1f4aa82 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTagValuesByTagKeySpec.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeTagValuesByTagKeySpec struct { + + /* 要搜索的dimensionValue前缀 (Optional) */ + DimensionValue string `json:"dimensionValue"` + + /* 监控指标数据的维度信息,根据tags来筛选指标数据不同的维度 (Optional) */ + Tags []TagFilter `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplateByIDSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplateByIDSpec.go new file mode 100644 index 0000000000..cd449f6ade --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplateByIDSpec.go @@ -0,0 +1,25 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeTemplateByIDSpec struct { + + /* 模板类型,区分默认模板和用户自定义模板:1表示默认模板,2表示用户自定义模板 +in: query */ + TemplateType int64 `json:"templateType"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplateSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplateSpec.go new file mode 100644 index 0000000000..ee3e4beeb1 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplateSpec.go @@ -0,0 +1,37 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeTemplateSpec struct { + + /* 模板uid列表或数据源类型 +templateUids-模板uids,精确匹配,支持多个; +datasourceType-数据源类型,精确匹配,支持多个(云监控:cloudmonitor,hawkeye:hawkeye,deeplog:deeplog) (Optional) */ + Filters []Filter `json:"filters"` + + /* 当前所在页,默认为1 +in: query (Optional) */ + PageNumber int64 `json:"pageNumber"` + + /* 页面大小,默认为20;取值范围[1, 100] +in: query (Optional) */ + PageSize int64 `json:"pageSize"` + + /* 模板类型,0表示系统、1表示自定义,默认为0 (Optional) */ + TemplateType int64 `json:"templateType"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplatesByTemplateIDResponseEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplatesByTemplateIDResponseEnd.go new file mode 100644 index 0000000000..aeefd958a6 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplatesByTemplateIDResponseEnd.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeTemplatesByTemplateIDResponseEnd struct { + + /* (Optional) */ + Template TemplateVo `json:"template"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplatesResponseEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplatesResponseEnd.go new file mode 100644 index 0000000000..2ebecc11f6 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTemplatesResponseEnd.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeTemplatesResponseEnd struct { + + /* 总页数 (Optional) */ + NumberPages int64 `json:"numberPages"` + + /* 总记录数 (Optional) */ + NumberRecords int64 `json:"numberRecords"` + + /* 当前页码 (Optional) */ + PageNumber int64 `json:"pageNumber"` + + /* 分页大小 (Optional) */ + PageSize int64 `json:"pageSize"` + + /* 当查询用户自定义模板时,表示该用户目前已有的自定义模板总数量;当查询默认模板时,表示该用户目前已有的默认模板总数量 (Optional) */ + TemplateCount int64 `json:"templateCount"` + + /* 模板列表 (Optional) */ + TemplateList []TemplateVo `json:"templateList"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTokenEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTokenEnd.go new file mode 100644 index 0000000000..3b547eb030 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTokenEnd.go @@ -0,0 +1,43 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeTokenEnd struct { + + /* 数据源token (Optional) */ + AccessToken string `json:"accessToken"` + + /* ark节点 (Optional) */ + Ark string `json:"ark"` + + /* (Optional) */ + CloudMonitorOption CloudMonitorOption `json:"cloudMonitorOption"` + + /* HawkeyeOption *model.HawkeyeOption `json:"hawkeyeOption,omitempty"` +DeepLogOption *model.DeepLogOption `json:"deepLogOption,omitempty"` (Optional) */ + CreateTime string `json:"createTime"` + + /* 数据源类型 (Optional) */ + DatasourceType string `json:"datasourceType"` + + /* (Optional) */ + OrgId int64 `json:"orgId"` + + /* (Optional) */ + UpdateTime string `json:"updateTime"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTokensEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTokensEnd.go new file mode 100644 index 0000000000..4299059b3d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTokensEnd.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeTokensEnd struct { + + /* 总页数 (Optional) */ + NumberPages int64 `json:"numberPages"` + + /* 总记录数 (Optional) */ + NumberRecords int64 `json:"numberRecords"` + + /* 当前页码 (Optional) */ + PageNumber int64 `json:"pageNumber"` + + /* 分页大小 (Optional) */ + PageSize int64 `json:"pageSize"` + + /* (Optional) */ + Tokens []DescribeTokenEnd `json:"tokens"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTopNSlowSqlSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTopNSlowSqlSpec.go new file mode 100644 index 0000000000..e44cc1858b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeTopNSlowSqlSpec.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeTopNSlowSqlSpec struct { + + /* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) +in: query (Optional) */ + EndTime string `json:"endTime"` + + /* 资源的uuid */ + ResourceId string `json:"resourceId"` + + /* 资源的类型,sqlserver */ + ServiceCode string `json:"serviceCode"` + + /* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(早于30d时,将被重置为30d)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) +in: query (Optional) */ + StartTime string `json:"startTime"` + + /* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval 与 endTime 至少填一项 +in: query (Optional) */ + TimeInterval string `json:"timeInterval"` + + /* topN数量 */ + TopN int64 `json:"topN"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeUsersEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeUsersEnd.go new file mode 100644 index 0000000000..c0c5f8d434 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribeUsersEnd.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribeUsersEnd struct { + + /* 用户列表 (Optional) */ + Users []OrgUser `json:"users"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedAlarm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedAlarm.go new file mode 100644 index 0000000000..9fe266af0c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedAlarm.go @@ -0,0 +1,93 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribedAlarm struct { + + /* 计算单位 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */ + Calculation string `json:"calculation"` + + /* 创建时间 (Optional) */ + CreateTime string `json:"createTime"` + + /* 降采样方法 (Optional) */ + DownSample string `json:"downSample"` + + /* 是否启用 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 报警规则ID (Optional) */ + Id string `json:"id"` + + /* 监控项 (Optional) */ + Metric string `json:"metric"` + + /* 监控项名称 (Optional) */ + MetricName string `json:"metricName"` + + /* (Optional) */ + NoticeLevel NoticeLevel `json:"noticeLevel"` + + /* 告警周期 (Optional) */ + NoticePeriod int64 `json:"noticePeriod"` + + /* gt, gte, lt, lte, eq, ne (Optional) */ + Operation string `json:"operation"` + + /* 统计周期(单位:分钟) (Optional) */ + Period int64 `json:"period"` + + /* 地域信息 (Optional) */ + Region string `json:"region"` + + /* 资源id (Optional) */ + ResourceId string `json:"resourceId"` + + /* 规则名称 (Optional) */ + RuleName string `json:"ruleName"` + + /* 产品线编码 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 监控项状态:1正常,2告警,4数据不足 (Optional) */ + Status int64 `json:"status"` + + /* 标签 (Optional) */ + Tags interface{} `json:"tags"` + + /* 告警阈值 (Optional) */ + Threshold float64 `json:"threshold"` + + /* 告警次数 (Optional) */ + Times int64 `json:"times"` + + /* 回调content (Optional) */ + WebHookContent string `json:"webHookContent"` + + /* webHook协议 (Optional) */ + WebHookProtocol string `json:"webHookProtocol"` + + /* 回调secret,用户请求签名,防伪造 (Optional) */ + WebHookSecret string `json:"webHookSecret"` + + /* 回调url (Optional) */ + WebHookUrl string `json:"webHookUrl"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedAlarmHistory.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedAlarmHistory.go new file mode 100644 index 0000000000..e203e2c789 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedAlarmHistory.go @@ -0,0 +1,81 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribedAlarmHistory struct { + + /* 报警规则ID (Optional) */ + AlarmId string `json:"alarmId"` + + /* 资源维度 (Optional) */ + Dimension string `json:"dimension"` + + /* 资源维度名称 (Optional) */ + DimensionName string `json:"dimensionName"` + + /* 告警持续次数 (Optional) */ + DurationTimes int64 `json:"durationTimes"` + + /* 是否是一键告警 (1-一键告警 0-非一键告警) (Optional) */ + IsOneClickAlarm int64 `json:"isOneClickAlarm"` + + /* 告警持续时间,单位分钟 (Optional) */ + NoticeDurationTime int64 `json:"noticeDurationTime"` + + /* 用于前端显示的‘触发告警级别’。从低到高分别为‘普通’, ‘紧急’, ‘严重’ (Optional) */ + NoticeLevel string `json:"noticeLevel"` + + /* 触发的告警级别。从低到高分别为‘common’, ‘critical’, ‘fatal’ (Optional) */ + NoticeLevelTriggered string `json:"noticeLevelTriggered"` + + /* 告警时间 (Optional) */ + NoticeTime string `json:"noticeTime"` + + /* 告警时间对应的时间戳 (Optional) */ + NoticeTimeUnix int64 `json:"noticeTimeUnix"` + + /* 资源类型 (Optional) */ + Product string `json:"product"` + + /* 资源类型名称 (Optional) */ + ProductName string `json:"productName"` + + /* 告警通知人 (Optional) */ + Receivers []NoticeReceiver `json:"receivers"` + + /* 资源Id对应的region (Optional) */ + Region string `json:"region"` + + /* 资源Id (Optional) */ + ResourceId string `json:"resourceId"` + + /* (Optional) */ + Rule BasicRuleDetail `json:"rule"` + + /* 规则类型 (Optional) */ + RuleType string `json:"ruleType"` + + /* 告警类型 1-告警恢复 2-告警 4-数据不足 (Optional) */ + Status int64 `json:"status"` + + /* 资源tags (Optional) */ + Tags interface{} `json:"tags"` + + /* 告警值 (Optional) */ + Value float64 `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedNoticeContacts.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedNoticeContacts.go new file mode 100644 index 0000000000..3bdf611c9a --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DescribedNoticeContacts.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DescribedNoticeContacts struct { + + /* 联系人ID (Optional) */ + ReferenceId int64 `json:"referenceId"` + + /* 联系人类型。 0 - 联系人分组id, 1 - 联系人id (Optional) */ + ReferenceType int64 `json:"referenceType"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DetailAPIB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DetailAPIB.go new file mode 100644 index 0000000000..13cee220ab --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DetailAPIB.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DetailAPIB struct { + + /* (Optional) */ + Api string `json:"api"` + + /* (Optional) */ + Query interface{} `json:"query"` + + /* (Optional) */ + Root string `json:"root"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dimension.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dimension.go new file mode 100644 index 0000000000..612ed41064 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dimension.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Dimension struct { + + /* 维度 (Optional) */ + Dimension string `json:"dimension"` + + /* 维度名称 (Optional) */ + DimensionName string `json:"dimensionName"` + + /* 是否是子结点 (Optional) */ + IsNode bool `json:"isNode"` + + /* 对应标签服务的serviceCode (Optional) */ + TagServiceCode string `json:"tagServiceCode"` + + /* tags (Optional) */ + Tags interface{} `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DimensionParamDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DimensionParamDetail.go new file mode 100644 index 0000000000..dd18cb3634 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DimensionParamDetail.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DimensionParamDetail struct { + + /* 是否分组查询 (Optional) */ + GroupBy bool `json:"groupBy"` + + /* 维度key (Optional) */ + Key string `json:"key"` + + /* 维度key名字 (Optional) */ + KeyName string `json:"keyName"` + + /* 维度值 (Optional) */ + Values []string `json:"values"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DimensionsParam.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DimensionsParam.go new file mode 100644 index 0000000000..6d6705a285 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/DimensionsParam.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type DimensionsParam struct { + + /* 是否分组查询 (Optional) */ + GroupBy *bool `json:"groupBy"` + + /* 维度key (Optional) */ + Key *string `json:"key"` + + /* 维度值 (Optional) */ + Values []string `json:"values"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dynamic.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dynamic.go new file mode 100644 index 0000000000..88b7dc120d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Dynamic.go @@ -0,0 +1,48 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Dynamic struct { + + /* 产品动态创建时间 (Optional) */ + CreateTime string `json:"createTime"` + + /* 产品动态描述,前端展示用,自动中英文适配 (Optional) */ + DynamicDetail string `json:"dynamicDetail"` + + /* 产品动态中文描述 (Optional) */ + DynamicDetailCN string `json:"dynamicDetailCN"` + + /* 产品动态英文描述 (Optional) */ + DynamicDetailEN string `json:"dynamicDetailEN"` + + /* 产品动态状态 1-已上线 0-已下线 (Optional) */ + DynamicStatus int64 `json:"dynamicStatus"` + + /* 产品动态类型 1-新产品 2-新功能 3-功能调整 4-其它 (Optional) */ + DynamicType int64 `json:"dynamicType"` + + /* 产品动态链接地址 (Optional) */ + DynamicUrl string `json:"dynamicUrl"` + + /* 产品动态更新时间 (Optional) */ + UpdateTime string `json:"updateTime"` + + /* 产品动态uuid (Optional) */ + Uuid string `json:"uuid"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/EnableAlarmsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/EnableAlarmsSpec.go new file mode 100644 index 0000000000..c32dc19816 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/EnableAlarmsSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type EnableAlarmsSpec struct { + + /* 告警规则的ID列表 */ + Ids []string `json:"ids"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/EnableOneClickAlarmsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/EnableOneClickAlarmsSpec.go new file mode 100644 index 0000000000..32b3a4b104 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/EnableOneClickAlarmsSpec.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type EnableOneClickAlarmsSpec struct { + + /* 一键报警规则下的报警规则id */ + RulePolicyId string `json:"rulePolicyId"` + + /* 1启动、0关闭 */ + State int64 `json:"state"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Err.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Err.go new file mode 100644 index 0000000000..26c8e63ffc --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Err.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Err struct { + + /* (Optional) */ + Code int64 `json:"code"` + + /* (Optional) */ + Details interface{} `json:"details"` + + /* (Optional) */ + Message string `json:"message"` + + /* (Optional) */ + Status string `json:"status"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Filter.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Filter.go new file mode 100644 index 0000000000..93ec385a5f --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Filter.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Filter struct { + + /* (Optional) */ + Name *string `json:"name"` + + /* (Optional) */ + Values []string `json:"values"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/FolderInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/FolderInfo.go new file mode 100644 index 0000000000..fafc308c65 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/FolderInfo.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type FolderInfo struct { + + /* (Optional) */ + Id int64 `json:"id"` + + /* (Optional) */ + Title string `json:"title"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GetWidgetDataPointsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GetWidgetDataPointsSpec.go new file mode 100644 index 0000000000..3a403920a7 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GetWidgetDataPointsSpec.go @@ -0,0 +1,66 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type GetWidgetDataPointsSpec struct { + + /* (Optional) */ + Aggregated string `json:"aggregated"` + + /* (Optional) */ + CreatedTime int64 `json:"createdTime"` + + /* (Optional) */ + DashboardId string `json:"dashboardId"` + + /* (Optional) */ + EndTime string `json:"endTime"` + + /* name为widgetId - 多个图表的id (Optional) */ + Filters []Filter `json:"filters"` + + /* (Optional) */ + Metrics []WidgetMetric `json:"metrics"` + + /* (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + Position WidgetPosition `json:"position"` + + /* (Optional) */ + Resources WidgetResources `json:"resources"` + + /* (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* (Optional) */ + StartTime string `json:"startTime"` + + /* (Optional) */ + TopN int `json:"topN"` + + /* (Optional) */ + Type string `json:"type"` + + /* (Optional) */ + UpdatedTime int64 `json:"updatedTime"` + + /* (Optional) */ + WidgetId []string `json:"widgetId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GetWidgetMetricOut.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GetWidgetMetricOut.go new file mode 100644 index 0000000000..74af8d7371 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GetWidgetMetricOut.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type GetWidgetMetricOut struct { + + /* (Optional) */ + List []ServiceMetric `json:"list"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupAlarm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupAlarm.go new file mode 100644 index 0000000000..0ff3a17236 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupAlarm.go @@ -0,0 +1,60 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type GroupAlarm struct { + + /* 报警规则ID (Optional) */ + AlarmId string `json:"alarmId"` + + /* 告警通知联系人 (Optional) */ + BaseContact []BaseContact `json:"baseContact"` + + /* 创建时间 (Optional) */ + CreateTime string `json:"createTime"` + + /* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 通知策略 (Optional) */ + NoticeOption []NoticeOption `json:"noticeOption"` + + /* */ + ResourceOption ResourceOption `json:"resourceOption"` + + /* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" */ + RuleName string `json:"ruleName"` + + /* */ + RuleOption RuleOption `json:"ruleOption"` + + /* 规则类型, 默认为resourceMonitor (Optional) */ + RuleType string `json:"ruleType"` + + /* 规则版本 v1 v2 (Optional) */ + RuleVersion string `json:"ruleVersion"` + + /* 产品线标识,规则对应的serviceCode */ + ServiceCode string `json:"serviceCode"` + + /* 监控项状态:-1 未启用 1正常,2告警,4数据不足 (Optional) */ + Status int64 `json:"status"` + + /* (Optional) */ + WebHookOption WebHookOption `json:"webHookOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupInfo.go new file mode 100644 index 0000000000..7f30290864 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupInfo.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type GroupInfo struct { + + /* 监控图的展示方式 (Optional) */ + Charts []Chart `json:"charts"` + + /* 分组groupCode (Optional) */ + GroupCode string `json:"groupCode"` + + /* 分组名称 (Optional) */ + GroupName string `json:"groupName"` + + /* 分组下metric对应的tags (Optional) */ + Tags interface{} `json:"tags"` + + /* 分组的webCode (Optional) */ + WebCode string `json:"webCode"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupNode.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupNode.go new file mode 100644 index 0000000000..1c1e10ff49 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupNode.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type GroupNode struct { + + /* 分组子节点 (Optional) */ + Childs []GroupNode `json:"childs"` + + /* 分组groupCode (Optional) */ + GroupCode string `json:"groupCode"` + + /* 分组父节点的groupCode (Optional) */ + Parent string `json:"parent"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupTree.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupTree.go new file mode 100644 index 0000000000..f2255e8365 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/GroupTree.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type GroupTree struct { + + /* 分组groupCodes (Optional) */ + Childs []GroupNode `json:"childs"` + + /* serviceCode (Optional) */ + ServiceCode string `json:"serviceCode"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/HandleTags.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/HandleTags.go new file mode 100644 index 0000000000..c8c6a738ed --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/HandleTags.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type HandleTags struct { + + /* 操作类型 1 复制原数据点,复制过程中只拷贝对原数据中tag改名的tag 2 不进行复制 (Optional) */ + HandleTagCode int64 `json:"handleTagCode"` + + /* (Optional) */ + HandleTags []DataTag `json:"handleTags"` + + /* (Optional) */ + PrefixMetric string `json:"prefixMetric"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/HawkeyeOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/HawkeyeOption.go new file mode 100644 index 0000000000..bf7900292f --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/HawkeyeOption.go @@ -0,0 +1,21 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type HawkeyeOption struct { +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/KeyInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/KeyInfo.go new file mode 100644 index 0000000000..5e30dcfe84 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/KeyInfo.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type KeyInfo struct { + + /* keyUID (Optional) */ + Key string `json:"key"` + + /* key名字 (Optional) */ + KeyName string `json:"keyName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/KeyValue.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/KeyValue.go new file mode 100644 index 0000000000..94baae1b8b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/KeyValue.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type KeyValue struct { + + /* key (Optional) */ + Key string `json:"key"` + + /* value (Optional) */ + Value string `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LastDownsampleRespItem.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LastDownsampleRespItem.go new file mode 100644 index 0000000000..4fc2f9d698 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LastDownsampleRespItem.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type LastDownsampleRespItem struct { + + /* (Optional) */ + Metric string `json:"metric"` + + /* (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + Tags interface{} `json:"tags"` + + /* (Optional) */ + Unit string `json:"unit"` + + /* (Optional) */ + Value interface{} `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LinkPolicyInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LinkPolicyInfo.go new file mode 100644 index 0000000000..e78534624c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LinkPolicyInfo.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type LinkPolicyInfo struct { + + /* 该模板关联策略的名字 (Optional) */ + LinkPolicyName string `json:"linkPolicyName"` + + /* 该模板关联策略的uuid (Optional) */ + LinkPolicyUuid string `json:"linkPolicyUuid"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ListAPIB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ListAPIB.go new file mode 100644 index 0000000000..c4ac5ee511 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ListAPIB.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ListAPIB struct { + + /* (Optional) */ + Api string `json:"api"` + + /* (Optional) */ + Query interface{} `json:"query"` + + /* (Optional) */ + Root string `json:"root"` + + /* (Optional) */ + TotalCount string `json:"totalCount"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Location.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Location.go new file mode 100644 index 0000000000..6503f33dd0 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Location.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Location struct { + + /* (Optional) */ + Sloc string `json:"sloc"` + + /* (Optional) */ + SlocName string `json:"slocName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LvInfoB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LvInfoB.go new file mode 100644 index 0000000000..cd80f61dce --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/LvInfoB.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type LvInfoB struct { + + /* (Optional) */ + Label string `json:"label"` + + /* (Optional) */ + Value string `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MaintainAuxiliaryTags.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MaintainAuxiliaryTags.go new file mode 100644 index 0000000000..f94abce17a --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MaintainAuxiliaryTags.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type MaintainAuxiliaryTags struct { + + /* 应用码。调用此API前需找云监控提供 */ + AppCode string `json:"appCode"` + + /* 详细的过滤条件。 (Optional) */ + Filter []DataTag `json:"filter"` + + /* 组id。须确保在一个APP范围内全局唯一 */ + GroupCode string `json:"groupCode"` + + /* 资源列表。 */ + ResourceIds []string `json:"resourceIds"` + + /* 资源的产品线,要对哪个产品线的资源打标签 */ + ServiceCode string `json:"serviceCode"` + + /* 打标签操作所属产品线的serviceCode */ + SrcServiceCode string `json:"srcServiceCode"` + + /* */ + Tags HandleTags `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Metric.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Metric.go new file mode 100644 index 0000000000..8bd5ec1b3d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Metric.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Metric struct { + + /* (Optional) */ + Aggregator string `json:"aggregator"` + + /* (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* (Optional) */ + Metric string `json:"metric"` + + /* (Optional) */ + MetricName string `json:"metricName"` + + /* (Optional) */ + Period string `json:"period"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricCm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricCm.go new file mode 100644 index 0000000000..87d87544b4 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricCm.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type MetricCm struct { + + /* (Optional) */ + AggrType string `json:"aggrType"` + + /* (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* (Optional) */ + Dimensions interface{} `json:"dimensions"` + + /* (Optional) */ + DownSamplePeriod string `json:"downSamplePeriod"` + + /* (Optional) */ + DownSampleType string `json:"downSampleType"` + + /* (Optional) */ + Metric string `json:"metric"` + + /* (Optional) */ + MetricName string `json:"metricName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricCmByTag.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricCmByTag.go new file mode 100644 index 0000000000..a6545235b7 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricCmByTag.go @@ -0,0 +1,45 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type MetricCmByTag struct { + + /* (Optional) */ + AggrPeriod string `json:"aggrPeriod"` + + /* (Optional) */ + AggrType string `json:"aggrType"` + + /* (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* (Optional) */ + DownSampleType string `json:"downSampleType"` + + /* (Optional) */ + Metric string `json:"metric"` + + /* (Optional) */ + MetricName string `json:"metricName"` + + /* (Optional) */ + MetricUID string `json:"metricUID"` + + /* (Optional) */ + Tags interface{} `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricData.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricData.go new file mode 100644 index 0000000000..82151c1280 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricData.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type MetricData struct { + + /* (Optional) */ + Data []DataPoint `json:"data"` + + /* (Optional) */ + Metric Metric `json:"metric"` + + /* (Optional) */ + Tags []Tag `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataCm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataCm.go new file mode 100644 index 0000000000..4d53913a14 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataCm.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type MetricDataCm struct { + + /* 命名空间 ,长度不超过255字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ], 其它会返回err */ + Namespace string `json:"namespace"` + + /* 监控指标名称,长度不超过255字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ], 其它会返回err */ + Metric string `json:"metric"` + + /* 数据维度,数据类型为map类型,支持最少一个,最多6个标签,总长度不大于1024字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ], 其它会返回err。eg:{"host":"127.0.0.1","region":"cn-north-1","role":"M"} */ + Dimensions interface{} `json:"dimensions"` + + /* 上报数据点的时间戳,只支持10位,秒级时间戳,不能写入过去30天的时间 */ + Timestamp int64 `json:"timestamp"` + + /* 数据上报类型,1为原始值 */ + Type int `json:"type"` + + /* 指标值集合,数据类型必须为map类型,key为数据类型,value为数据值,当type=1时,key只能为”value”,上报的是原始值,value内容为整型或浮点型数字,最大值为9223372036854775807 */ + Values interface{} `json:"values"` + + /* 数据的单位,长度不超过64字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ], 其它会返回err (Optional) */ + Unit *string `json:"unit"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataItemCm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataItemCm.go new file mode 100644 index 0000000000..97971b414b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataItemCm.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type MetricDataItemCm struct { + + /* (Optional) */ + Data []DataPoint `json:"data"` + + /* (Optional) */ + Metric MetricCm `json:"metric"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataItemCmByTag.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataItemCmByTag.go new file mode 100644 index 0000000000..9a8fa0b51a --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataItemCmByTag.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type MetricDataItemCmByTag struct { + + /* (Optional) */ + Data []DataPointByTag `json:"data"` + + /* (Optional) */ + Metric MetricCmByTag `json:"metric"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataList.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataList.go new file mode 100644 index 0000000000..deef596258 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDataList.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type MetricDataList struct { + + /* 错误数据 (Optional) */ + ErrMetricData string `json:"errMetricData"` + + /* 错误数据描述 (Optional) */ + ErrDetail string `json:"errDetail"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDetail.go new file mode 100644 index 0000000000..a73f97e260 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricDetail.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type MetricDetail struct { + + /* 指标的计算单位,比如bit/s、%、k等 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 维度标识 (Optional) */ + Dimension string `json:"dimension"` + + /* 取样频次 (Optional) */ + DownSample string `json:"downSample"` + + /* 监控项英文标识 (Optional) */ + Metric string `json:"metric"` + + /* 监控项名称 (Optional) */ + MetricName string `json:"metricName"` + + /* 产品线标识 (Optional) */ + ServiceCode string `json:"serviceCode"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricInfo.go new file mode 100644 index 0000000000..ca34d7cea7 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/MetricInfo.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type MetricInfo struct { + + /* 单位 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* metricName (Optional) */ + MetricName string `json:"metricName"` + + /* metricUID (Optional) */ + MetricUID string `json:"metricUID"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeLevel.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeLevel.go new file mode 100644 index 0000000000..313f74e64d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeLevel.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type NoticeLevel struct { + + /* 是否为用户自己定义的级别,自定义(true) or 固定(false) */ + Custom bool `json:"custom"` + + /* 报警级别以及对应的阈值,是一个map[string]float64对象。key:common(一般)、critical(严重)、 fatal(紧急),value:各报警级别对应的阀值,要符合operation参数对应的递进关系。 eg: "levels":{"common":1000,"critical":10000,"fatal":15000} */ + Levels interface{} `json:"levels"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeOption.go new file mode 100644 index 0000000000..56848fc784 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeOption.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type NoticeOption struct { + + /* 生效截止时间,默认值:23:59:59 (Optional) */ + EffectiveIntervalEnd *string `json:"effectiveIntervalEnd"` + + /* 生效起始时间,默认值:00:00:00 (Optional) */ + EffectiveIntervalStart *string `json:"effectiveIntervalStart"` + + /* 通知条件 1-告警 2-数据不足3-告警恢复 (Optional) */ + NoticeCondition []int64 `json:"noticeCondition"` + + /* 通知沉默周期,单位:分钟,默认值:24小时,目前支持的取值“24小时、12小时、6小时、3小时、1小时、30分钟、15分钟、10分钟、5分钟” (Optional) */ + NoticePeriod *int64 `json:"noticePeriod"` + + /* 通知方法 1-短信 2-邮件 (Optional) */ + NoticeWay []int64 `json:"noticeWay"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeReceiver.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeReceiver.go new file mode 100644 index 0000000000..87a92be52e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NoticeReceiver.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type NoticeReceiver struct { + + /* (Optional) */ + Email string `json:"email"` + + /* (Optional) */ + Mobile string `json:"mobile"` + + /* (Optional) */ + PersonId int64 `json:"personId"` + + /* (Optional) */ + Pin string `json:"pin"` + + /* (Optional) */ + UserName string `json:"userName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NsInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NsInfo.go new file mode 100644 index 0000000000..1ee95c51c3 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NsInfo.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type NsInfo struct { + + /* namespace名字 (Optional) */ + NamespaceName string `json:"namespaceName"` + + /* namespaceUUID (Optional) */ + NamespaceUuid string `json:"namespaceUuid"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NsReportInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NsReportInfo.go new file mode 100644 index 0000000000..242793c5ae --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/NsReportInfo.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type NsReportInfo struct { + + /* 维度 (Optional) */ + Dimensions interface{} `json:"dimensions"` + + /* 监控指标 (Optional) */ + Metric string `json:"metric"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ObjInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ObjInfo.go new file mode 100644 index 0000000000..f720bd1bc4 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ObjInfo.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ObjInfo struct { + + /* metric列表 (Optional) */ + Metrics []string `json:"metrics"` + + /* obj名称 (Optional) */ + ObjName string `json:"objName"` + + /* obj UID (Optional) */ + ObjUid string `json:"objUid"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OneClickAlarm.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OneClickAlarm.go new file mode 100644 index 0000000000..0a8125cf40 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OneClickAlarm.go @@ -0,0 +1,49 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type OneClickAlarm struct { + + /* 一键报警规则ID (Optional) */ + AlarmId string `json:"alarmId"` + + /* 一键告警规则配置 +in: body (Optional) */ + AlarmOptions []OneClickAlarmOption `json:"alarmOptions"` + + /* 创建时间 (Optional) */ + CreateTime string `json:"createTime"` + + /* 描述 (Optional) */ + Description string `json:"description"` + + /* 是否开启, 1表示打开,0表示关闭 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 是否由系统规则刚刚创建的,0代表是刚刚创建的,1代表由用户操作过的 (Optional) */ + Indeed int64 `json:"indeed"` + + /* 产品线标识 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 产品线名称 (Optional) */ + ServiceName string `json:"serviceName"` + + /* 更新时间 (Optional) */ + UpdateTime string `json:"updateTime"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OneClickAlarmOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OneClickAlarmOption.go new file mode 100644 index 0000000000..50929a8a93 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OneClickAlarmOption.go @@ -0,0 +1,46 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type OneClickAlarmOption struct { + + /* 通知的联系人 +in: body (Optional) */ + Contacts []BaseContact `json:"contacts"` + + /* 资源维度(vm-gpu、mongos-shard) (Optional) */ + Dimension string `json:"dimension"` + + /* 资源维度名称 (Optional) */ + DimensionName string `json:"dimensionName"` + + /* 是否启用, 1表示启用规则,0表示禁用规则 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 一键报警规则下的报警规则id (Optional) */ + PolicyId string `json:"policyId"` + + /* 资源类型(vm、database、db_ro……) (Optional) */ + Product string `json:"product"` + + /* 资源类型名称 (Optional) */ + ProductName string `json:"productName"` + + /* (Optional) */ + RuleOption RuleOptionDetail `json:"ruleOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OnlineDynamicSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OnlineDynamicSpec.go new file mode 100644 index 0000000000..eea7e9724d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OnlineDynamicSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type OnlineDynamicSpec struct { + + /* 1-上线 0-下线 */ + Online int64 `json:"online"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OpentsdbExtend.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OpentsdbExtend.go new file mode 100644 index 0000000000..e35a0f9714 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OpentsdbExtend.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type OpentsdbExtend struct { + + /* 数据源类型 cloudmonitor|hawkeye|deeplog (Optional) */ + JdcloudDatasourceType string `json:"jdcloudDatasourceType"` + + /* 数据源token (Optional) */ + JdcloudTsdbToken string `json:"jdcloudTsdbToken"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OptionsB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OptionsB.go new file mode 100644 index 0000000000..5dbe2f1200 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OptionsB.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type OptionsB struct { + + /* (Optional) */ + Format string `json:"format"` + + /* (Optional) */ + Map string `json:"map"` + + /* (Optional) */ + OptionType interface{} `json:"optionType"` + + /* (Optional) */ + Unix bool `json:"unix"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Org.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Org.go new file mode 100644 index 0000000000..01406f8b86 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Org.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Org struct { + + /* ark名称 (Optional) */ + ArkName string `json:"arkName"` + + /* org id (Optional) */ + OrgId int `json:"orgId"` + + /* org名称 (Optional) */ + OrgName string `json:"orgName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OrgUser.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OrgUser.go new file mode 100644 index 0000000000..ba582cbae7 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/OrgUser.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type OrgUser struct { + + /* 邮件地址 (Optional) */ + Email string `json:"email"` + + /* */ + Login string `json:"login"` + + /* orgId (Optional) */ + OrgId int `json:"orgId"` + + /* 用户角色. Admin、Editor、Viewer */ + Role string `json:"role"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Pagination.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Pagination.go new file mode 100644 index 0000000000..0cae97d28f --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Pagination.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Pagination struct { + + /* 总页数 (Optional) */ + NumberPages int64 `json:"numberPages"` + + /* 总记录数 (Optional) */ + NumberRecords int64 `json:"numberRecords"` + + /* 当前页码 (Optional) */ + PageNumber int64 `json:"pageNumber"` + + /* 分页大小 (Optional) */ + PageSize int64 `json:"pageSize"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelDimension.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelDimension.go new file mode 100644 index 0000000000..e01f63b164 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelDimension.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PanelDimension struct { + + /* 绑定tags,查数据必传 (Optional) */ + BindTags interface{} `json:"bindTags"` + + /* 维度标识 (Optional) */ + Dimension string `json:"dimension"` + + /* 维度名称 (Optional) */ + DimensionName string `json:"dimensionName"` + + /* 是否有子节点 (Optional) */ + HasSubNode bool `json:"hasSubNode"` + + /* 子节点的tagKey (Optional) */ + SubNodeKeys []SubNodeKeys `json:"subNodeKeys"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelEnd.go new file mode 100644 index 0000000000..0781ee992b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelEnd.go @@ -0,0 +1,57 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PanelEnd struct { + + /* 该panel所属dashboard的uid (Optional) */ + DashboardUid string `json:"dashboardUid"` + + /* 该panel所属维度 (Optional) */ + Dimension string `json:"dimension"` + + /* 该panel包含的metric (Optional) */ + PanelMetrics []PanelMetric `json:"panelMetrics"` + + /* 该panel的名字 (Optional) */ + PanelName string `json:"panelName"` + + /* (Optional) */ + PanelPosition PanelPosition `json:"panelPosition"` + + /* 资源id列表 (Optional) */ + PanelResources []PanelResource `json:"panelResources"` + + /* 标签服务列表 (Optional) */ + PanelTagResources []PanelTagResource `json:"panelTagResources"` + + /* topN的数量,图表类型为3(topN表格)时有效 (Optional) */ + PanelTopNum int64 `json:"panelTopNum"` + + /* 该panel的类型,1-折线图(明细);2-折线图(汇总);3-topN表格 (Optional) */ + PanelType int64 `json:"panelType"` + + /* 该panel的uid (Optional) */ + PanelUid string `json:"panelUid"` + + /* 该panel所属产品 (Optional) */ + Product string `json:"product"` + + /* 依据tag过滤 (Optional) */ + Tags []TagFilter `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMetric.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMetric.go new file mode 100644 index 0000000000..c5c3f7408c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMetric.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PanelMetric struct { + + /* 推荐聚合方式 (Optional) */ + Aggregator string `json:"aggregator"` + + /* 推荐采样方式 (Optional) */ + Downsample string `json:"downsample"` + + /* metric标识 (Optional) */ + Metric string `json:"metric"` + + /* metric名字 (Optional) */ + MetricName string `json:"metricName"` + + /* 单位 (Optional) */ + Unit string `json:"unit"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMetricForCreate.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMetricForCreate.go new file mode 100644 index 0000000000..b3714e36d5 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMetricForCreate.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PanelMetricForCreate struct { + + /* 聚合方式,跨资源计算方式 (Optional) */ + Aggregator string `json:"aggregator"` + + /* 采样方式,同一资源计算方式,如一分钟两个点,计算一分钟内这两个点的平均值得出一个点 (Optional) */ + Downsample string `json:"downsample"` + + /* metric */ + Metric string `json:"metric"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMonitorData.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMonitorData.go new file mode 100644 index 0000000000..c2ff44f018 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelMonitorData.go @@ -0,0 +1,51 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PanelMonitorData struct { + + /* 聚合方式 (Optional) */ + Aggregator string `json:"aggregator"` + + /* 监控数据 (Optional) */ + DataPoint []DataPoint `json:"dataPoint"` + + /* 采样方式 (Optional) */ + Downsample string `json:"downsample"` + + /* 采样周期 (Optional) */ + DownsamplePeriod string `json:"downsamplePeriod"` + + /* metric (Optional) */ + Metric string `json:"metric"` + + /* metric名字 (Optional) */ + MetricName string `json:"metricName"` + + /* 实例id,汇总图无 (Optional) */ + ResourceId string `json:"resourceId"` + + /* 实例名称,汇总图无;标签资源该值为实例id (Optional) */ + ResourceName string `json:"resourceName"` + + /* 该资源的维度值 (Optional) */ + Tags interface{} `json:"tags"` + + /* metric单位 (Optional) */ + Unit string `json:"unit"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelPosition.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelPosition.go new file mode 100644 index 0000000000..4798f1ab74 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelPosition.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PanelPosition struct { + + /* 该panel所在列 (Optional) */ + Col int64 `json:"col"` + + /* 该panel高度 (Optional) */ + Height int64 `json:"height"` + + /* 该panel在dashboard中的顺序 (Optional) */ + Order int64 `json:"order"` + + /* 该panel所在行 (Optional) */ + Row int64 `json:"row"` + + /* 该panel宽度 (Optional) */ + Width int64 `json:"width"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelPositionForUpdate.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelPositionForUpdate.go new file mode 100644 index 0000000000..d3379ab068 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelPositionForUpdate.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PanelPositionForUpdate struct { + + /* 该panel所在列 */ + Col int64 `json:"col"` + + /* 该panel高度 */ + Height int64 `json:"height"` + + /* 该panel在dashboard中的顺序 */ + Order int64 `json:"order"` + + /* 更新panel的uuid */ + PanelUid string `json:"panelUid"` + + /* 该panel所在行 */ + Row int64 `json:"row"` + + /* 该panel宽度 */ + Width int64 `json:"width"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelProduct.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelProduct.go new file mode 100644 index 0000000000..e3a72ab13c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelProduct.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PanelProduct struct { + + /* 绑定tags,查数据必传 (Optional) */ + BindTags interface{} `json:"bindTags"` + + /* 子维度 (Optional) */ + Dimension []PanelDimension `json:"dimension"` + + /* 产品标识 (Optional) */ + Product string `json:"product"` + + /* 产品名称 (Optional) */ + ProductName string `json:"productName"` + + /* serviceCode (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 标签服务处注册的serviceCode (Optional) */ + TagServiceCode string `json:"tagServiceCode"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelResource.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelResource.go new file mode 100644 index 0000000000..3cc7268ced --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelResource.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PanelResource struct { + + /* region */ + RegionId string `json:"regionId"` + + /* 资源id */ + ResourceId string `json:"resourceId"` + + /* 资源名称 (Optional) */ + ResourceName string `json:"resourceName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelTagResource.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelTagResource.go new file mode 100644 index 0000000000..8dd698ff41 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PanelTagResource.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PanelTagResource struct { + + /* 标签服务对应的key */ + Key string `json:"key"` + + /* region */ + RegionId string `json:"regionId"` + + /* 标签服务对应的values */ + Values []string `json:"values"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ParamInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ParamInfo.go new file mode 100644 index 0000000000..2ff581e860 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ParamInfo.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ParamInfo struct { + + /* 描述 (Optional) */ + Description string `json:"description"` + + /* 是否多值,默认为false (Optional) */ + IsMulti bool `json:"isMulti"` + + /* 名称 (Optional) */ + Name string `json:"name"` + + /* 可选值 (Optional) */ + Optional []string `json:"optional"` + + /* 参数类型,目前只有datasource (Optional) */ + ParamType string `json:"paramType"` + + /* 是否必须 (Optional) */ + Required bool `json:"required"` + + /* 值类型,int, float, string (Optional) */ + ValueType string `json:"valueType"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PreviewPanelMonitorDataSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PreviewPanelMonitorDataSpec.go new file mode 100644 index 0000000000..95142b569d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PreviewPanelMonitorDataSpec.go @@ -0,0 +1,45 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PreviewPanelMonitorDataSpec struct { + + /* 该panel所属dashboard的uid */ + DashboardUid string `json:"dashboardUid"` + + /* 该panel包含的metric */ + PanelMetrics []PanelMetricForCreate `json:"panelMetrics"` + + /* 资源id列表,与标签服务互斥,且资源id列表与标签服务列表至少传一个 (Optional) */ + PanelResources []PanelResource `json:"panelResources"` + + /* 标签服务列表,与资源id列表互斥,且资源id列表与标签服务列表至少传一个 (Optional) */ + PanelTagResources []PanelTagResource `json:"panelTagResources"` + + /* topN的数量,图表类型为3(topN表格)时必填 (Optional) */ + PanelTopNum int64 `json:"panelTopNum"` + + /* 该panel的类型,1-折线图(明细);2-折线图(汇总);3-topN表格 */ + PanelType int64 `json:"panelType"` + + /* 该panel所属产品 */ + Product string `json:"product"` + + /* 依据tag过滤(维度) (Optional) */ + Tags []TagFilter `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Product.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Product.go new file mode 100644 index 0000000000..b63c69089e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Product.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Product struct { + + /* 维度信息 (Optional) */ + Dimensions []Dimension `json:"dimensions"` + + /* 产品标识 (Optional) */ + Product string `json:"product"` + + /* 产品名称 (Optional) */ + ProductName string `json:"productName"` + + /* product对应的产品线 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 对应的标签服务serviceCode (Optional) */ + TagServiceCode string `json:"tagServiceCode"` + + /* (Optional) */ + Tags interface{} `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductAlertStatistics.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductAlertStatistics.go new file mode 100644 index 0000000000..9b5d756457 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductAlertStatistics.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ProductAlertStatistics struct { + + /* 规则个数 (Optional) */ + AlertCount int64 `json:"alertCount"` + + /* 产品 (Optional) */ + Product string `json:"product"` + + /* 产品名称 (Optional) */ + ProductName string `json:"productName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductB.go new file mode 100644 index 0000000000..57c45879c9 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductB.go @@ -0,0 +1,51 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ProductB struct { + + /* (Optional) */ + Attrs []Attrs `json:"attrs"` + + /* (Optional) */ + DetailApi DetailAPIB `json:"detailApi"` + + /* (Optional) */ + DetailLink string `json:"detailLink"` + + /* (Optional) */ + EnableSwitchAggregates bool `json:"enableSwitchAggregates"` + + /* (Optional) */ + ListFilter interface{} `json:"listFilter"` + + /* (Optional) */ + ProductCode string `json:"productCode"` + + /* 中英文适配,创建时不需要填写 (Optional) */ + ProductName string `json:"productName"` + + /* (Optional) */ + ProductNameCn string `json:"productNameCn"` + + /* (Optional) */ + ProductNameEn string `json:"productNameEn"` + + /* (Optional) */ + SpecialRequirements bool `json:"specialRequirements"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductLine.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductLine.go new file mode 100644 index 0000000000..8423ab3781 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductLine.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ProductLine struct { + + /* (Optional) */ + ProductLineCode string `json:"productLineCode"` + + /* 中英文适配 (Optional) */ + ProductLineName string `json:"productLineName"` + + /* (Optional) */ + ProductLineNameCn string `json:"productLineNameCn"` + + /* (Optional) */ + ProductLineNameEn string `json:"productLineNameEn"` + + /* (Optional) */ + ServiceCodes []ServiceInfoB `json:"serviceCodes"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductLineSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductLineSpec.go new file mode 100644 index 0000000000..428d3e1f0f --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ProductLineSpec.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ProductLineSpec struct { + + /* */ + ProductLineCode string `json:"productLineCode"` + + /* */ + ProductLineNameCn string `json:"productLineNameCn"` + + /* */ + ProductLineNameEn string `json:"productLineNameEn"` + + /* */ + ServiceCodes []ServiceInfoCreateB `json:"serviceCodes"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PrometheusExtend.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PrometheusExtend.go new file mode 100644 index 0000000000..fb84b863f9 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PrometheusExtend.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PrometheusExtend struct { + + /* 数据源token (Optional) */ + JdcloudTsdbToken string `json:"jdcloudTsdbToken"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PutBody.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PutBody.go new file mode 100644 index 0000000000..d2c4a38dfa --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PutBody.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PutBody struct { + + /* 目前统一用jcloud */ + AppCode string `json:"appCode"` + + /* 资源的类型,取值vm,ip,database,storage,disk,cdn,redis,balance,nat_gw,db_ro,vpn,ddos等,新接入的产品要求与opentapi命名的产品线名称一致 */ + ServiceCode string `json:"serviceCode"` + + /* 地域信息,如 cn-north-1 等 */ + Region string `json:"region"` + + /* 资源的唯一表示,一般为uuid */ + ResourceId string `json:"resourceId"` + + /* 监控数据点 */ + DataPoints []DataPointX `json:"dataPoints"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PutDataBackSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PutDataBackSpec.go new file mode 100644 index 0000000000..1618e089ea --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/PutDataBackSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type PutDataBackSpec struct { + + /* (Optional) */ + DataInfo []DataInfoB `json:"dataInfo"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryOption.go new file mode 100644 index 0000000000..7299615630 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryOption.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type QueryOption struct { + + /* 聚合方式,默认等于downSampleType(若downSampleType为last,AggrType取max)或avg,可选值参考:sum、avg、min、max (Optional) */ + AggrType *string `json:"aggrType"` + + /* 监控指标数据的维度信息,根据tags来指定查询的监控数据维度,至少指定一个查询维度 */ + Dimensions []DimensionsParam `json:"dimensions"` + + /* 采样方式,默认等于aggrType或avg,可选值参考:sum、avg、last、min、max (Optional) */ + DownSampleType *string `json:"downSampleType"` + + /* metric */ + Metric string `json:"metric"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryOptionCreate.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryOptionCreate.go new file mode 100644 index 0000000000..3dbc1c6374 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryOptionCreate.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type QueryOptionCreate struct { + + /* 聚合方式,默认等于downSampleType(若downSampleType为last,AggrType取max)或avg,可选值参考:sum、avg、min、max (Optional) */ + AggrType string `json:"aggrType"` + + /* 监控指标数据的维度信息,根据维度来指定查询的监控数据维度,至少指定一个查询维度 */ + Dimensions []DimensionsParam `json:"dimensions"` + + /* 采样方式,默认等于aggrType或avg,可选值参考:sum、avg、last、min、max (Optional) */ + DownSampleType string `json:"downSampleType"` + + /* metric */ + Metric string `json:"metric"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryResponseItem.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryResponseItem.go new file mode 100644 index 0000000000..a6835858be --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/QueryResponseItem.go @@ -0,0 +1,43 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type QueryResponseItem struct { + + /* 如果结果集中包含多个时间序列,即它们被聚合 +则会显示在所有时间序列中共同发现的标记名称列表 (Optional) */ + AggregateTags []string `json:"aggregateTags"` + + /* 如果查询检索到时间序列在所请求的时间范围内的注释, 则它们将在该组中返回 +每个时间序列的注释将被合并到一个集合中,并按start_time进行排序 (Optional) */ + Annotations []Annotation `json:"annotations"` + + /* 由聚合器处理后检索的数据点 +每个数据点由一个时间戳和一个值组成 (Optional) */ + Dps interface{} `json:"dps"` + + /* 查询将在时间范围内扫描全局注释,并在该组中返回结果 (Optional) */ + GlobalAnnotations []Annotation `json:"globalAnnotations"` + + /* metric名称 (Optional) */ + Metric string `json:"metric"` + + /* 仅当结果为单时间序列时才返回标签列表 +如果是聚合则返回空 (Optional) */ + Tags interface{} `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RawData.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RawData.go new file mode 100644 index 0000000000..34073e6b70 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RawData.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type RawData struct { + + /* 被聚合的tags (Optional) */ + AggregateTags []string `json:"aggregateTags"` + + /* 数据点 (Optional) */ + Dps interface{} `json:"dps"` + + /* metric (Optional) */ + Metric string `json:"metric"` + + /* tags (Optional) */ + Tags interface{} `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Resource.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Resource.go new file mode 100644 index 0000000000..d769c7fd78 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Resource.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Resource struct { + + /* (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + RegionId string `json:"regionId"` + + /* (Optional) */ + ResourceId string `json:"resourceId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceItem.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceItem.go new file mode 100644 index 0000000000..430509d8f1 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceItem.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ResourceItem struct { + + /* 资源所属的region */ + Region string `json:"region"` + + /* 资源id */ + ResourceId string `json:"resourceId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceMonitorStatus.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceMonitorStatus.go new file mode 100644 index 0000000000..3ae9d2c563 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceMonitorStatus.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ResourceMonitorStatus struct { + + /* 产品 (Optional) */ + Product string `json:"product"` + + /* 产品 (Optional) */ + ProductName string `json:"productName"` + + /* 影响资源个数 (Optional) */ + ResourceCount int64 `json:"resourceCount"` + + /* 服务状态, normal-正常 abnormal-异常 reminder-提醒 (Optional) */ + Status string `json:"status"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceOption.go new file mode 100644 index 0000000000..8b100c9bde --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ResourceOption.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ResourceOption struct { + + /* 指定具体资源ID设置报警规则,每次最多100个。优先resourceItems生效 (Optional) */ + ResourceItems []ResourceItem `json:"resourceItems"` + + /* (Optional) */ + TagsOption *TagsOption `json:"tagsOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleCount.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleCount.go new file mode 100644 index 0000000000..1051306f2e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleCount.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type RuleCount struct { + + /* 处于报警状态的规则个数 status:2 (Optional) */ + AlarmRuleCount int64 `json:"alarmRuleCount"` + + /* 规则类型,resourceMonitor-资源监控 customMetric-自定义监控 (Optional) */ + RuleType string `json:"ruleType"` + + /* 处于数据不足状态的规则 个数 status:4 (Optional) */ + UnknownRuleCount int64 `json:"unknownRuleCount"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleCounting.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleCounting.go new file mode 100644 index 0000000000..e71dc1f843 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleCounting.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type RuleCounting struct { + + /* 处于报警状态的规则个数 status:2 (Optional) */ + AlarmRuleCount int64 `json:"alarmRuleCount"` + + /* 未启用的规则 数量 (Optional) */ + DisableRuleCount int64 `json:"disableRuleCount"` + + /* 处于正常状态的规则个数 status:1 (Optional) */ + NormalRuleCount int64 `json:"normalRuleCount"` + + /* 产品标识 (Optional) */ + Product string `json:"product"` + + /* 监控规则 总数 (Optional) */ + TotalRuleCount int64 `json:"totalRuleCount"` + + /* 处于数据不足状态的规则 个数 status:4 (Optional) */ + UnknownRuleCount int64 `json:"unknownRuleCount"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleDetail.go new file mode 100644 index 0000000000..91ec651039 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleDetail.go @@ -0,0 +1,51 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type RuleDetail struct { + + /* 计算单位 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 统计方法,必须与定义的metric一致,可选值列表:avg,sum,max,min */ + Calculation string `json:"calculation"` + + /* 降采样函数 */ + DownSample string `json:"downSample"` + + /* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample */ + Metric string `json:"metric"` + + /* 监控项名称 (Optional) */ + MetricName string `json:"metricName"` + + /* (Optional) */ + NoticeLevel NoticeLevel `json:"noticeLevel"` + + /* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) */ + Operation string `json:"operation"` + + /* 查询指标的周期,单位为分钟,目前支持的取值:1,2,5,10,15,30,60 */ + Period int64 `json:"period"` + + /* 报警阈值,目前只开放数值类型功能 */ + Threshold float64 `json:"threshold"` + + /* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5,10,15,30,60 */ + Times int64 `json:"times"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleMetricDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleMetricDetail.go new file mode 100644 index 0000000000..4086dd9177 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleMetricDetail.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type RuleMetricDetail struct { + + /* 指标的计算单位,比如bit/s、%、k等 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 维度标识 (Optional) */ + Dimension string `json:"dimension"` + + /* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample (Optional) */ + Metric string `json:"metric"` + + /* 监控项名称 (Optional) */ + MetricName string `json:"metricName"` + + /* 产品标识 (Optional) */ + Product string `json:"product"` + + /* 产品线标识 (Optional) */ + ServiceCode string `json:"serviceCode"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleOption.go new file mode 100644 index 0000000000..6f797f687e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleOption.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type RuleOption struct { + + /* 规则触发条件,与模块参数同时指定时,优先使用rules (Optional) */ + Rules []BasicRule `json:"rules"` + + /* (Optional) */ + TemplateOption *TemplateOption `json:"templateOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleOptionDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleOptionDetail.go new file mode 100644 index 0000000000..bc4f99968c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleOptionDetail.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type RuleOptionDetail struct { + + /* 规则触发条件,与模板参数同时指定时,优先使用rules (Optional) */ + Rules []BasicRuleDetail `json:"rules"` + + /* (Optional) */ + TemplateOption TemplateOption `json:"templateOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleResourceInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleResourceInfo.go new file mode 100644 index 0000000000..ea4e54d539 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleResourceInfo.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type RuleResourceInfo struct { + + /* 维度 (Optional) */ + Dimension string `json:"dimension"` + + /* 产品类型 (Optional) */ + Product string `json:"product"` + + /* (Optional) */ + Region string `json:"region"` + + /* (Optional) */ + ResourceId string `json:"resourceId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleState.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleState.go new file mode 100644 index 0000000000..b5612e39de --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/RuleState.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type RuleState struct { + + /* 资源id (Optional) */ + ResourceId string `json:"resourceId"` + + /* 规则个数 (Optional) */ + RuleCount int64 `json:"ruleCount"` + + /* 资源的规则状态。1:正常、 2:报警、4:数据不足 -1:没有规则 -2:未启用 (Optional) */ + State int64 `json:"state"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SearchB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SearchB.go new file mode 100644 index 0000000000..66ecc29e96 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SearchB.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type SearchB struct { + + /* (Optional) */ + Label string `json:"label"` + + /* (Optional) */ + Placeholder string `json:"placeholder"` + + /* (Optional) */ + Value string `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SendEmailSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SendEmailSpec.go new file mode 100644 index 0000000000..28ca37da43 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SendEmailSpec.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type SendEmailSpec struct { + + /* 联系人列表 */ + Contacts []Contact `json:"contacts"` + + /* 邮件内容 */ + Content string `json:"content"` + + /* 邮件标题 */ + Title string `json:"title"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SendSmsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SendSmsSpec.go new file mode 100644 index 0000000000..1aa83abeb4 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SendSmsSpec.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type SendSmsSpec struct { + + /* 联系人列表 */ + Contacts []Contact `json:"contacts"` + + /* 短信模板Id */ + TemplateId int64 `json:"templateId"` + + /* 短信模板参数 */ + TemplateParam []string `json:"templateParam"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceCodeMetrics.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceCodeMetrics.go new file mode 100644 index 0000000000..ea21ef1ed3 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceCodeMetrics.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ServiceCodeMetrics struct { + + /* (Optional) */ + Metrics []MetricDetail `json:"metrics"` + + /* (Optional) */ + ServiceCode string `json:"serviceCode"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfo.go new file mode 100644 index 0000000000..15f266fed8 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfo.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ServiceInfo struct { + + /* (Optional) */ + GroupTree GroupTree `json:"groupTree"` + + /* 产品线下的分组信息 (Optional) */ + MetricGroup []GroupInfo `json:"metricGroup"` + + /* 上报延迟 (Optional) */ + MetricsTimeDelay int64 `json:"metricsTimeDelay"` + + /* 产品线ServiceCode (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 产品线名称 (Optional) */ + ServiceName string `json:"serviceName"` + + /* 上报的时间间隔 (Optional) */ + TimeInterval int64 `json:"timeInterval"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoB.go new file mode 100644 index 0000000000..fac47c80d3 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoB.go @@ -0,0 +1,60 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ServiceInfoB struct { + + /* (Optional) */ + DataMapping DataMappingB `json:"dataMapping"` + + /* (Optional) */ + Filters interface{} `json:"filters"` + + /* (Optional) */ + Ipv4Regions []LvInfoB `json:"ipv4Regions"` + + /* (Optional) */ + Ipv6Regions []LvInfoB `json:"ipv6Regions"` + + /* (Optional) */ + ListApi ListAPIB `json:"listApi"` + + /* (Optional) */ + Products []ProductB `json:"products"` + + /* (Optional) */ + Search []SearchB `json:"search"` + + /* (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 中英文适配 (Optional) */ + ServiceName string `json:"serviceName"` + + /* (Optional) */ + ServiceNameCn string `json:"serviceNameCn"` + + /* (Optional) */ + ServiceNameEn string `json:"serviceNameEn"` + + /* (Optional) */ + Status []StatusB `json:"status"` + + /* (Optional) */ + TableColumns []TableColumnB `json:"tableColumns"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoCreateB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoCreateB.go new file mode 100644 index 0000000000..89b80ac9fb --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoCreateB.go @@ -0,0 +1,57 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ServiceInfoCreateB struct { + + /* (Optional) */ + DataMapping DataMappingB `json:"dataMapping"` + + /* (Optional) */ + Filters interface{} `json:"filters"` + + /* (Optional) */ + Ipv4Regions []LvInfoB `json:"ipv4Regions"` + + /* (Optional) */ + Ipv6Regions []LvInfoB `json:"ipv6Regions"` + + /* */ + ListApi ListAPIB `json:"listApi"` + + /* (Optional) */ + Products []ProductB `json:"products"` + + /* (Optional) */ + Search []SearchB `json:"search"` + + /* */ + ServiceCode string `json:"serviceCode"` + + /* */ + ServiceNameCn string `json:"serviceNameCn"` + + /* */ + ServiceNameEn string `json:"serviceNameEn"` + + /* (Optional) */ + Status []StatusB `json:"status"` + + /* (Optional) */ + TableColumns []TableColumnB `json:"tableColumns"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoV2.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoV2.go new file mode 100644 index 0000000000..980087951f --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceInfoV2.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ServiceInfoV2 struct { + + /* 产品线下的分组信息 (Optional) */ + Dimensions []ChartDimension `json:"dimensions"` + + /* (Optional) */ + GroupTree GroupTree `json:"groupTree"` + + /* 产品线ServiceCode (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 产品线名称 (Optional) */ + ServiceName string `json:"serviceName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetric.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetric.go new file mode 100644 index 0000000000..6fbb3418de --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetric.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ServiceMetric struct { + + /* (Optional) */ + Metric []ServiceMetricItem `json:"metric"` + + /* (Optional) */ + ServiceCode string `json:"serviceCode"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetricAggregateItem.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetricAggregateItem.go new file mode 100644 index 0000000000..2d88d23d09 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetricAggregateItem.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ServiceMetricAggregateItem struct { + + /* (Optional) */ + Aggregate string `json:"aggregate"` + + /* (Optional) */ + Name string `json:"name"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetricItem.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetricItem.go new file mode 100644 index 0000000000..613c7175c9 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/ServiceMetricItem.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type ServiceMetricItem struct { + + /* (Optional) */ + Aggregates []ServiceMetricAggregateItem `json:"aggregates"` + + /* (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* (Optional) */ + Metric string `json:"metric"` + + /* (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + ServiceCode string `json:"serviceCode"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SqlDataPoint.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SqlDataPoint.go new file mode 100644 index 0000000000..b6ea098a30 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SqlDataPoint.go @@ -0,0 +1,66 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type SqlDataPoint struct { + + /* 目前统一用jcloud */ + AppCode string `json:"appCode"` + + /* 资源的类型,取值sqlserver */ + ServiceCode string `json:"serviceCode"` + + /* 资源所在的地域 */ + Region string `json:"region"` + + /* 资源的uuid */ + ResourceId string `json:"resourceId"` + + /* 监控指标名称,长度不超过255字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ], 其它会返回err */ + Metric string `json:"metric"` + + /* 毫秒级时间戳,早于当前时间30天的不能写入;建议的上报时间戳:上报时间间隔的整数倍,如上报间隔为5ms,则建议上报的时间戳为 time = current timestamp - (current timestamp % time interval) = 1487647187007 - (1487647187007 % 5) = 1487647187007 -2 = 1487647187005 */ + Time int64 `json:"time"` + + /* 上报的监控值,即慢sql语句已经执行的时间(单位s) */ + Value int64 `json:"value"` + + /* SQL开始执行的时间 */ + Start_time string `json:"start_time"` + + /* SQL已执行时间(单位s) */ + Execution_time int64 `json:"execution_time"` + + /* 会话ID */ + Session_id string `json:"session_id"` + + /* 数据库库名 */ + Database string `json:"database"` + + /* 客户端IP地址 */ + Client_net_address string `json:"client_net_address"` + + /* 用户名 */ + Loginname string `json:"loginname"` + + /* SQL会话请求状态 */ + Status string `json:"status"` + + /* SQL详细文本 */ + Sqlstr string `json:"sqlstr"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SqlInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SqlInfo.go new file mode 100644 index 0000000000..5b4df29e94 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SqlInfo.go @@ -0,0 +1,66 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type SqlInfo struct { + + /* 产品标识,目前统一用jcloud (Optional) */ + AppCode string `json:"appCode"` + + /* 客户端IP地址 (Optional) */ + Client_net_address string `json:"client_net_address"` + + /* 库名 (Optional) */ + Database string `json:"database"` + + /* SQL已执行时间(单位s) (Optional) */ + Execution_time int64 `json:"execution_time"` + + /* 用户名 (Optional) */ + Loginname string `json:"loginname"` + + /* 监控项 (Optional) */ + Metric string `json:"metric"` + + /* 资源所在的地域 (Optional) */ + Region string `json:"region"` + + /* 资源的uuid (Optional) */ + ResourceId string `json:"resourceId"` + + /* 资源的类型 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 会话ID (Optional) */ + Session_id string `json:"session_id"` + + /* SQL详细文本 (Optional) */ + Sqlstr string `json:"sqlstr"` + + /* SQL开始执行的时间 (Optional) */ + Start_time string `json:"start_time"` + + /* SQL会话请求状态 (Optional) */ + Status string `json:"status"` + + /* 毫秒级时间戳 (Optional) */ + Time int64 `json:"time"` + + /* 上报的监控值 (Optional) */ + Value int64 `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatisticsProductMetric.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatisticsProductMetric.go new file mode 100644 index 0000000000..90487f71f2 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatisticsProductMetric.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type StatisticsProductMetric struct { + + /* 聚合方式 (Optional) */ + Aggregate string `json:"aggregate"` + + /* 单位 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* metric (Optional) */ + Metric string `json:"metric"` + + /* metric名称 (Optional) */ + MetricShow string `json:"metricShow"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatsItem.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatsItem.go new file mode 100644 index 0000000000..efda626eac --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatsItem.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type StatsItem struct { + + /* 聚合方式 (Optional) */ + AggregateFunc string `json:"aggregateFunc"` + + /* 单位 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 数据点 (Optional) */ + Dps []DataPoint `json:"dps"` + + /* metric (Optional) */ + Metric string `json:"metric"` + + /* metric名称 (Optional) */ + MetricName string `json:"metricName"` + + /* tags (Optional) */ + Tags interface{} `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatusB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatusB.go new file mode 100644 index 0000000000..a98bb81f38 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/StatusB.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type StatusB struct { + + /* (Optional) */ + Color string `json:"color"` + + /* (Optional) */ + Immediate bool `json:"immediate"` + + /* (Optional) */ + Label string `json:"label"` + + /* (Optional) */ + Value string `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SubNodeKeys.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SubNodeKeys.go new file mode 100644 index 0000000000..9f929a3588 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SubNodeKeys.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type SubNodeKeys struct { + + /* 该key所在层级 (Optional) */ + Index int64 `json:"index"` + + /* key (Optional) */ + Key string `json:"key"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SwitchCustomAlarmsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SwitchCustomAlarmsSpec.go new file mode 100644 index 0000000000..dbacf16a80 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SwitchCustomAlarmsSpec.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type SwitchCustomAlarmsSpec struct { + + /* 告警规则的ID列表 */ + AlarmIds []string `json:"alarmIds"` + + /* 启用1,禁用0, (Optional) */ + State int64 `json:"state"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SwitchOneClickAlarmsSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SwitchOneClickAlarmsSpec.go new file mode 100644 index 0000000000..26bc73954d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/SwitchOneClickAlarmsSpec.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type SwitchOneClickAlarmsSpec struct { + + /* 产品线的serviceCode */ + ServiceCode string `json:"serviceCode"` + + /* 1启动、0关闭 */ + State int64 `json:"state"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TableColumnB.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TableColumnB.go new file mode 100644 index 0000000000..14ff29544e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TableColumnB.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TableColumnB struct { + + /* (Optional) */ + Label string `json:"label"` + + /* (Optional) */ + Link bool `json:"link"` + + /* (Optional) */ + Options []OptionsB `json:"options"` + + /* (Optional) */ + Prop string `json:"prop"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Tag.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Tag.go new file mode 100644 index 0000000000..86aa910fa0 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Tag.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Tag struct { + + /* (Optional) */ + TagKey string `json:"tagKey"` + + /* (Optional) */ + TagValue string `json:"tagValue"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TagFilter.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TagFilter.go new file mode 100644 index 0000000000..5076da8e63 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TagFilter.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TagFilter struct { + + /* Tag键 (Optional) */ + Key *string `json:"key"` + + /* Tag值 (Optional) */ + Values []string `json:"values"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TagsOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TagsOption.go new file mode 100644 index 0000000000..f75a2ee1fd --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TagsOption.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TagsOption struct { + + /* 操作项(多个tagFilter之间关关系)默认是or (Optional) */ + Operator *string `json:"operator"` + + /* 资源标签,对所有符合该标签的资源设置报警规则,对于新加入该标签的资源自动生效 (Optional) */ + Tags []TagFilter `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateInfo.go new file mode 100644 index 0000000000..2853554fcf --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateInfo.go @@ -0,0 +1,51 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TemplateInfo struct { + + /* (Optional) */ + CreateTime string `json:"createTime"` + + /* 是否删除,0否,1是 (Optional) */ + Deleted int64 `json:"deleted"` + + /* 描述 (Optional) */ + Description string `json:"description"` + + /* 名称 (Optional) */ + Name string `json:"name"` + + /* 模板参数信息 (Optional) */ + Params []ParamInfo `json:"params"` + + /* 模板oss地址 (Optional) */ + TemplateAddr string `json:"templateAddr"` + + /* 类型,0为系统,1为自定义 (Optional) */ + TemplateType int64 `json:"templateType"` + + /* 唯一标识 (Optional) */ + TemplateUid string `json:"templateUid"` + + /* 模板缩略图oss地址 (Optional) */ + ThumbnailAddr string `json:"thumbnailAddr"` + + /* (Optional) */ + UpdateTime string `json:"updateTime"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateOption.go new file mode 100644 index 0000000000..d775638f9d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateOption.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TemplateOption struct { + + /* 模板Id (Optional) */ + TemplateId *string `json:"templateId"` + + /* 模板类型.1-默认模板 2-自定义模板 (Optional) */ + TemplateType *int64 `json:"templateType"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateParam.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateParam.go new file mode 100644 index 0000000000..c8990fe94e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateParam.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TemplateParam struct { + + /* 描述 (Optional) */ + Description string `json:"description"` + + /* 名称 */ + Name string `json:"name"` + + /* 模板参数信息,必须有数据源信息 */ + Params []ParamInfo `json:"params"` + + /* 模板标签, map[string]string, 必须有数据源的标签,比如"datasourceType":"cloudmonitor" */ + Tags interface{} `json:"tags"` + + /* 模板oss地址 */ + TemplateAddr string `json:"templateAddr"` + + /* 模板缩略图oss地址 */ + ThumbnailAddr string `json:"thumbnailAddr"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateRulesVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateRulesVo.go new file mode 100644 index 0000000000..566f8559b8 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateRulesVo.go @@ -0,0 +1,84 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TemplateRulesVo struct { + + /* 监控项单位 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */ + Calculation string `json:"calculation"` + + /* (Optional) */ + CreateTime string `json:"createTime"` + + /* 是否删除 1正常,0删除 (Optional) */ + Deleted int64 `json:"deleted"` + + /* downSample (Optional) */ + DownSample string `json:"downSample"` + + /* 触发条件ID (Optional) */ + Id int64 `json:"id"` + + /* 监控项 (Optional) */ + Metric string `json:"metric"` + + /* 监控项ID (Optional) */ + MetricId int64 `json:"metricId"` + + /* 监控项名称 (Optional) */ + MetricName string `json:"metricName"` + + /* (Optional) */ + NoticeLevel NoticeLevel `json:"noticeLevel"` + + /* 通知周期 (Optional) */ + NoticePeriod int64 `json:"noticePeriod"` + + /* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) (Optional) */ + Operation string `json:"operation"` + + /* 统计周期(单位:分钟) (Optional) */ + Period int64 `json:"period"` + + /* 规则类型 (Optional) */ + RuleType int64 `json:"ruleType"` + + /* 规则所属资源类型 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 监控项附属信息 (Optional) */ + Tag string `json:"tag"` + + /* 多值标签 (Optional) */ + Tags interface{} `json:"tags"` + + /* 阈值 (Optional) */ + Threshold float64 `json:"threshold"` + + /* 连续多少次后报警 (Optional) */ + Times int64 `json:"times"` + + /* (Optional) */ + UpdateTime string `json:"updateTime"` + + /* 触发条件UUID (Optional) */ + Uuid string `json:"uuid"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateRulesVoV2.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateRulesVoV2.go new file mode 100644 index 0000000000..c087d54ad8 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateRulesVoV2.go @@ -0,0 +1,84 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TemplateRulesVoV2 struct { + + /* 监控项单位 (Optional) */ + CalculateUnit string `json:"calculateUnit"` + + /* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */ + Calculation string `json:"calculation"` + + /* (Optional) */ + CreateTime string `json:"createTime"` + + /* 是否删除 1正常,0删除 (Optional) */ + Deleted int64 `json:"deleted"` + + /* downSample (Optional) */ + DownSample string `json:"downSample"` + + /* 触发条件ID (Optional) */ + Id int64 `json:"id"` + + /* 监控项 (Optional) */ + Metric string `json:"metric"` + + /* 监控项ID (Optional) */ + MetricId int64 `json:"metricId"` + + /* 监控项名称 (Optional) */ + MetricName string `json:"metricName"` + + /* (Optional) */ + NoticeLevel NoticeLevel `json:"noticeLevel"` + + /* 通知周期 (Optional) */ + NoticePeriod int64 `json:"noticePeriod"` + + /* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) (Optional) */ + Operation string `json:"operation"` + + /* 统计周期(单位:分钟) (Optional) */ + Period int64 `json:"period"` + + /* 规则类型 (Optional) */ + RuleType int64 `json:"ruleType"` + + /* 规则所属资源类型 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 监控项附属信息 (Optional) */ + Tag string `json:"tag"` + + /* 多值标签 (Optional) */ + Tags interface{} `json:"tags"` + + /* 阈值 (Optional) */ + Threshold float64 `json:"threshold"` + + /* 连续多少次后报警 (Optional) */ + Times int64 `json:"times"` + + /* (Optional) */ + UpdateTime string `json:"updateTime"` + + /* 触发条件UUID (Optional) */ + Uuid string `json:"uuid"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateVo.go new file mode 100644 index 0000000000..01a2850e9b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateVo.go @@ -0,0 +1,54 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TemplateVo struct { + + /* (Optional) */ + CreateTime string `json:"createTime"` + + /* 模板描述 (Optional) */ + Description string `json:"description"` + + /* 用户 (Optional) */ + Pin string `json:"pin"` + + /* 模板内包含的规则数量 (Optional) */ + RulesCount int64 `json:"rulesCount"` + + /* 模板所属资源类型 (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 模板id (Optional) */ + TemplateId int64 `json:"templateId"` + + /* 模板名称 (Optional) */ + TemplateName string `json:"templateName"` + + /* 模板内包含的规则 (Optional) */ + TemplateRules []AlarmVo `json:"templateRules"` + + /* 模板内包含的提供给前端的拼接好的规则 (Optional) */ + TemplateRulesString []string `json:"templateRulesString"` + + /* 模板类型,区分默认模板和用户自定义模板:1表示默认模板,2表示用户自定义模板 (Optional) */ + TemplateType int64 `json:"templateType"` + + /* (Optional) */ + UpdateTime string `json:"updateTime"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateVoV2.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateVoV2.go new file mode 100644 index 0000000000..e4e8968e7d --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TemplateVoV2.go @@ -0,0 +1,75 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TemplateVoV2 struct { + + /* (Optional) */ + CreateTime string `json:"createTime"` + + /* 模板描述 (Optional) */ + Description string `json:"description"` + + /* 模板所属资源的GroupCode (Optional) */ + Dimension string `json:"dimension"` + + /* dimension的名字 (Optional) */ + DimensionName string `json:"dimensionName"` + + /* 该模板关联策略的数量 (Optional) */ + LinkPolicyCount int64 `json:"linkPolicyCount"` + + /* 该模板所关联的策略 (Optional) */ + LinkPolicyInfos []LinkPolicyInfo `json:"linkPolicyInfos"` + + /* 用户 (Optional) */ + Pin string `json:"pin"` + + /* 模板所属资源类型 (Optional) */ + Product string `json:"product"` + + /* product的名字 (Optional) */ + ProductName string `json:"productName"` + + /* 模板内包含的规则数量 (Optional) */ + RulesCount int64 `json:"rulesCount"` + + /* 模板所属ServiceCode (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* 模板id (Optional) */ + TemplateId int64 `json:"templateId"` + + /* 模板名称 (Optional) */ + TemplateName string `json:"templateName"` + + /* 模板内包含的触发条件 (Optional) */ + TemplateRules []TemplateRulesVo `json:"templateRules"` + + /* 模板内包含的提供给前端的拼接好的触发条件 (Optional) */ + TemplateRulesString []string `json:"templateRulesString"` + + /* 模板类型,区分默认模板和用户自定义模板:1表示默认模板,2表示用户自定义模板 (Optional) */ + TemplateType int64 `json:"templateType"` + + /* (Optional) */ + UpdateTime string `json:"updateTime"` + + /* 模板uuid (Optional) */ + Uuid string `json:"uuid"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TsdbFilter.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TsdbFilter.go new file mode 100644 index 0000000000..ccc0966670 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/TsdbFilter.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type TsdbFilter struct { + + /* 过滤类型支持以下几种 +literal_or:精确匹配一个或多个值,比如key为host,value为web1,表示过滤host=web1的数据(若要匹配多个值,value通过'\\|'分割,比如web1\\|web2); +not_key:返回不包含key值的时序数据 +wildcard:支持通配,比如key为host,value为web*,会匹配所有key为host,value为web开头的数据 */ + FilterType string `json:"filterType"` + + /* 是否对查询的tags分组,默认false (Optional) */ + GroupBy bool `json:"groupBy"` + + /* Tag键,对应上报数据中tag中的key,必传参数 */ + Key string `json:"key"` + + /* Tag值,对应上报数据中tag中的value (Optional) */ + Value string `json:"value"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateAlarmResourcesSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateAlarmResourcesSpec.go new file mode 100644 index 0000000000..a4bb356e4e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateAlarmResourcesSpec.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateAlarmResourcesSpec struct { + + /* 操作类型,默认为1,说明:1-覆盖 2-追加 3-删除 (Optional) */ + OperatorType int64 `json:"operatorType"` + + /* */ + ResourceOption ResourceOption `json:"resourceOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateAlarmSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateAlarmSpec.go new file mode 100644 index 0000000000..7cc6468aa6 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateAlarmSpec.go @@ -0,0 +1,63 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateAlarmSpec struct { + + /* 弹性伸缩组Id。注:仅ag\asg产品线内部使用 (Optional) */ + AutoScalingPolicyId string `json:"autoScalingPolicyId"` + + /* 告警通知联系人 (Optional) */ + BaseContact []BaseContact `json:"baseContact"` + + /* 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) */ + DataOwner int64 `json:"dataOwner"` + + /* 资源维度,可用的维度请使用 describeProductsForAlarm接口查询 (Optional) */ + Dimension string `json:"dimension"` + + /* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */ + Enabled int64 `json:"enabled"` + + /* url回调设置数组 (Optional) */ + MultiWebHook []WebHookOption `json:"multiWebHook"` + + /* 通知策略 (Optional) */ + NoticeOption []NoticeOption `json:"noticeOption"` + + /* 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。 */ + Product string `json:"product"` + + /* */ + ResourceOption ResourceOption `json:"resourceOption"` + + /* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" */ + RuleName string `json:"ruleName"` + + /* */ + RuleOption RuleOption `json:"ruleOption"` + + /* 规则类型, 默认为resourceMonitor (Optional) */ + RuleType string `json:"ruleType"` + + /* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足) (Optional) */ + Tags interface{} `json:"tags"` + + /* (Optional) */ + WebHookOption WebHookOption `json:"webHookOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateCmAlarmSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateCmAlarmSpec.go new file mode 100644 index 0000000000..1a2f1f989f --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateCmAlarmSpec.go @@ -0,0 +1,58 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateCmAlarmSpec struct { + + /* 聚合方式,多个维度聚合成1个维度时,多维度值之间的聚合方式。可选值:sum、avg、min、max */ + AggrType string `json:"aggrType"` + + /* 告警通知联系人 (Optional) */ + BaseContact []BaseContact `json:"baseContact"` + + /* 数据所有者,1云监控控制台; 2云鼎。默认为1 +in: query (Optional) */ + DataOwner int64 `json:"dataOwner"` + + /* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足),至少指定一个 */ + Dimensions []DimensionsParam `json:"dimensions"` + + /* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 回调数组 (Optional) */ + MultiWebHook []WebHookOption `json:"multiWebHook"` + + /* 命名空间 */ + Namespace string `json:"namespace"` + + /* 通知策略 (Optional) */ + NoticeOption []NoticeOption `json:"noticeOption"` + + /* 规则绑定资源所在地域 */ + Region string `json:"region"` + + /* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" */ + RuleName string `json:"ruleName"` + + /* 规则的触发条件设置选项 */ + RuleOption []BasicCustomRule `json:"ruleOption"` + + /* (Optional) */ + WebHookOption WebHookOption `json:"webHookOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateCustomQuerySpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateCustomQuerySpec.go new file mode 100644 index 0000000000..db937d44d5 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateCustomQuerySpec.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateCustomQuerySpec struct { + + /* 快捷检索条件名称,长度为32个字符,只允许中文、数字、大小写字母、英文下划线“_”及中划线“-”,且不允许重名 */ + Name string `json:"name"` + + /* 命名空间 */ + Namespace string `json:"namespace"` + + /* */ + QueryOption QueryOption `json:"queryOption"` + + /* */ + RegionId string `json:"regionId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDashboardSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDashboardSpec.go new file mode 100644 index 0000000000..ca2903e43b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDashboardSpec.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateDashboardSpec struct { + + /* (Optional) */ + DashboardId string `json:"dashboardId"` + + /* (Optional) */ + Focused string `json:"focused"` + + /* (Optional) */ + Name string `json:"name"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDataBackSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDataBackSpec.go new file mode 100644 index 0000000000..d3d0269602 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDataBackSpec.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateDataBackSpec struct { + + /* (Optional) */ + DataInfo []DataInfoB `json:"dataInfo"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDynamicSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDynamicSpec.go new file mode 100644 index 0000000000..53e6b39e83 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateDynamicSpec.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateDynamicSpec struct { + + /* 产品动态中文描述 */ + DynamicDetailCN string `json:"dynamicDetailCN"` + + /* 产品动态英文描述 */ + DynamicDetailEN string `json:"dynamicDetailEN"` + + /* 产品动态类型 1-新产品 2-新功能 3-功能调整 4-其它 */ + DynamicType int64 `json:"dynamicType"` + + /* 产品动态链接地址 (Optional) */ + DynamicUrl string `json:"dynamicUrl"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateGrafanaDashboardSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateGrafanaDashboardSpec.go new file mode 100644 index 0000000000..30b8542ea1 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateGrafanaDashboardSpec.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateGrafanaDashboardSpec struct { + + /* (Optional) */ + Description string `json:"description"` + + /* Title */ + Title string `json:"title"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmOption.go new file mode 100644 index 0000000000..d4d9064163 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmOption.go @@ -0,0 +1,41 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateOneClickAlarmOption struct { + + /* 告警通知联系人 +in: body (Optional) */ + Contacts []BaseContact `json:"contacts"` + + /* 是否开启一键报警,1打开;0-关闭。默认为0 (Optional) */ + Enabled int64 `json:"enabled"` + + /* 通知策略 +in: body (Optional) */ + NoticeOption []NoticeOption `json:"noticeOption"` + + /* 一键报警规则下的报警规则id */ + PolicyId string `json:"policyId"` + + /* */ + RuleOption RuleOption `json:"ruleOption"` + + /* (Optional) */ + WebHookOption WebHookOption `json:"webHookOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmOptionSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmOptionSpec.go new file mode 100644 index 0000000000..495f9c225a --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmOptionSpec.go @@ -0,0 +1,38 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateOneClickAlarmOptionSpec struct { + + /* 告警通知联系人 +in: body (Optional) */ + Contacts []BaseContact `json:"contacts"` + + /* 通知策略 +in: body (Optional) */ + NoticeOption []NoticeOption `json:"noticeOption"` + + /* 一键报警规则下的报警规则id */ + PolicyId string `json:"policyId"` + + /* */ + RuleOption RuleOption `json:"ruleOption"` + + /* (Optional) */ + WebHookOption WebHookOption `json:"webHookOption"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmSpec.go new file mode 100644 index 0000000000..cdbd2d1faf --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateOneClickAlarmSpec.go @@ -0,0 +1,34 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateOneClickAlarmSpec struct { + + /* 一键告警规则id */ + AlarmId string `json:"alarmId"` + + /* 一键告警规则配置 +in: body (Optional) */ + AlarmOptions []UpdateOneClickAlarmOption `json:"alarmOptions"` + + /* 中文描述 (Optional) */ + DescriptionCN string `json:"descriptionCN"` + + /* 英文描述 (Optional) */ + DescriptionEN string `json:"descriptionEN"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdatePanelSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdatePanelSpec.go new file mode 100644 index 0000000000..6f449cc7c0 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdatePanelSpec.go @@ -0,0 +1,54 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdatePanelSpec struct { + + /* 要更新panel所属dashboard的uid */ + DashboardUid string `json:"dashboardUid"` + + /* 要更新panel所属维度 (Optional) */ + Dimension string `json:"dimension"` + + /* 要更新panel包含的metric */ + PanelMetrics []PanelMetricForCreate `json:"panelMetrics"` + + /* 要更新panel的名字 (Optional) */ + PanelName string `json:"panelName"` + + /* 资源id列表,与标签服务互斥,且资源id列表与标签服务列表至少传一个 (Optional) */ + PanelResources []PanelResource `json:"panelResources"` + + /* 标签服务列表,与资源id列表互斥,且资源id列表与标签服务列表至少传一个 (Optional) */ + PanelTagResources []PanelTagResource `json:"panelTagResources"` + + /* topN的数量,图表类型为3(topN表格)时必填 (Optional) */ + PanelTopNum int64 `json:"panelTopNum"` + + /* 要更新panel的类型,1-折线图(明细);2-折线图(汇总);3-topN表格 */ + PanelType int64 `json:"panelType"` + + /* 要更新panel的uuid */ + PanelUid string `json:"panelUid"` + + /* 要更新panel所属产品 */ + Product string `json:"product"` + + /* 依据tag过滤(维度) (Optional) */ + Tags []TagFilter `json:"tags"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdatePanelsPositionSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdatePanelsPositionSpec.go new file mode 100644 index 0000000000..6ceb47a40b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdatePanelsPositionSpec.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdatePanelsPositionSpec struct { + + /* 更新panel的所属dashboard的uid */ + DashboardUid string `json:"dashboardUid"` + + /* 更新位置的panel */ + PanelsPosition []PanelPositionForUpdate `json:"panelsPosition"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateProductLineSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateProductLineSpec.go new file mode 100644 index 0000000000..f18cea6d58 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateProductLineSpec.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateProductLineSpec struct { + + /* */ + ProductLineNameCn string `json:"productLineNameCn"` + + /* */ + ProductLineNameEn string `json:"productLineNameEn"` + + /* */ + ServiceCodes []ServiceInfoCreateB `json:"serviceCodes"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateRequestV2.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateRequestV2.go new file mode 100644 index 0000000000..1eeeb931e7 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateRequestV2.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateTemplateRequestV2 struct { + + /* 模板描述 (Optional) */ + Description string `json:"description"` + + /* 模板资源类型下的维度,如果该资源分维度,则必须传入此参数 (Optional) */ + Dimension string `json:"dimension"` + + /* 模板的资源类型 */ + Product string `json:"product"` + + /* 模板名称 */ + TemplateName string `json:"templateName"` + + /* 模板内包含的规则 */ + TemplateRules []BasicRule `json:"templateRules"` + + /* 模板UUID */ + TemplateUuid string `json:"templateUuid"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateResponseEnd.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateResponseEnd.go new file mode 100644 index 0000000000..211a547a88 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateResponseEnd.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateTemplateResponseEnd struct { + + /* 是否更新成功 (Optional) */ + Success bool `json:"success"` + + /* 更新后的模板id (Optional) */ + TemplateId int64 `json:"templateId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateResponseResultV2.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateResponseResultV2.go new file mode 100644 index 0000000000..7845ed9fff --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateResponseResultV2.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateTemplateResponseResultV2 struct { + + /* 是否更新成功 (Optional) */ + Success bool `json:"success"` + + /* 更新后的模板uuid (Optional) */ + TemplateUuid string `json:"templateUuid"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateSpec.go new file mode 100644 index 0000000000..2b53898963 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateTemplateSpec.go @@ -0,0 +1,39 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateTemplateSpec struct { + + /* 模板描述 (Optional) */ + Description string `json:"description"` + + /* 规则的资源类型 */ + RuleServiceCode string `json:"ruleServiceCode"` + + /* 模板的资源类型 */ + ServiceCode string `json:"serviceCode"` + + /* 模板ID */ + TemplateId int64 `json:"templateId"` + + /* 模板名称 */ + TemplateName string `json:"templateName"` + + /* 模板内包含的规则 */ + TemplateRules []BaseRuleT `json:"templateRules"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookOut.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookOut.go new file mode 100644 index 0000000000..480a2a0dcc --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookOut.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateWebHookOut struct { + + /* (Optional) */ + Success bool `json:"success"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookReq.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookReq.go new file mode 100644 index 0000000000..a9c6b8b9d0 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookReq.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateWebHookReq struct { + + /* 是否启用, 1表示启用webHook,0表示禁用webHook,默认为1 (Optional) */ + Active int64 `json:"active"` + + /* webHook content (Optional) */ + Content string `json:"content"` + + /* webHook 协议,http或者https */ + Protocol string `json:"protocol"` + + /* webHook secret,用户请求签名,防伪造 (Optional) */ + Secret string `json:"secret"` + + /* webHook url */ + Url string `json:"url"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookSpec.go new file mode 100644 index 0000000000..405686dd33 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWebHookSpec.go @@ -0,0 +1,36 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateWebHookSpec struct { + + /* 是否启用, 1表示启用webHook,0表示禁用webHook,默认为1 (Optional) */ + Active int64 `json:"active"` + + /* webHook content (Optional) */ + Content string `json:"content"` + + /* webHook 协议,http或者https */ + Protocol string `json:"protocol"` + + /* webHook secret,用户请求签名,防伪造 (Optional) */ + Secret string `json:"secret"` + + /* webHook url */ + Url string `json:"url"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWidgetSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWidgetSpec.go new file mode 100644 index 0000000000..7c517d89fe --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UpdateWidgetSpec.go @@ -0,0 +1,57 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UpdateWidgetSpec struct { + + /* (Optional) */ + Aggregated string `json:"aggregated"` + + /* (Optional) */ + CreatedTime int64 `json:"createdTime"` + + /* (Optional) */ + DashboardId string `json:"dashboardId"` + + /* (Optional) */ + Metrics []WidgetMetric `json:"metrics"` + + /* (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + Position WidgetPosition `json:"position"` + + /* (Optional) */ + Resources WidgetResources `json:"resources"` + + /* (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* (Optional) */ + TopN int `json:"topN"` + + /* (Optional) */ + Type string `json:"type"` + + /* (Optional) */ + UpdatedTime int64 `json:"updatedTime"` + + /* (Optional) */ + WidgetId string `json:"widgetId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/User.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/User.go new file mode 100644 index 0000000000..eb11c956a9 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/User.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type User struct { + + /* 邮件地址 (Optional) */ + Email string `json:"email"` + + /* */ + Login string `json:"login"` + + /* 用户角色. Admin、Editor、Viewer */ + Role string `json:"role"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UserRole.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UserRole.go new file mode 100644 index 0000000000..5e90c6e913 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/UserRole.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type UserRole struct { + + /* */ + Login string `json:"login"` + + /* 用户角色. Admin、Editor、Viewer */ + Role string `json:"role"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Users.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Users.go new file mode 100644 index 0000000000..6e638d04ff --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Users.go @@ -0,0 +1,24 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Users struct { + + /* 用户列表.不允许为空,最大100个 */ + Users []UserRole `json:"users"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WebHookOption.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WebHookOption.go new file mode 100644 index 0000000000..f59bd0a67c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WebHookOption.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type WebHookOption struct { + + /* 回调content 注:仅webHookUrl和webHookProtocol均不为空时,才会创建webHook。当前支持的变量:${resourceId},${resourceName},${ipAddress},${requestId},${metric},${currentValue},${times},${tags},${alertTime},${region},${threshold},${serviceCode},${asGroupId},${unhealthyInstance} (Optional) */ + WebHookContent *string `json:"webHookContent"` + + /* webHook协议 (Optional) */ + WebHookProtocol *string `json:"webHookProtocol"` + + /* 回调secret,用户请求签名,防伪造 (Optional) */ + WebHookSecret *string `json:"webHookSecret"` + + /* 回调url (Optional) */ + WebHookUrl *string `json:"webHookUrl"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Widget.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Widget.go new file mode 100644 index 0000000000..7a0e75f101 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/Widget.go @@ -0,0 +1,57 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type Widget struct { + + /* (Optional) */ + Aggregated string `json:"aggregated"` + + /* (Optional) */ + CreatedTime int64 `json:"createdTime"` + + /* (Optional) */ + DashboardId string `json:"dashboardId"` + + /* (Optional) */ + Metrics []WidgetMetric `json:"metrics"` + + /* (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + Position WidgetPosition `json:"position"` + + /* (Optional) */ + Resources WidgetResources `json:"resources"` + + /* (Optional) */ + ServiceCode string `json:"serviceCode"` + + /* (Optional) */ + TopN int `json:"topN"` + + /* (Optional) */ + Type string `json:"type"` + + /* (Optional) */ + UpdatedTime int64 `json:"updatedTime"` + + /* (Optional) */ + WidgetId string `json:"widgetId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetDataPointItem.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetDataPointItem.go new file mode 100644 index 0000000000..273a903a1b --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetDataPointItem.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type WidgetDataPointItem struct { + + /* (Optional) */ + Aggregate []StatsItem `json:"aggregate"` + + /* (Optional) */ + Detail []StatsItem `json:"detail"` + + /* (Optional) */ + WidgetId string `json:"widgetId"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetMetric.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetMetric.go new file mode 100644 index 0000000000..008eb7af24 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetMetric.go @@ -0,0 +1,30 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type WidgetMetric struct { + + /* (Optional) */ + Aggregate string `json:"aggregate"` + + /* (Optional) */ + Metric string `json:"metric"` + + /* (Optional) */ + MetricName string `json:"metricName"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetPosition.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetPosition.go new file mode 100644 index 0000000000..ba6a9e4db8 --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetPosition.go @@ -0,0 +1,42 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type WidgetPosition struct { + + /* (Optional) */ + Col int `json:"col"` + + /* (Optional) */ + CreatedTime int64 `json:"createdTime"` + + /* (Optional) */ + Order int `json:"order"` + + /* (Optional) */ + Row int `json:"row"` + + /* (Optional) */ + SizeX int `json:"sizeX"` + + /* (Optional) */ + SizeY int `json:"sizeY"` + + /* (Optional) */ + UpdatedTime int64 `json:"updatedTime"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetRawResource.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetRawResource.go new file mode 100644 index 0000000000..a70e0c9b5c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetRawResource.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type WidgetRawResource struct { + + /* (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + RegionId string `json:"regionId"` + + /* (Optional) */ + ResourceId string `json:"resourceId"` + + /* (Optional) */ + Tag interface{} `json:"tag"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetResources.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetResources.go new file mode 100644 index 0000000000..241607847e --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetResources.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type WidgetResources struct { + + /* (Optional) */ + Raw []WidgetRawResource `json:"raw"` + + /* (Optional) */ + Tag []WidgetTagResource `json:"tag"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetSupportedProduct.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetSupportedProduct.go new file mode 100644 index 0000000000..2b2dec540c --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetSupportedProduct.go @@ -0,0 +1,27 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type WidgetSupportedProduct struct { + + /* (Optional) */ + Name string `json:"name"` + + /* (Optional) */ + ServiceCode string `json:"serviceCode"` +} diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetTagResource.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetTagResource.go new file mode 100644 index 0000000000..d6b7707bcd --- /dev/null +++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models/WidgetTagResource.go @@ -0,0 +1,33 @@ +// Copyright 2018 JDCLOUD.COM +// +// 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. +// +// NOTE: This class is auto generated by the jdcloud code generator program. + +package models + + +type WidgetTagResource struct { + + /* (Optional) */ + Id string `json:"id"` + + /* (Optional) */ + Key string `json:"key"` + + /* (Optional) */ + RegionId string `json:"regionId"` + + /* (Optional) */ + Value string `json:"value"` +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 274065d7c1..1455c84829 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -407,6 +407,9 @@ github.com/jdcloud-api/jdcloud-sdk-go/services/common/models github.com/jdcloud-api/jdcloud-sdk-go/services/disk/apis github.com/jdcloud-api/jdcloud-sdk-go/services/disk/client github.com/jdcloud-api/jdcloud-sdk-go/services/disk/models +github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis +github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/client +github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models github.com/jdcloud-api/jdcloud-sdk-go/services/vm/apis github.com/jdcloud-api/jdcloud-sdk-go/services/vm/client github.com/jdcloud-api/jdcloud-sdk-go/services/vm/models @@ -1192,7 +1195,7 @@ yunion.io/x/pkg/util/workqueue yunion.io/x/pkg/utils # yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e yunion.io/x/s3cli -# yunion.io/x/sqlchemy v0.0.0-20210401131841-cdb9ab689824 +# yunion.io/x/sqlchemy v0.0.0-20210519174758-cb08030e2008 yunion.io/x/sqlchemy # yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce yunion.io/x/structarg diff --git a/vendor/yunion.io/x/sqlchemy/parser.go b/vendor/yunion.io/x/sqlchemy/parser.go index 0f37d7967a..3e069a9cac 100644 --- a/vendor/yunion.io/x/sqlchemy/parser.go +++ b/vendor/yunion.io/x/sqlchemy/parser.go @@ -35,7 +35,7 @@ func structField2ColumnSpec(field *reflectutils.SStructFieldValue) IColumnSpec { retCol = getFiledTypeCol(fieldType.Elem(), fieldname, tagmap, true) } if retCol == nil { - panic("unsupported colume data type %s" + fieldType.Name()) + panic(fmt.Sprintf("unsupported colume %s data type %s", fieldname, fieldType.Name())) } return retCol }