Documentation ¶
Index ¶
- type Alarm
- type AlarmHistory
- type Bandwidth
- type BandwidthTraffic
- type Cabinet
- type DataPoint
- type DescribeAlarm
- type DescribeBandwidth
- type DescribeBandwidthTraffic
- type DescribeCabinet
- type DescribeDevice
- type DescribeSwitchboard
- type Device
- type Idc
- type Ip
- type LastDownsampleRespItem
- type Metric
- type MetricData
- type RelatedIp
- type Room
- type Statistic
- type Switchboard
- type Ticket
- type TrafficSamplingData
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"` /* 交换机信息 (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"` /* 策略ID (Optional) */ StrategyId int `json:"strategyId"` }
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峰值 merge95thPercentile:合并95峰值 (Optional) */ ChargeType string `json:"chargeType"` /* 合同带宽(Mbps) (Optional) */ Bandwidth int `json:"bandwidth"` /* 关联的公网IP (Optional) */ RelatedIp []RelatedIp `json:"relatedIp"` /* 交换机信息 (Optional) */ Switchboard []Switchboard `json:"switchboard"` }
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 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"` }
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峰值 merge95thPercentile:合并95峰值 (Optional) */ ChargeType string `json:"chargeType"` /* 合同带宽(Mbps) (Optional) */ Bandwidth int `json:"bandwidth"` /* 关联的公网IP (Optional) */ RelatedIp []RelatedIp `json:"relatedIp"` }
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"` }
type DescribeDevice ¶
type DescribeDevice struct { /* 机房英文标识 (Optional) */ Idc string `json:"idc"` /* 机房名称 (Optional) */ IdcName string `json:"idcName"` /* 设备Id (Optional) */ DeviceId string `json:"deviceId"` /* 设备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:操作中 modifing:变更中 (Optional) */ AssetStatus string `json:"assetStatus"` /* 开通时间,遵循ISO8601标准,使用UTC时间,格式为:yyyy-MM-ddTHH:mm:ssZ (Optional) */ DeviceOpenTime string `json:"deviceOpenTime"` }
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"` /* 设备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:操作中 modifing:变更中 (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 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 LastDownsampleRespItem ¶
type MetricData ¶
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"` }
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"` }
Source Files ¶
- Alarm.go
- AlarmHistory.go
- Bandwidth.go
- BandwidthTraffic.go
- Cabinet.go
- DataPoint.go
- DescribeAlarm.go
- DescribeBandwidth.go
- DescribeBandwidthTraffic.go
- DescribeCabinet.go
- DescribeDevice.go
- DescribeSwitchboard.go
- Device.go
- Idc.go
- Ip.go
- LastDownsampleRespItem.go
- Metric.go
- MetricData.go
- RelatedIp.go
- Room.go
- Statistic.go
- Switchboard.go
- Ticket.go
- TrafficSamplingData.go
Click to show internal directories.
Click to hide internal directories.