model

package
v0.1.112 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDeviceAlarmArrayObject

type GetDeviceAlarmArrayObject struct {

	// 设备告警记录ID
	Id *string `json:"id,omitempty"`

	// 设备告警名称
	Name *string `json:"name,omitempty"`

	// 设备告警ID
	AlarmId *int32 `json:"alarm_id,omitempty"`

	// 设备告警等级,紧急告警(critical),严重告警(major),一般告警(minor)
	Level *string `json:"level,omitempty"`

	// 设备平台
	Platform *string `json:"platform,omitempty"`

	// 设备告警的影响
	Impact *string `json:"impact,omitempty"`

	// 设备告警详情内容
	Detail *string `json:"detail,omitempty"`

	// 设备告警原因
	Reason *string `json:"reason,omitempty"`

	// 设备告警处理建议
	DealSuggestion *string `json:"deal_suggestion,omitempty"`

	// 创建时间(时间戳)
	CreateTime *int64 `json:"create_time,omitempty"`
}

GetDeviceAlarmArrayObject 设备告警实体列表

func (GetDeviceAlarmArrayObject) String

func (o GetDeviceAlarmArrayObject) String() string

type GetDevicesListArrayObject

type GetDevicesListArrayObject struct {

	// 设备ID
	Id *string `json:"id,omitempty"`

	// 设备名称
	Name *string `json:"name,omitempty"`

	// 设备类型
	Type *string `json:"type,omitempty"`

	// 设备状态(0:离线;1:在线)
	Status *int32 `json:"status,omitempty"`

	// cpu核数
	Cpu *int32 `json:"cpu,omitempty"`

	// 内存大小
	Memory *int32 `json:"memory,omitempty"`

	// 操作系统
	Os *string `json:"os,omitempty"`

	// 固件名称
	FirmwareName *string `json:"firmware_name,omitempty"`

	// 固件版本
	FirmwareVersion *string `json:"firmware_version,omitempty"`

	// 固件状态(1:更新中,2:更新失败,3:更新成功)
	FirmwareStatus *int32 `json:"firmware_status,omitempty"`

	// 固件更新失败原因
	FirmwareCause *string `json:"firmware_cause,omitempty"`

	// 设备数据存储路径,该桶需要和当前region匹配
	Path *string `json:"path,omitempty"`

	// 设备数据存储路径更新状态(0:更新成功,1:更新中)
	PathUpdateStatus *int32 `json:"path_update_status,omitempty"`

	// 设备数据存储路径更新失败原因
	PathUpdateCause *string `json:"path_update_cause,omitempty"`

	// 创建时间(时间戳)
	CreateTime *int64 `json:"create_time,omitempty"`

	// 更新时间(时间戳)
	UpdateTime *int64 `json:"update_time,omitempty"`

	// IAM用户名
	UserTime *string `json:"user_time,omitempty"`

	// 计费资源码
	ResourceSpecCode *string `json:"resource_spec_code,omitempty"`

	// 云服务计费类型
	CloudServiceType *string `json:"cloud_service_type,omitempty"`

	// 激活内容
	ActiveContent *string `json:"active_content,omitempty"`

	// 激活状态(0:未激活,1:已激活且付费,2:已激活且免费,3:付费到期,4:已激活使用SN码,5:已激活30天免费,6:免费到期)
	ActiveFlag *int32 `json:"active_flag,omitempty"`

	// 关联设备的主题消息推送的URN地址
	TopicUrn *string `json:"topic_urn,omitempty"`
}

GetDevicesListArrayObject 设备实体列表

func (GetDevicesListArrayObject) String

func (o GetDevicesListArrayObject) String() string

type ListDeviceAlarmsRequest

type ListDeviceAlarmsRequest struct {

	// 查询的起始位置,取值范围为非负整数,默认为0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,取值范围1~100,默认为100
	Limit *int32 `json:"limit,omitempty"`

	// 设备ID
	DeviceId *string `json:"device_id,omitempty"`
}

ListDeviceAlarmsRequest Request Object

func (ListDeviceAlarmsRequest) String

func (o ListDeviceAlarmsRequest) String() string

type ListDeviceAlarmsResponse

type ListDeviceAlarmsResponse struct {

	// 满足条件的设备告警总数
	Total *int32 `json:"total,omitempty"`

	Data           *[]GetDeviceAlarmArrayObject `json:"data,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

ListDeviceAlarmsResponse Response Object

func (ListDeviceAlarmsResponse) String

func (o ListDeviceAlarmsResponse) String() string

type ListDevicesRequest

type ListDevicesRequest struct {

	// 查询的起始位置,取值范围为非负整数,默认为0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,取值范围1~100,默认为100
	Limit *int32 `json:"limit,omitempty"`

	// 设备名称,模糊匹配,只允许中英文、数字、下划线、中划线,长度1-60
	Name *string `json:"name,omitempty"`
}

ListDevicesRequest Request Object

func (ListDevicesRequest) String

func (o ListDevicesRequest) String() string

type ListDevicesResponse

type ListDevicesResponse struct {

	// 满足条件的设备总数
	Total *int32 `json:"total,omitempty"`

	Data           *[]GetDevicesListArrayObject `json:"data,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

ListDevicesResponse Response Object

func (ListDevicesResponse) String

func (o ListDevicesResponse) String() string

Jump to

Keyboard shortcuts

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