Documentation
¶
Index ¶
- type Alarm
- type AlarmHistory
- type Attach
- type Bandwidth
- type BandwidthOverview
- type BandwidthTraffic
- type Cabinet
- type CabinetCurrentRespItem
- type CabinetOriCurrentResp
- type CabinetOverview
- type CreateAlarmSpec
- type CreateGeneralServicesTicket
- type DataPoint
- type DescribeAlarm
- type DescribeBandwidth
- type DescribeBandwidthTraffic
- type DescribeCabinet
- type DescribeDevice
- type DescribeDeviceInspection
- type DescribeIdcInspection
- type DescribeSwitchboard
- type Device
- type DeviceOverview
- type Idc
- type IdcInspection
- type Ip
- type IpOverview
- type LastDownsampleRespItem
- type Metric
- type MetricData
- type OpenDevices
- type OpenDevicesData
- type Point
- type RelatedIp
- type Resource
- type Room
- type Statistic
- type SwitchAlarmSpec
- type Switchboard
- type Ticket
- type TrafficSamplingData
- type UpdateAlarmSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alarm ¶
type Alarm struct {
/* 规则实例ID (Optional) */
AlarmId string `json:"alarmId"`
/* 规则名称 (Optional) */
Name string `json:"name"`
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 资源类型 bandwidth:带宽 (Optional) */
ResourceType string `json:"resourceType"`
/* 资源ID (Optional) */
ResourceId string `json:"resourceId"`
/* 资源名称 (Optional) */
ResourceName string `json:"resourceName"`
/* 监控项英文标识 (Optional) */
Metric string `json:"metric"`
/* 监控项名称 (Optional) */
MetricName string `json:"metricName"`
/* 统计周期(单位:分钟) (Optional) */
Period int `json:"period"`
/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
StatisticMethod string `json:"statisticMethod"`
/* 计算方式 >=、>、<、<=、=、!= (Optional) */
Operator string `json:"operator"`
/* 阈值 (Optional) */
Threshold float64 `json:"threshold"`
/* 连续多少次后报警 (Optional) */
Times int `json:"times"`
/* 通知周期 单位:小时 (Optional) */
NoticePeriod int `json:"noticePeriod"`
/* 规则状态 disabled:禁用 enabled:启用 (Optional) */
Status string `json:"status"`
/* 通知方式 all:全部 sms:短信 email:邮件 (Optional) */
NoticeMethod string `json:"noticeMethod"`
/* 交换机信息 (Optional) */
Switchboard []Switchboard `json:"switchboard"`
}
type AlarmHistory ¶
type AlarmHistory struct {
/* 规则实例ID (Optional) */
AlarmId string `json:"alarmId"`
/* 规则名称 (Optional) */
Name string `json:"name"`
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 资源类型 bandwidth:带宽 (Optional) */
ResourceType string `json:"resourceType"`
/* 资源ID (Optional) */
ResourceId string `json:"resourceId"`
/* 资源名称 (Optional) */
ResourceName string `json:"resourceName"`
/* 监控项英文标识 (Optional) */
Metric string `json:"metric"`
/* 监控项名称 (Optional) */
MetricName string `json:"metricName"`
/* 统计周期(单位:分钟) (Optional) */
Period int `json:"period"`
/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
StatisticMethod string `json:"statisticMethod"`
/* 计算方式 >=、>、<、<=、=、!= (Optional) */
Operator string `json:"operator"`
/* 阈值 (Optional) */
Threshold float64 `json:"threshold"`
/* 连续多少次后报警 (Optional) */
Times int `json:"times"`
/* 通知周期 单位:小时 (Optional) */
NoticePeriod int `json:"noticePeriod"`
/* 规则状态 disabled:禁用 enabled:启用 (Optional) */
Status string `json:"status"`
/* IP地址 (Optional) */
ManagementIp string `json:"managementIp"`
/* 端口名称 (Optional) */
IfName string `json:"ifName"`
/* 报警状态 normal:正常 alarm:报警 (Optional) */
AlarmStatus string `json:"alarmStatus"`
/* 报警值 (Optional) */
Value float64 `json:"value"`
/* 报警时间 遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
NoticeTime string `json:"noticeTime"`
/* 报警条件 (Optional) */
Condition string `json:"condition"`
}
type Bandwidth ¶
type Bandwidth struct {
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 带宽实例ID (Optional) */
BandwidthId string `json:"bandwidthId"`
/* 带宽名称 (Optional) */
BandwidthName string `json:"bandwidthName"`
/* 状态 normal:正常 abnormal:异常 (Optional) */
Status string `json:"status"`
/* 线路类型 dynamicBGP:动态BGP thirdLineBGP:三线BGP telecom:电信单线 unicom:联通单线 mobile:移动单线 (Optional) */
LineType string `json:"lineType"`
/* 计费方式
fixedBandwidth:固定带宽
95thPercentile:95峰值(IN,OUT统一计算95)
merge95thPercentile:95峰值(多出口合并计费)
95thPercentileSeparate:95峰值(IN,OUT分别计算95,取较大者)
merge95thPercentileAvg:日95峰值月平均(多出口合并计费)
(Optional) */
ChargeType string `json:"chargeType"`
/* 合同带宽(Mbps) (Optional) */
Bandwidth int `json:"bandwidth"`
/* 关联的公网IP (Optional) */
RelatedIp []RelatedIp `json:"relatedIp"`
/* 交换机信息 (Optional) */
Switchboard []Switchboard `json:"switchboard"`
}
type BandwidthOverview ¶ added in v1.41.0
type BandwidthOverview struct {
/* 带宽(出口)总数目 (Optional) */
Sum int `json:"sum"`
/* 动态BGP (Optional) */
DynamicBGP int `json:"dynamicBGP"`
/* 三线BGP (Optional) */
ThirdLineBGP int `json:"thirdLineBGP"`
/* 电信单线 (Optional) */
Telecom int `json:"telecom"`
/* 联通单线 (Optional) */
Unicom int `json:"unicom"`
/* 移动单线 (Optional) */
Mobile int `json:"mobile"`
}
type BandwidthTraffic ¶
type BandwidthTraffic struct {
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 带宽实例ID (Optional) */
BandwidthId string `json:"bandwidthId"`
/* 带宽名称 (Optional) */
BandwidthName string `json:"bandwidthName"`
/* 总上行实时流量 (Optional) */
TotalTrafficIn float64 `json:"totalTrafficIn"`
/* 总下行实时流量 (Optional) */
TotalTrafficOut float64 `json:"totalTrafficOut"`
/* 总带宽 (Optional) */
Bandwidth int `json:"bandwidth"`
/* 线路类型 dynamicBGP:动态BGP thirdLineBGP:三线BGP telecom:电信单线 unicom:联通单线 mobile:移动单线 (Optional) */
LineType string `json:"lineType"`
/* 关联的公网IP (Optional) */
RelatedIp []RelatedIp `json:"relatedIp"`
/* 交换机信息 (Optional) */
Switchboard []DescribeSwitchboard `json:"switchboard"`
}
type Cabinet ¶
type Cabinet struct {
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 机柜Id (Optional) */
CabinetId string `json:"cabinetId"`
/* 机柜编码 (Optional) */
CabinetNo string `json:"cabinetNo"`
/* 房间号 (Optional) */
RoomNo string `json:"roomNo"`
/* 机柜空间(U) (Optional) */
CabinetSpace int `json:"cabinetSpace"`
/* 额定电流(A) (Optional) */
CabinetPower int `json:"cabinetPower"`
/* 机柜类型 formal:正式机柜 reserved:预留机柜 (Optional) */
CabinetType string `json:"cabinetType"`
/* 机柜开通状态 disabled:未开通 enabling:开通中 enabled:已开通 disabling:关电中 (Optional) */
CabinetOpenStatus string `json:"cabinetOpenStatus"`
/* 开通时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
CabinetOpenTime string `json:"cabinetOpenTime"`
/* 到期时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
ExpireTime string `json:"expireTime"`
/* 预留开始时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
ReserveStartTime string `json:"reserveStartTime"`
/* 预留结束时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
ReserveEndTime string `json:"reserveEndTime"`
/* 设备数量 (Optional) */
DeviceNum int `json:"deviceNum"`
/* 占用U数(U) (Optional) */
RackUOccupy int `json:"rackUOccupy"`
/* 空闲U数(U) (Optional) */
RackUFree int `json:"rackUFree"`
/* 计费类型 1:按配置 2:按用量 3:包年包月 4:一次性(目前仅支持包年包月) (Optional) */
BillingType int `json:"billingType"`
}
type CabinetCurrentRespItem ¶ added in v1.57.0
type CabinetCurrentRespItem struct {
/* 资源ID (Optional) */
ResourceId string `json:"resourceId"`
/* UNIX时间戳 (Optional) */
Timestamp int `json:"timestamp"`
/* A路电流 (Optional) */
AValue float64 `json:"aValue"`
/* B路电流 (Optional) */
BValue float64 `json:"bValue"`
/* 总电流 (Optional) */
Value float64 `json:"value"`
}
type CabinetOriCurrentResp ¶ added in v1.63.0
type CabinetOriCurrentResp struct {
/* A路电流 (Optional) */
AValue interface{} `json:"aValue"`
/* B路电流 (Optional) */
BValue interface{} `json:"bValue"`
/* 资源ID (Optional) */
ResourceId string `json:"resourceId"`
}
type CabinetOverview ¶ added in v1.41.0
type CreateAlarmSpec ¶ added in v1.41.0
type CreateAlarmSpec struct {
/* idc机房实例ID (Optional) */
Idc string `json:"idc"`
/* 资源类型,bandwidth:带宽 (Optional) */
ResourceType string `json:"resourceType"`
/* 带宽实例ID (Optional) */
ResourceId string `json:"resourceId"`
/* 规则名称 (Optional) */
Name string `json:"name"`
/* 监控项,bandwidthTrafficIn:上行实时流量 bandwidthTrafficOut:下行实时流量 (Optional) */
Metric string `json:"metric"`
/* 统计周期(单位:分钟) (Optional) */
Period int `json:"period"`
/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
StatisticMethod string `json:"statisticMethod"`
/* 计算方式 >=、>、<、<=、=、!= (Optional) */
Operator string `json:"operator"`
/* 阈值 (Optional) */
Threshold float64 `json:"threshold"`
/* 连续多少次后报警 (Optional) */
Times int `json:"times"`
/* 通知周期 单位:小时 (Optional) */
NoticePeriod int `json:"noticePeriod"`
/* 规则状态 disabled:禁用 enabled:启用 (Optional) */
Status string `json:"status"`
/* 通知方式 all:全部 sms:短信 email:邮件 (Optional) */
NoticeMethod string `json:"noticeMethod"`
/* 通知对象 all:全部 persons:个人 groups:角色组 (Optional) */
NoticeObj string `json:"noticeObj"`
/* 通知对象用户ID,若多个用逗号分隔 (Optional) */
UserId string `json:"userId"`
/* 通知对象组ID (Optional) */
GroupId string `json:"groupId"`
}
type CreateGeneralServicesTicket ¶ added in v1.41.0
type CreateGeneralServicesTicket struct {
/* 提单人手机号 (Optional) */
Phone string `json:"phone"`
/* 提单人邮箱 (Optional) */
Email string `json:"email"`
/* idc机房实例id (Optional) */
Idc string `json:"idc"`
/* 是否是商业化外部机房 (Optional) */
IsExternalIdc bool `json:"isExternalIdc"`
/* 数量 (Optional) */
Count int `json:"count"`
/* 外部机房地址 (Optional) */
ExternalIdcAddress string `json:"externalIdcAddress"`
/* 外部机房联系人 (Optional) */
ExternalIdcContactPerson string `json:"externalIdcContactPerson"`
/* 外部机房联系电话 (Optional) */
ExternalIdcContactPhone string `json:"externalIdcContactPhone"`
/* 描述 (Optional) */
Remarks string `json:"remarks"`
/* 附件 (Optional) */
Attach []Attach `json:"attach"`
}
type DescribeAlarm ¶
type DescribeAlarm struct {
/* 规则实例ID (Optional) */
AlarmId string `json:"alarmId"`
/* 规则名称 (Optional) */
Name string `json:"name"`
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 资源类型 bandwidth:带宽 (Optional) */
ResourceType string `json:"resourceType"`
/* 资源ID (Optional) */
ResourceId string `json:"resourceId"`
/* 资源名称 (Optional) */
ResourceName string `json:"resourceName"`
/* 监控项英文标识 (Optional) */
Metric string `json:"metric"`
/* 监控项名称 (Optional) */
MetricName string `json:"metricName"`
/* 统计周期(单位:分钟) (Optional) */
Period int `json:"period"`
/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
StatisticMethod string `json:"statisticMethod"`
/* 计算方式 >=、>、<、<=、=、!= (Optional) */
Operator string `json:"operator"`
/* 阈值 (Optional) */
Threshold float64 `json:"threshold"`
/* 连续多少次后报警 (Optional) */
Times int `json:"times"`
/* 通知周期 单位:小时 (Optional) */
NoticePeriod int `json:"noticePeriod"`
/* 规则状态 disabled:禁用 enabled:启用 (Optional) */
Status string `json:"status"`
/* 交换机信息 (Optional) */
Switchboard []Switchboard `json:"switchboard"`
}
type DescribeBandwidth ¶
type DescribeBandwidth struct {
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 带宽实例ID (Optional) */
BandwidthId string `json:"bandwidthId"`
/* 带宽(出口)名称 (Optional) */
BandwidthName string `json:"bandwidthName"`
/* 状态 normal:正常 abnormal:异常 (Optional) */
Status string `json:"status"`
/* 线路类型 dynamicBGP:动态BGP thirdLineBGP:三线BGP telecom:电信单线 unicom:联通单线 mobile:移动单线 (Optional) */
LineType string `json:"lineType"`
/* 计费方式
fixedBandwidth:固定带宽
95thPercentile:95峰值(IN,OUT统一计算95)
merge95thPercentile:95峰值(多出口合并计费)
95thPercentileSeparate:95峰值(IN,OUT分别计算95,取较大者)
merge95thPercentileAvg:日95峰值月平均(多出口合并计费)
(Optional) */
ChargeType string `json:"chargeType"`
/* 合同带宽(Mbps) (Optional) */
Bandwidth int `json:"bandwidth"`
/* 关联的公网IP (Optional) */
RelatedIp []RelatedIp `json:"relatedIp"`
/* 交换机信息 (Optional) */
Switchboard []Switchboard `json:"switchboard"`
}
type DescribeBandwidthTraffic ¶
type DescribeBandwidthTraffic struct {
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 带宽实例ID (Optional) */
BandwidthId string `json:"bandwidthId"`
/* 带宽名称 (Optional) */
BandwidthName string `json:"bandwidthName"`
/* 总上行实时流量 (Optional) */
TotalTrafficIn float64 `json:"totalTrafficIn"`
/* 总下行实时流量 (Optional) */
TotalTrafficOut float64 `json:"totalTrafficOut"`
/* 总带宽 (Optional) */
Bandwidth int `json:"bandwidth"`
}
type DescribeCabinet ¶
type DescribeCabinet struct {
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 机柜Id (Optional) */
CabinetId string `json:"cabinetId"`
/* 机柜编码 (Optional) */
CabinetNo string `json:"cabinetNo"`
/* 房间号 (Optional) */
RoomNo string `json:"roomNo"`
/* 机柜空间(U) (Optional) */
CabinetSpace int `json:"cabinetSpace"`
/* 额定电流(A) (Optional) */
CabinetPower int `json:"cabinetPower"`
/* 机柜类型 formal:正式机柜 reserved:预留机柜 (Optional) */
CabinetType string `json:"cabinetType"`
/* 机柜开通状态 disabled:未开通 enabling:开通中 enabled:已开通 disabling:关电中 (Optional) */
CabinetOpenStatus string `json:"cabinetOpenStatus"`
/* 开通时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
CabinetOpenTime string `json:"cabinetOpenTime"`
/* 到期时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
ExpireTime string `json:"expireTime"`
/* 预留开始时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
ReserveStartTime string `json:"reserveStartTime"`
/* 预留结束时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
ReserveEndTime string `json:"reserveEndTime"`
/* 占用U数(U) (Optional) */
RackUOccupy int `json:"rackUOccupy"`
/* 空闲U数(U) (Optional) */
RackUFree int `json:"rackUFree"`
}
type DescribeDevice ¶
type DescribeDevice struct {
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 设备Id (Optional) */
DeviceId string `json:"deviceId"`
/* 设备编码 (Optional) */
DeviceNo string `json:"deviceNo"`
/* 设备SN号 (Optional) */
SnNo string `json:"snNo"`
/* 机柜编码 (Optional) */
CabinetNo string `json:"cabinetNo"`
/* 所在U位 (Optional) */
RackUIndex string `json:"rackUIndex"`
/* U数(U) (Optional) */
UNum int `json:"uNum"`
/* 品牌 (Optional) */
Brand string `json:"brand"`
/* 型号 (Optional) */
Model string `json:"model"`
/* 设备类型 server:服务器 network:网络设备 storage:存储设备 other:其他设备 (Optional) */
DeviceType string `json:"deviceType"`
/* 资产归属 own:自备 lease:租赁 (Optional) */
AssetBelong string `json:"assetBelong"`
/* 资产状态 launched:已上架 opened:已开通 canceling:退订中 operating:操作中 modifying:变更中 (Optional) */
AssetStatus string `json:"assetStatus"`
/* 开通时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
DeviceOpenTime string `json:"deviceOpenTime"`
}
type DescribeDeviceInspection ¶ added in v1.54.0
type DescribeDeviceInspection struct {
/* 巡检时间,UTC时间 (Optional) */
InspectionTime string `json:"inspectionTime"`
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 故障状态 (Optional) */
Status string `json:"status"`
/* 设备编码 (Optional) */
DeviceNo string `json:"deviceNo"`
/* 设备SN号 (Optional) */
SnNo string `json:"snNo"`
/* 设备类型 (Optional) */
DeviceType string `json:"deviceType"`
/* 故障类型 (Optional) */
FaultType string `json:"faultType"`
}
type DescribeIdcInspection ¶ added in v1.54.0
type DescribeSwitchboard ¶ added in v1.17.0
type DescribeSwitchboard struct {
/* IP (Optional) */
Ip string `json:"ip"`
/* 端口 (Optional) */
Port string `json:"port"`
/* 上行实时流量 (Optional) */
TrafficIn float64 `json:"trafficIn"`
/* 下行实时流量 (Optional) */
TrafficOut float64 `json:"trafficOut"`
/* 报警状态 normal:正常 alarm:报警 (Optional) */
AlarmStatus string `json:"alarmStatus"`
}
type Device ¶
type Device struct {
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 设备Id (Optional) */
DeviceId string `json:"deviceId"`
/* 设备编码 (Optional) */
DeviceNo string `json:"deviceNo"`
/* 设备SN号 (Optional) */
SnNo string `json:"snNo"`
/* 机柜编码 (Optional) */
CabinetNo string `json:"cabinetNo"`
/* 所在U位 (Optional) */
RackUIndex string `json:"rackUIndex"`
/* U数(U) (Optional) */
UNum int `json:"uNum"`
/* 品牌 (Optional) */
Brand string `json:"brand"`
/* 型号 (Optional) */
Model string `json:"model"`
/* 系统IP (Optional) */
SysIp string `json:"sysIp"`
/* 管理IP (Optional) */
ManageIp string `json:"manageIp"`
/* 设备类型 server:服务器 network:网络设备 storage:存储设备 other:其他设备 (Optional) */
DeviceType string `json:"deviceType"`
/* 资产归属 own:自备 lease:租赁 (Optional) */
AssetBelong string `json:"assetBelong"`
/* 资产状态 launched:已上架 opened:已开通 canceling:退订中 operating:操作中 modifying:变更中 (Optional) */
AssetStatus string `json:"assetStatus"`
/* 开通时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
DeviceOpenTime string `json:"deviceOpenTime"`
/* CPU (Optional) */
CpuCore string `json:"cpuCore"`
/* 内存 (Optional) */
Memory string `json:"memory"`
/* 磁盘 (Optional) */
Disk string `json:"disk"`
}
type DeviceOverview ¶ added in v1.41.0
type DeviceOverview struct {
/* 设备总数目 (Optional) */
Sum int `json:"sum"`
/* 服务器总数目 (Optional) */
Server int `json:"server"`
/* 网络设备总数目 (Optional) */
Network int `json:"network"`
/* 存储设备总数目 (Optional) */
Storage int `json:"storage"`
/* 其它设备总数目 (Optional) */
Other int `json:"other"`
/* 已开通 (Optional) */
Opened int `json:"opened"`
/* 已上架 (Optional) */
Launched int `json:"launched"`
/* 操作中 (Optional) */
Operating int `json:"operating"`
/* 变更中 (Optional) */
Modifying int `json:"modifying"`
/* 退订中 (Optional) */
Canceling int `json:"canceling"`
}
type IdcInspection ¶ added in v1.54.0
type IdcInspection struct {
/* 巡检时间,UTC时间 (Optional) */
InspectionTime string `json:"inspectionTime"`
/* 温度数值 (Optional) */
Temperature string `json:"temperature"`
/* 湿度数值 (Optional) */
Humidity string `json:"humidity"`
/* 物品摆放 (Optional) */
GoodsPlacement string `json:"goodsPlacement"`
/* 漏水 (Optional) */
LeakWater string `json:"leakWater"`
/* 门禁 (Optional) */
AccessControl string `json:"accessControl"`
/* 安防(监控) (Optional) */
Monitor string `json:"monitor"`
/* 消防 (Optional) */
Fire string `json:"fire"`
/* 防雷 (Optional) */
Thunder string `json:"thunder"`
/* 空调 (Optional) */
AirConditioning string `json:"airConditioning"`
/* UPS (Optional) */
Ups string `json:"ups"`
/* 供电 (Optional) */
Power string `json:"power"`
/* 物理环境异常描述 (Optional) */
PhysicalEnv string `json:"physicalEnv"`
}
type Ip ¶
type Ip struct {
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 公网IP实例ID (Optional) */
IpId string `json:"ipId"`
/* IP地址段 (Optional) */
CidrAddr string `json:"cidrAddr"`
/* IP数量 (Optional) */
IpQuantity string `json:"ipQuantity"`
/* IP类型 IPV4/IPV6 (Optional) */
IpType string `json:"ipType"`
/* 网络位地址 (Optional) */
NetworkAddr string `json:"networkAddr"`
/* 网关地址 (Optional) */
GatewayAddr string `json:"gatewayAddr"`
/* 广播地址 (Optional) */
BroadcastAddr string `json:"broadcastAddr"`
/* 线路类型 dynamicBGP:动态BGP thirdLineBGP:三线BGP telecom:电信单线 unicom:联通单线 mobile:移动单线 (Optional) */
LineType string `json:"lineType"`
/* 状态 normal:正常 abnormal:异常 (Optional) */
Status string `json:"status"`
}
type IpOverview ¶ added in v1.41.0
type LastDownsampleRespItem ¶
type MetricData ¶
type OpenDevices ¶ added in v1.54.0
type OpenDevicesData ¶ added in v1.54.0
type Point ¶ added in v1.54.0
type Point struct {
/* 数据点名称 (Optional) */
PointName string `json:"pointName"`
/* 数据点数据 (Optional) */
PointData float64 `json:"pointData"`
/* 数据点标签 currentA A支路电流 currentB B支路电流 powerA A支路功率 powerB B支路功率 voltageA A支路电压 voltageB B支路电压 temperature温度 humidity湿度 averageVoltage三相平均相电压 totalPower总功率 totalCurrent总电流 (Optional) */
PointTag string `json:"pointTag"`
}
type SwitchAlarmSpec ¶ added in v1.41.0
type SwitchAlarmSpec struct {
/* 规则状态 disabled:禁用 enabled:启用 (Optional) */
Status string `json:"status"`
}
type Switchboard ¶ added in v1.17.0
type Ticket ¶
type Ticket struct {
/* 工单编号 (Optional) */
TicketNo string `json:"ticketNo"`
/* 工单名称 (Optional) */
TicketTemplateName string `json:"ticketTemplateName"`
/* 工单模板CODE (Optional) */
TicketTemplateCode string `json:"ticketTemplateCode"`
/* 工单类型 (Optional) */
TicketTypeName string `json:"ticketTypeName"`
/* 工单状态 pendingReview:待审核 已撤销 revoked:已撤销 processing:处理中 pendingVerification:待核验 pendingClose:待关单 rejected:已拒绝 completed:已完成 cancelled:已取消 draft:草稿中 (Optional) */
Status string `json:"status"`
/* 描述 (Optional) */
Description string `json:"description"`
/* 创建时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
CreatedTime string `json:"createdTime"`
/* 关闭时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */
ClosedTime string `json:"closedTime"`
/* 电话 (Optional) */
Phone string `json:"phone"`
/* 邮箱 (Optional) */
Email string `json:"email"`
/* 机房英文标识 (Optional) */
Idc string `json:"idc"`
/* 机房名称 (Optional) */
IdcName string `json:"idcName"`
/* 通用服务工单申请数量 (Optional) */
Count int `json:"count"`
/* 是否是商业化外部机房 (Optional) */
IsExternalIdc bool `json:"isExternalIdc"`
/* 外部机房地址 (Optional) */
ExternalIdcAddress string `json:"externalIdcAddress"`
/* 外部机房联系人 (Optional) */
ExternalIdcContactPerson string `json:"externalIdcContactPerson"`
/* 外部机房联系电话 (Optional) */
ExternalIdcContactPhone string `json:"externalIdcContactPhone"`
}
type TrafficSamplingData ¶ added in v1.20.0
type TrafficSamplingData struct {
/* 源IP (Optional) */
SrcIp string `json:"srcIp"`
/* 目的IP (Optional) */
DstIp string `json:"dstIp"`
/* 源端口 (Optional) */
SrcPort int `json:"srcPort"`
/* 目的端口 (Optional) */
DstPort int `json:"dstPort"`
/* 采样包长度 (Optional) */
SampleDataLength int `json:"sampleDataLength"`
/* 采样比 (Optional) */
SamplingInterval int `json:"samplingInterval"`
/* 协议 (Optional) */
ProtocolName string `json:"protocolName"`
/* 时间戳 (Optional) */
Timestamp int `json:"timestamp"`
/* 唯一ID标识 (Optional) */
UniqueId string `json:"uniqueId"`
/* 运营商类型 移动:CM 联通:CU 电信:CT (Optional) */
OperatorType string `json:"operatorType"`
}
type UpdateAlarmSpec ¶ added in v1.54.0
type UpdateAlarmSpec struct {
/* 规则名称 (Optional) */
Name string `json:"name"`
/* 监控项,bandwidthTrafficIn:上行实时流量 bandwidthTrafficOut:下行实时流量 (Optional) */
Metric string `json:"metric"`
/* 统计周期(单位:分钟) (Optional) */
Period int `json:"period"`
/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
StatisticMethod string `json:"statisticMethod"`
/* 计算方式 >=、>、<、<=、=、!= (Optional) */
Operator string `json:"operator"`
/* 阈值 (Optional) */
Threshold float64 `json:"threshold"`
/* 连续多少次后报警 (Optional) */
Times int `json:"times"`
/* 通知周期 单位:小时 (Optional) */
NoticePeriod int `json:"noticePeriod"`
/* 规则状态 disabled:禁用 enabled:启用 (Optional) */
Status string `json:"status"`
/* 通知方式 all:全部 sms:短信 email:邮件 (Optional) */
NoticeMethod string `json:"noticeMethod"`
/* 通知对象用户ID,若多个用逗号分隔 (Optional) */
UserId string `json:"userId"`
/* 通知对象组ID (Optional) */
GroupId string `json:"groupId"`
}
Source Files
¶
- Alarm.go
- AlarmHistory.go
- Attach.go
- Bandwidth.go
- BandwidthOverview.go
- BandwidthTraffic.go
- Cabinet.go
- CabinetCurrentRespItem.go
- CabinetOriCurrentResp.go
- CabinetOverview.go
- CreateAlarmSpec.go
- CreateGeneralServicesTicket.go
- DataPoint.go
- DescribeAlarm.go
- DescribeBandwidth.go
- DescribeBandwidthTraffic.go
- DescribeCabinet.go
- DescribeDevice.go
- DescribeDeviceInspection.go
- DescribeIdcInspection.go
- DescribeSwitchboard.go
- Device.go
- DeviceOverview.go
- Idc.go
- IdcInspection.go
- Ip.go
- IpOverview.go
- LastDownsampleRespItem.go
- Metric.go
- MetricData.go
- OpenDevices.go
- OpenDevicesData.go
- Point.go
- RelatedIp.go
- Resource.go
- Room.go
- Statistic.go
- SwitchAlarmSpec.go
- Switchboard.go
- Ticket.go
- TrafficSamplingData.go
- UpdateAlarmSpec.go
Click to show internal directories.
Click to hide internal directories.