Skip to content

Commit 61270ce

Browse files
publish jdcloud-sdk-go version 1.1.5
1 parent 9355a34 commit 61270ce

34 files changed

Lines changed: 215 additions & 173 deletions

services/jdccs/ChangeLog.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
# 更新历史 #
2-
API版本:1.1.4
2+
API版本:1.1.5
33

4-
|发布时间|版本号|更新|说明|
5-
|---|---|---|---|
6-
|2022-07-21|1.1.4|新增接口|新增按照时间段查询机房下单个机柜AB路电流接口<br>新增查询机房下多个机柜AB路实时电流接口|
7-
|2022-04-13|1.1.3|接口变更|机房巡检接口新增参数|
8-
|2021-03-15|1.1.2|新增接口|金山云需求:开放设备数据信息接口|
9-
|2020-11-03|1.1.1|新增接口|新增机房巡检列表接口<br>新增设备巡检接口<br>新增机房巡检详情接口|
10-
|2020-08-04|1.1.0|新增接口|新增机房概览接口<br>新增提交通用服务工单接口<br>新增创建、启用、禁用和删除报警规则|
11-
|2020-06-22|1.0.10|接口变更|带宽(上、下行流量)监控项数据2小时范围查询支持5m粒度|
12-
|2020-03-20|1.0.9|接口变更|公网IP列表新增IP地址数量、IP类型、线路类型<br>带宽(出口)列表、详情新增计费方式|
13-
|2020-03-11|1.0.8|接口变更|VIVO需求:根据IP网段查询流量采样数据|
14-
|2020-02-03|1.0.7|接口变更|报警历史列表返回字段优化|
15-
|2020-01-16|1.0.6|接口变更|报警规则列表、报警历史列表、IP列表返回字段优化|
16-
|2020-01-09|1.0.5|新增接口|机柜详情<br>设备列表<br>设备详情<br>公网IP列表<br>带宽(出口)列表<br>带宽(出口)详情<br>工单列表<br>工单详情<br>报警规则列表<br>报警规则详情<br>报警历史列表|
17-
|2019-12-23|1.0.4|接口变更|带宽(上、下行流量)监控项数据支持单端口查询|
18-
|2019-10-17|1.0.3|新增接口|带宽(出口)流量列表<br>带宽(出口)流量(资源)详情<br>|
19-
|2019-10-17|1.0.3|接口变更|机柜列表返回更多字段<br>监控项增加带宽上下行流量|
20-
|2019-09-04|1.0.2|更新版本|查询IDC机房列表<br>查询机房房间号列表<br>查询机柜列表<br>查询可用监控项列表<br>查看某资源单个监控项数据<br>查看某资源的最后一个监控数据点|
21-
|2019-06-20|1.0.1|更新版本|支持查询角色所属账号是否有使用云托管控制台的权限|
22-
|2019-05-16|1.0.0|初始版本|添加查询账号是否有使用云托管控制台的权限接口|
4+
| 发布时间 | 版本号 | 更新 | 说明 |
5+
|------------|--------|------|------------------------------------------------------------------------------------------------------|
6+
| 2024-05-22 | 1.1.5 | 新增接口 | 新增按照时间段查询机房下单个机柜AB路电流-原始数据接口 |
7+
| 2022-07-21 | 1.1.4 | 新增接口 | 新增按照时间段查询机房下单个机柜AB路电流接口<br>新增查询机房下多个机柜AB路实时电流接口 |
8+
| 2022-04-13 | 1.1.3 | 接口变更 | 机房巡检接口新增参数 |
9+
| 2021-03-15 | 1.1.2 | 新增接口 | 金山云需求:开放设备数据信息接口 |
10+
| 2020-11-03 | 1.1.1 | 新增接口 | 新增机房巡检列表接口<br>新增设备巡检接口<br>新增机房巡检详情接口 |
11+
| 2020-08-04 | 1.1.0 | 新增接口 | 新增机房概览接口<br>新增提交通用服务工单接口<br>新增创建、启用、禁用和删除报警规则 |
12+
| 2020-06-22 | 1.0.10 | 接口变更 | 带宽(上、下行流量)监控项数据2小时范围查询支持5m粒度 |
13+
| 2020-03-20 | 1.0.9 | 接口变更 | 公网IP列表新增IP地址数量、IP类型、线路类型<br>带宽(出口)列表、详情新增计费方式 |
14+
| 2020-03-11 | 1.0.8 | 接口变更 | VIVO需求:根据IP网段查询流量采样数据 |
15+
| 2020-02-03 | 1.0.7 | 接口变更 | 报警历史列表返回字段优化 |
16+
| 2020-01-16 | 1.0.6 | 接口变更 | 报警规则列表、报警历史列表、IP列表返回字段优化 |
17+
| 2020-01-09 | 1.0.5 | 新增接口 | 机柜详情<br>设备列表<br>设备详情<br>公网IP列表<br>带宽(出口)列表<br>带宽(出口)详情<br>工单列表<br>工单详情<br>报警规则列表<br>报警规则详情<br>报警历史列表 |
18+
| 2019-12-23 | 1.0.4 | 接口变更 | 带宽(上、下行流量)监控项数据支持单端口查询 |
19+
| 2019-10-17 | 1.0.3 | 新增接口 | 带宽(出口)流量列表<br>带宽(出口)流量(资源)详情<br> |
20+
| 2019-10-17 | 1.0.3 | 接口变更 | 机柜列表返回更多字段<br>监控项增加带宽上下行流量 |
21+
| 2019-09-04 | 1.0.2 | 更新版本 | 查询IDC机房列表<br>查询机房房间号列表<br>查询机柜列表<br>查询可用监控项列表<br>查看某资源单个监控项数据<br>查看某资源的最后一个监控数据点 |
22+
| 2019-06-20 | 1.0.1 | 更新版本 | 支持查询角色所属账号是否有使用云托管控制台的权限 |
23+
| 2019-05-16 | 1.0.0 | 初始版本 | 添加查询账号是否有使用云托管控制台的权限接口 |

