models

package
v1.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2019 License: Apache-2.0 Imports: 0 Imported by: 10 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 []interface{} `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"`

	/*  (Optional) */
	Switchboard []interface{} `json:"switchboard"`

	/* 报警状态 normal:正常 alarm:报警 (Optional) */
	AlarmStatus string `json:"alarmStatus"`

	/* 报警值 (Optional) */
	Value float64 `json:"value"`

	/* 报警时间 遵循ISO8601标准,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ (Optional) */
	NoticeTime string `json:"noticeTime"`
}

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"`

	/* 线路类型 bgp:BGP telecom:电信单线 unicom:联通单线 mobile:移动单线 (Optional) */
	LineType int `json:"lineType"`

	/* 合同带宽(Mbps) (Optional) */
	Bandwidth int `json:"bandwidth"`

	/* 关联的公网IP (Optional) */
	RelatedIp []interface{} `json:"relatedIp"`

	/* 交换机信息 (Optional) */
	Switchboard []interface{} `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"`

	/* 线路类型 bgp:BGP telecom:电信单线 unicom:联通单线 mobile:移动单线 (Optional) */
	LineType string `json:"lineType"`

	/* 关联的公网IP (Optional) */
	RelatedIp []interface{} `json:"relatedIp"`

	/*  (Optional) */
	Switchboard []interface{} `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) */
	StartTime string `json:"startTime"`

	/* 退租时间,遵循ISO8601标准,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ (Optional) */
	EndTime string `json:"endTime"`

	/* 设备数量 (Optional) */
	DeviceNum int `json:"deviceNum"`

	/* 占用U数(U) (Optional) */
	RackUOccupy int `json:"rackUOccupy"`

	/* 空闲U数(U) (Optional) */
	RackUFree int `json:"rackUFree"`
}

type DataPoint

type DataPoint struct {

	/* UNIX时间戳 (Optional) */
	Timestamp int `json:"timestamp"`

	/* 采样值 (Optional) */
	Value float64 `json:"value"`
}

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"`

	/* 线路类型 bgp:BGP telecom:电信单线 unicom:联通单线 mobile:移动单线 (Optional) */
	LineType int `json:"lineType"`

	/* 合同带宽(Mbps) (Optional) */
	Bandwidth int `json:"bandwidth"`

	/* 关联的公网IP (Optional) */
	RelatedIp []interface{} `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) */
	StartTime string `json:"startTime"`

	/* 退租时间,遵循ISO8601标准,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ (Optional) */
	EndTime string `json:"endTime"`
}

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"`

	/* 资产状态 inWarehouse:已入库 launched:已上架 (Optional) */
	AssetStatus string `json:"assetStatus"`
}

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"`

	/* 设备类型 server:服务器 network:网络设备 storage:存储设备 other:其他设备 (Optional) */
	DeviceType string `json:"deviceType"`

	/* 资产归属 own:自备 lease:租赁 (Optional) */
	AssetBelong string `json:"assetBelong"`

	/* 资产状态 inWarehouse:已入库 launched:已上架 (Optional) */
	AssetStatus string `json:"assetStatus"`

	/* CPU逻辑核数(核) (Optional) */
	CpuCore string `json:"cpuCore"`

	/* 内存总容量(GB) (Optional) */
	Memory string `json:"memory"`

	/* 硬盘总容量(GB) (Optional) */
	Disk string `json:"disk"`

	/* 网卡带宽(Mbps) (Optional) */
	NetworkCardBandwidth string `json:"networkCardBandwidth"`

	/* 起租时间,遵循ISO8601标准,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ (Optional) */
	StartTime string `json:"startTime"`

	/* 退租时间,遵循ISO8601标准,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ (Optional) */
	EndTime string `json:"endTime"`
}

type Idc

type Idc struct {

	/* 机房英文标识 (Optional) */
	Idc string `json:"idc"`

	/* 机房名称 (Optional) */
	IdcName string `json:"idcName"`
}

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"`

	/* 网络位地址 (Optional) */
	NetworkAddr string `json:"networkAddr"`

	/* 网关地址 (Optional) */
	GatewayAddr int `json:"gatewayAddr"`

	/* 广播地址 (Optional) */
	BroadcastAddr int `json:"broadcastAddr"`

	/* 状态 normal:正常 abnormal:异常 (Optional) */
	Status string `json:"status"`
}

type LastDownsampleRespItem

type LastDownsampleRespItem struct {

	/* 监控项英文标识 (Optional) */
	Metric string `json:"metric"`

	/* 资源ID (Optional) */
	ResourceId string `json:"resourceId"`

	/* 采样值 (Optional) */
	Value float64 `json:"value"`
}

type Metric

type Metric struct {

	/* 监控项英文标识 (Optional) */
	Metric string `json:"metric"`

	/* 监控项名称 (Optional) */
	MetricName string `json:"metricName"`
}

type MetricData

type MetricData struct {

	/*  (Optional) */
	Data []DataPoint `json:"data"`

	/*  (Optional) */
	Statistic Statistic `json:"statistic"`

	/*  (Optional) */
	Metric Metric `json:"metric"`
}

type Room

type Room struct {

	/* 机房英文标识 (Optional) */
	Idc string `json:"idc"`

	/* 机房名称 (Optional) */
	IdcName string `json:"idcName"`

	/* 房间号 (Optional) */
	RoomNo string `json:"roomNo"`
}

type Statistic

type Statistic struct {

	/* 最大值 (Optional) */
	Max float64 `json:"max"`

	/* 最小值 (Optional) */
	Min float64 `json:"min"`

	/* 平均值 (Optional) */
	Avg float64 `json:"avg"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL