Documentation ¶
Index ¶
- type AddEvent
- type AddLog
- type AgentConfigObject
- type AgentDevicesCommandsObject
- func (m *AgentDevicesCommandsObject) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AgentDevicesCommandsObject) MarshalBinary() ([]byte, error)
- func (m *AgentDevicesCommandsObject) UnmarshalBinary(b []byte) error
- func (m *AgentDevicesCommandsObject) Validate(formats strfmt.Registry) error
- type AgentDevicesCommandsObjectDevicesItems0
- func (m *AgentDevicesCommandsObjectDevicesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AgentDevicesCommandsObjectDevicesItems0) MarshalBinary() ([]byte, error)
- func (m *AgentDevicesCommandsObjectDevicesItems0) UnmarshalBinary(b []byte) error
- func (m *AgentDevicesCommandsObjectDevicesItems0) Validate(formats strfmt.Registry) error
- type CommandObject
- type CommandObjectTagsItems0
- func (m *CommandObjectTagsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CommandObjectTagsItems0) MarshalBinary() ([]byte, error)
- func (m *CommandObjectTagsItems0) UnmarshalBinary(b []byte) error
- func (m *CommandObjectTagsItems0) Validate(formats strfmt.Registry) error
- type CommandStatus
- type ConfigObject
- type DeviceConfigObject
- type DeviceConfigVersionedObject
- func (m *DeviceConfigVersionedObject) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DeviceConfigVersionedObject) MarshalBinary() ([]byte, error)
- func (m *DeviceConfigVersionedObject) UnmarshalBinary(b []byte) error
- func (m *DeviceConfigVersionedObject) Validate(formats strfmt.Registry) error
- type DriverConfigObject
- type ErrorResponse
- type PatchCommandStatus
- type TagConfigObject
- type TagTypeObject
- type TagValueObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddEvent ¶
type AddEvent struct { // tags // Required: true // Max Items: 60 // Min Items: 0 Tags []*TagValueObject `json:"tags"` }
AddEvent add event
swagger:model AddEvent
func (*AddEvent) ContextValidate ¶
ContextValidate validate this add event based on the context it is used
func (*AddEvent) MarshalBinary ¶
MarshalBinary interface implementation
func (*AddEvent) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AddLog ¶
type AddLog struct { // level // Example: 1 // Required: true Level *uint8 `json:"level"` // message // Example: example message // Required: true Message *string `json:"message"` }
AddLog add log
swagger:model AddLog
func (*AddLog) ContextValidate ¶
ContextValidate validates this add log based on context it is used
func (*AddLog) MarshalBinary ¶
MarshalBinary interface implementation
func (*AddLog) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AgentConfigObject ¶
type AgentConfigObject struct { // config id // Example: 1 ConfigID *int64 `json:"config_id,omitempty"` // devices // Required: true Devices []*DeviceConfigObject `json:"devices"` // id // Example: 1 // Required: true ID *int64 `json:"id"` // name // Example: some_agent // Required: true Name *string `json:"name"` // tag // Required: true Tag *TagConfigObject `json:"tag"` }
AgentConfigObject agent config object
swagger:model AgentConfigObject
func (*AgentConfigObject) ContextValidate ¶
ContextValidate validate this agent config object based on the context it is used
func (*AgentConfigObject) MarshalBinary ¶
func (m *AgentConfigObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AgentConfigObject) UnmarshalBinary ¶
func (m *AgentConfigObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AgentDevicesCommandsObject ¶
type AgentDevicesCommandsObject struct { // command Command *CommandObject `json:"command,omitempty"` // devices // Required: true Devices []*AgentDevicesCommandsObjectDevicesItems0 `json:"devices"` }
AgentDevicesCommandsObject agent devices commands object
swagger:model AgentDevicesCommandsObject
func (*AgentDevicesCommandsObject) ContextValidate ¶
func (m *AgentDevicesCommandsObject) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this agent devices commands object based on the context it is used
func (*AgentDevicesCommandsObject) MarshalBinary ¶
func (m *AgentDevicesCommandsObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AgentDevicesCommandsObject) UnmarshalBinary ¶
func (m *AgentDevicesCommandsObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AgentDevicesCommandsObjectDevicesItems0 ¶
type AgentDevicesCommandsObjectDevicesItems0 struct { // command // Required: true Command *CommandObject `json:"command"` // device id // Example: 1 // Required: true DeviceID *int64 `json:"device_id"` }
AgentDevicesCommandsObjectDevicesItems0 agent devices commands object devices items0
swagger:model AgentDevicesCommandsObjectDevicesItems0
func (*AgentDevicesCommandsObjectDevicesItems0) ContextValidate ¶
func (m *AgentDevicesCommandsObjectDevicesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this agent devices commands object devices items0 based on the context it is used
func (*AgentDevicesCommandsObjectDevicesItems0) MarshalBinary ¶
func (m *AgentDevicesCommandsObjectDevicesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AgentDevicesCommandsObjectDevicesItems0) UnmarshalBinary ¶
func (m *AgentDevicesCommandsObjectDevicesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CommandObject ¶
type CommandObject struct { // Timestamp with microseconds precision // Example: 1257894000000000 // Required: true CreatedAt *int64 `json:"created_at"` // id // Example: some-id // Required: true ID *string `json:"id"` // reason // Example: Failed to send command Reason *string `json:"reason,omitempty"` // status // Required: true Status *CommandStatus `json:"status"` // tags // Required: true Tags []*CommandObjectTagsItems0 `json:"tags"` // Timestamp with microseconds precision // Example: 1257894000000000 // Required: true UpdatedAt *int64 `json:"updated_at"` }
CommandObject command object
swagger:model CommandObject
func (*CommandObject) ContextValidate ¶
ContextValidate validate this command object based on the context it is used
func (*CommandObject) MarshalBinary ¶
func (m *CommandObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommandObject) UnmarshalBinary ¶
func (m *CommandObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CommandObjectTagsItems0 ¶
type CommandObjectTagsItems0 struct { // tag id // Example: 1 // Required: true TagID *int64 `json:"tag_id"` // value // Example: true // Required: true Value interface{} `json:"value"` }
CommandObjectTagsItems0 command object tags items0
swagger:model CommandObjectTagsItems0
func (*CommandObjectTagsItems0) ContextValidate ¶
func (m *CommandObjectTagsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this command object tags items0 based on context it is used
func (*CommandObjectTagsItems0) MarshalBinary ¶
func (m *CommandObjectTagsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommandObjectTagsItems0) UnmarshalBinary ¶
func (m *CommandObjectTagsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CommandStatus ¶
type CommandStatus string
CommandStatus command status
swagger:model CommandStatus
const ( // CommandStatusNew captures enum value "new" CommandStatusNew CommandStatus = "new" // CommandStatusSending captures enum value "sending" CommandStatusSending CommandStatus = "sending" // CommandStatusSent captures enum value "sent" CommandStatusSent CommandStatus = "sent" // CommandStatusReceived captures enum value "received" CommandStatusReceived CommandStatus = "received" // CommandStatusSkipped captures enum value "skipped" CommandStatusSkipped CommandStatus = "skipped" // CommandStatusDone captures enum value "done" CommandStatusDone CommandStatus = "done" // CommandStatusFailed captures enum value "failed" CommandStatusFailed CommandStatus = "failed" )
func NewCommandStatus ¶
func NewCommandStatus(value CommandStatus) *CommandStatus
func (CommandStatus) ContextValidate ¶
ContextValidate validates this command status based on context it is used
type ConfigObject ¶
type ConfigObject struct { // agent // Required: true Agent *AgentConfigObject `json:"agent"` // version // Example: v1 // Required: true Version *string `json:"version"` }
ConfigObject config object
swagger:model ConfigObject
func (*ConfigObject) ContextValidate ¶
ContextValidate validate this config object based on the context it is used
func (*ConfigObject) MarshalBinary ¶
func (m *ConfigObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ConfigObject) UnmarshalBinary ¶
func (m *ConfigObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeviceConfigObject ¶
type DeviceConfigObject struct { // config id // Example: 1 ConfigID *int64 `json:"config_id,omitempty"` // driver // Required: true Driver *DriverConfigObject `json:"driver"` // Non typed dictionary for setting template. Deprecated, use driver_config in tags // Example: {"key":"value"} DriverConfig interface{} `json:"driver_config,omitempty"` // id // Example: 1 // Required: true ID *int64 `json:"id"` // name // Example: some_device // Required: true Name *string `json:"name"` // tag // Required: true Tag *TagConfigObject `json:"tag"` }
DeviceConfigObject device config object
swagger:model DeviceConfigObject
func (*DeviceConfigObject) ContextValidate ¶
ContextValidate validate this device config object based on the context it is used
func (*DeviceConfigObject) MarshalBinary ¶
func (m *DeviceConfigObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeviceConfigObject) UnmarshalBinary ¶
func (m *DeviceConfigObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeviceConfigVersionedObject ¶
type DeviceConfigVersionedObject struct { // Creation timestamp with microseconds precision // Example: 1257894000000000 CreatedAt *int64 `json:"created_at,omitempty"` // Non typed dictionary for device settings // Example: {"key":"value"} DeviceConfig interface{} `json:"device_config,omitempty"` // device id // Example: 1 // Required: true DeviceID *int64 `json:"device_id"` // id // Example: 1 // Required: true ID *int64 `json:"id"` }
DeviceConfigVersionedObject device config versioned object
swagger:model DeviceConfigVersionedObject
func (*DeviceConfigVersionedObject) ContextValidate ¶
func (m *DeviceConfigVersionedObject) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this device config versioned object based on context it is used
func (*DeviceConfigVersionedObject) MarshalBinary ¶
func (m *DeviceConfigVersionedObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeviceConfigVersionedObject) UnmarshalBinary ¶
func (m *DeviceConfigVersionedObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DriverConfigObject ¶
type DriverConfigObject struct { // id // Example: 1 // Required: true ID *int64 `json:"id"` // name // Example: modbus driver // Required: true Name *string `json:"name"` // protocol // Example: modbus Protocol *string `json:"protocol,omitempty"` }
DriverConfigObject driver config object
swagger:model DriverConfigObject
func (*DriverConfigObject) ContextValidate ¶
ContextValidate validates this driver config object based on context it is used
func (*DriverConfigObject) MarshalBinary ¶
func (m *DriverConfigObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DriverConfigObject) UnmarshalBinary ¶
func (m *DriverConfigObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ErrorResponse ¶
type ErrorResponse struct { // code // Example: 300 Code int64 `json:"code,omitempty"` // message // Example: Something bad happens. Message string `json:"message,omitempty"` }
ErrorResponse error response
swagger:model ErrorResponse
func (*ErrorResponse) ContextValidate ¶
ContextValidate validates this error response based on context it is used
func (*ErrorResponse) MarshalBinary ¶
func (m *ErrorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ErrorResponse) UnmarshalBinary ¶
func (m *ErrorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PatchCommandStatus ¶
type PatchCommandStatus struct { // reason // Example: Failed to send command Reason *string `json:"reason,omitempty"` // status // Required: true Status *CommandStatus `json:"status"` // Timestamp with microseconds precision // Example: 1257894000000000 Timestamp *int64 `json:"timestamp,omitempty"` }
PatchCommandStatus patch command status
swagger:model PatchCommandStatus
func (*PatchCommandStatus) ContextValidate ¶
ContextValidate validate this patch command status based on the context it is used
func (*PatchCommandStatus) MarshalBinary ¶
func (m *PatchCommandStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PatchCommandStatus) UnmarshalBinary ¶
func (m *PatchCommandStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TagConfigObject ¶
type TagConfigObject struct { // Non typed dictionary for user defined data. // Example: {"key":"value"} Attrs interface{} `json:"attrs,omitempty"` // children // Example: [] Children []*TagConfigObject `json:"children"` // Non typed dictionary for setting template. // Example: {"key":"value"} DriverConfig interface{} `json:"driver_config,omitempty"` // id // Example: 1 // Required: true ID *int64 `json:"id"` // name // Example: some_tag // Required: true Name *string `json:"name"` // properties // Example: {"a":"b"} // Required: true Properties interface{} `json:"properties"` // type // Required: true Type *TagTypeObject `json:"type"` }
TagConfigObject tag config object
swagger:model TagConfigObject
func (*TagConfigObject) ContextValidate ¶
ContextValidate validate this tag config object based on the context it is used
func (*TagConfigObject) MarshalBinary ¶
func (m *TagConfigObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TagConfigObject) UnmarshalBinary ¶
func (m *TagConfigObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TagTypeObject ¶
type TagTypeObject struct { // id // Example: 1 ID *int64 `json:"id,omitempty"` // name // Example: undefined Name *string `json:"name,omitempty"` }
TagTypeObject tag type object
swagger:model TagTypeObject
func (*TagTypeObject) ContextValidate ¶
ContextValidate validates this tag type object based on context it is used
func (*TagTypeObject) MarshalBinary ¶
func (m *TagTypeObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TagTypeObject) UnmarshalBinary ¶
func (m *TagTypeObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TagValueObject ¶
type TagValueObject struct { // id // Example: 1 // Required: true ID *int64 `json:"id"` // Timestamp with microseconds precision // Example: 1257894000000000 // Required: true Timestamp *int64 `json:"timestamp"` // Value of the tag // Example: 1 // Required: true Value interface{} `json:"value"` }
TagValueObject tag value object
swagger:model TagValueObject
func (*TagValueObject) ContextValidate ¶
ContextValidate validates this tag value object based on context it is used
func (*TagValueObject) MarshalBinary ¶
func (m *TagValueObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TagValueObject) UnmarshalBinary ¶
func (m *TagValueObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- add_event.go
- add_log.go
- agent_config_object.go
- agent_devices_commands_object.go
- command_object.go
- command_status.go
- config_object.go
- device_config_object.go
- device_config_versioned_object.go
- driver_config_object.go
- error_response.go
- patch_command_status.go
- tag_config_object.go
- tag_type_object.go
- tag_value_object.go