services/jdccs/apis/CreateAlarm.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ type CreateAlarmRequest struct {
7171

7272
/* 通知对象组ID (Optional) */
7373
GroupId *string `json:"groupId"`
74-
7574
}
7675

7776
/*
@@ -171,77 +170,62 @@ func NewCreateAlarmRequestWithoutParam() *CreateAlarmRequest {
171170
func (r *CreateAlarmRequest) SetIdc(idc string) {
172171
r.Idc = &idc
173172
}
174-
175173
/* param resourceType: 资源类型,bandwidth:带宽(Optional) */
176174
func (r *CreateAlarmRequest) SetResourceType(resourceType string) {
177175
r.ResourceType = &resourceType
178176
}
179-
180177
/* param resourceId: 带宽实例ID(Optional) */
181178
func (r *CreateAlarmRequest) SetResourceId(resourceId string) {
182179
r.ResourceId = &resourceId
183180
}
184-
185181
/* param name: 规则名称(Optional) */
186182
func (r *CreateAlarmRequest) SetName(name string) {
187183
r.Name = &name
188184
}
189-
190185
/* param metric: 监控项,bandwidthTrafficIn:上行实时流量 bandwidthTrafficOut:下行实时流量(Optional) */
191186
func (r *CreateAlarmRequest) SetMetric(metric string) {
192187
r.Metric = &metric
193188
}
194-
195189
/* param period: 统计周期(单位:分钟)(Optional) */
196190
func (r *CreateAlarmRequest) SetPeriod(period int) {
197191
r.Period = &period
198192
}
199-
200193
/* param statisticMethod: 统计方法:平均值=avg、最大值=max、最小值=min(Optional) */
201194
func (r *CreateAlarmRequest) SetStatisticMethod(statisticMethod string) {
202195
r.StatisticMethod = &statisticMethod
203196
}
204-
205197
/* param operator: 计算方式 >=、>、<、<=、=、!=(Optional) */
206198
func (r *CreateAlarmRequest) SetOperator(operator string) {
207199
r.Operator = &operator
208200
}
209-
210201
/* param threshold: 阈值(Optional) */
211202
func (r *CreateAlarmRequest) SetThreshold(threshold float64) {
212203
r.Threshold = &threshold
213204
}
214-
215205
/* param times: 连续多少次后报警(Optional) */
216206
func (r *CreateAlarmRequest) SetTimes(times int) {
217207
r.Times = &times
218208
}
219-
220209
/* param noticePeriod: 通知周期 单位:小时(Optional) */
221210
func (r *CreateAlarmRequest) SetNoticePeriod(noticePeriod int) {
222211
r.NoticePeriod = &noticePeriod
223212
}
224-
225213
/* param status: 规则状态 disabled:禁用 enabled:启用(Optional) */
226214
func (r *CreateAlarmRequest) SetStatus(status string) {
227215
r.Status = &status
228216
}
229-
230217
/* param noticeMethod: 通知方式 all:全部 sms:短信 email:邮件(Optional) */
231218
func (r *CreateAlarmRequest) SetNoticeMethod(noticeMethod string) {
232219
r.NoticeMethod = &noticeMethod
233220
}
234-
235221
/* param noticeObj: 通知对象 all:全部 persons:个人 groups:角色组(Optional) */
236222
func (r *CreateAlarmRequest) SetNoticeObj(noticeObj string) {
237223
r.NoticeObj = &noticeObj
238224
}
239-
240225
/* param userId: 通知对象用户ID,若多个用逗号分隔(Optional) */
241226
func (r *CreateAlarmRequest) SetUserId(userId string) {
242227
r.UserId = &userId
243228
}
244-
245229
/* param groupId: 通知对象组ID(Optional) */
246230
func (r *CreateAlarmRequest) SetGroupId(groupId string) {
247231
r.GroupId = &groupId

services/jdccs/apis/CreateGeneralServicesTicket.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ type CreateGeneralServicesTicketRequest struct {
5454

5555
/* 附件 (Optional) */
5656
Attach []jdccs.Attach `json:"attach"`
57-
5857
}
5958

6059
/*
@@ -136,47 +135,38 @@ func NewCreateGeneralServicesTicketRequestWithoutParam() *CreateGeneralServicesT
136135
func (r *CreateGeneralServicesTicketRequest) SetPhone(phone string) {
137136
r.Phone = &phone
138137
}
139-
140138
/* param email: 提单人邮箱(Optional) */
141139
func (r *CreateGeneralServicesTicketRequest) SetEmail(email string) {
142140
r.Email = &email
143141
}
144-
145142
/* param idc: idc机房实例id(Optional) */
146143
func (r *CreateGeneralServicesTicketRequest) SetIdc(idc string) {
147144
r.Idc = &idc
148145
}
149-
150146
/* param isExternalIdc: 是否是商业化外部机房(Optional) */
151147
func (r *CreateGeneralServicesTicketRequest) SetIsExternalIdc(isExternalIdc bool) {
152148
r.IsExternalIdc = &isExternalIdc
153149
}
154-
155150
/* param count: 数量(Optional) */
156151
func (r *CreateGeneralServicesTicketRequest) SetCount(count int) {
157152
r.Count = &count
158153
}
159-
160154
/* param externalIdcAddress: 外部机房地址(Optional) */
161155
func (r *CreateGeneralServicesTicketRequest) SetExternalIdcAddress(externalIdcAddress string) {
162156
r.ExternalIdcAddress = &externalIdcAddress
163157
}
164-
165158
/* param externalIdcContactPerson: 外部机房联系人(Optional) */
166159
func (r *CreateGeneralServicesTicketRequest) SetExternalIdcContactPerson(externalIdcContactPerson string) {
167160
r.ExternalIdcContactPerson = &externalIdcContactPerson
168161
}
169-
170162
/* param externalIdcContactPhone: 外部机房联系电话(Optional) */
171163
func (r *CreateGeneralServicesTicketRequest) SetExternalIdcContactPhone(externalIdcContactPhone string) {
172164
r.ExternalIdcContactPhone = &externalIdcContactPhone
173165
}
174-
175166
/* param remarks: 描述(Optional) */
176167
func (r *CreateGeneralServicesTicketRequest) SetRemarks(remarks string) {
177168
r.Remarks = &remarks
178169
}
179-
180170
/* param attach: 附件(Optional) */
181171
func (r *CreateGeneralServicesTicketRequest) SetAttach(attach []jdccs.Attach) {
182172
r.Attach = attach

services/jdccs/apis/DeleteAlarm.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ type DeleteAlarmRequest struct {
2626

2727
/* 报警规则ID */
2828
AlarmId string `json:"alarmId"`
29-
3029
}
3130

3231
/*

services/jdccs/apis/DescribeAlarm.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ type DescribeAlarmRequest struct {
2727

2828
/* 报警规则ID */
2929
AlarmId string `json:"alarmId"`
30-
3130
}
3231

3332
/*

services/jdccs/apis/DescribeAlarmHistory.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ type DescribeAlarmHistoryRequest struct {
4242

4343
/* 查询时间范围的结束时间, UNIX时间戳 (Optional) */
4444
EndTime *int `json:"endTime"`
45-
4645
}
4746

4847
/*
@@ -112,27 +111,22 @@ func NewDescribeAlarmHistoryRequestWithoutParam() *DescribeAlarmHistoryRequest {
112111
func (r *DescribeAlarmHistoryRequest) SetPageNumber(pageNumber int) {
113112
r.PageNumber = &pageNumber
114113
}
115-
116114
/* param pageSize: 分页大小,默认为20(Optional) */
117115
func (r *DescribeAlarmHistoryRequest) SetPageSize(pageSize int) {
118116
r.PageSize = &pageSize
119117
}
120-
121118
/* param alarmId: 报警规则ID(Optional) */
122119
func (r *DescribeAlarmHistoryRequest) SetAlarmId(alarmId string) {
123120
r.AlarmId = &alarmId
124121
}
125-
126122
/* param idc: 机房英文标识(Optional) */
127123
func (r *DescribeAlarmHistoryRequest) SetIdc(idc string) {
128124
r.Idc = &idc
129125
}
130-
131126
/* param startTime: 查询时间范围的开始时间, UNIX时间戳(Optional) */
132127
func (r *DescribeAlarmHistoryRequest) SetStartTime(startTime int) {
133128
r.StartTime = &startTime
134129
}
135-
136130
/* param endTime: 查询时间范围的结束时间, UNIX时间戳(Optional) */
137131
func (r *DescribeAlarmHistoryRequest) SetEndTime(endTime int) {
138132
r.EndTime = &endTime

services/jdccs/apis/DescribeAlarms.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ type DescribeAlarmsRequest struct {
4747
/* alarmId - 规则实施ID,精确匹配,支持多个
4848
(Optional) */
4949
Filters []common.Filter `json:"filters"`
50-
5150
}
5251

5352
/*
@@ -121,32 +120,26 @@ func NewDescribeAlarmsRequestWithoutParam() *DescribeAlarmsRequest {
121120
func (r *DescribeAlarmsRequest) SetPageNumber(pageNumber int) {
122121
r.PageNumber = &pageNumber
123122
}
124-
125123
/* param pageSize: 分页大小,默认为20(Optional) */
126124
func (r *DescribeAlarmsRequest) SetPageSize(pageSize int) {
127125
r.PageSize = &pageSize
128126
}
129-
130127
/* param resourceType: 资源类型 bandwidth:带宽(Optional) */
131128
func (r *DescribeAlarmsRequest) SetResourceType(resourceType string) {
132129
r.ResourceType = &resourceType
133130
}
134-
135131
/* param resourceId: 资源ID,指定resourceId时须指定resourceType(Optional) */
136132
func (r *DescribeAlarmsRequest) SetResourceId(resourceId string) {
137133
r.ResourceId = &resourceId
138134
}
139-
140135
/* param idc: 机房英文标识(Optional) */
141136
func (r *DescribeAlarmsRequest) SetIdc(idc string) {
142137
r.Idc = &idc
143138
}
144-
145139
/* param status: 规则状态 disabled:禁用 enabled:启用(Optional) */
146140
func (r *DescribeAlarmsRequest) SetStatus(status string) {
147141
r.Status = &status
148142
}
149-
150143
/* param filters: alarmId - 规则实施ID,精确匹配,支持多个
151144
(Optional) */
152145
func (r *DescribeAlarmsRequest) SetFilters(filters []common.Filter) {

services/jdccs/apis/DescribeBandwidth.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ type DescribeBandwidthRequest struct {
3030

3131
/* 带宽(出口)实例ID */
3232
BandwidthId string `json:"bandwidthId"`
33-
3433
}
3534

3635
/*
@@ -94,7 +93,6 @@ func NewDescribeBandwidthRequestWithoutParam() *DescribeBandwidthRequest {
9493
func (r *DescribeBandwidthRequest) SetIdc(idc string) {
9594
r.Idc = idc
9695
}
97-
9896
/* param bandwidthId: 带宽(出口)实例ID(Required) */
9997
func (r *DescribeBandwidthRequest) SetBandwidthId(bandwidthId string) {
10098
r.BandwidthId = bandwidthId

services/jdccs/apis/DescribeBandwidthTraffic.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ type DescribeBandwidthTrafficRequest struct {
3030

3131
/* 带宽(出口)实例ID */
3232
BandwidthId string `json:"bandwidthId"`
33-
3433
}
3534

3635
/*
@@ -94,7 +93,6 @@ func NewDescribeBandwidthTrafficRequestWithoutParam() *DescribeBandwidthTrafficR
9493
func (r *DescribeBandwidthTrafficRequest) SetIdc(idc string) {
9594
r.Idc = idc
9695
}
97-
9896
/* param bandwidthId: 带宽(出口)实例ID(Required) */
9997
func (r *DescribeBandwidthTrafficRequest) SetBandwidthId(bandwidthId string) {
10098
r.BandwidthId = bandwidthId

services/jdccs/apis/DescribeBandwidthTraffics.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ type DescribeBandwidthTrafficsRequest struct {
3636

3737
/* 带宽(出口)名称 (Optional) */
3838
BandwidthName *string `json:"bandwidthName"`
39-
4039
}
4140

4241
/*
@@ -103,17 +102,14 @@ func NewDescribeBandwidthTrafficsRequestWithoutParam() *DescribeBandwidthTraffic
103102
func (r *DescribeBandwidthTrafficsRequest) SetIdc(idc string) {
104103
r.Idc = idc
105104
}
106-
107105
/* param pageNumber: 页码, 默认为1(Optional) */
108106
func (r *DescribeBandwidthTrafficsRequest) SetPageNumber(pageNumber int) {
109107
r.PageNumber = &pageNumber
110108
}
111-
112109
/* param pageSize: 分页大小,默认为20(Optional) */
113110
func (r *DescribeBandwidthTrafficsRequest) SetPageSize(pageSize int) {
114111
r.PageSize = &pageSize
115112
}
116-
117113
/* param bandwidthName: 带宽(出口)名称(Optional) */
118114
func (r *DescribeBandwidthTrafficsRequest) SetBandwidthName(bandwidthName string) {
119115
r.BandwidthName = &bandwidthName

0 commit comments

Comments
 (0)