payload

package
v3.4.25 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm added in v3.2.5

type Alarm struct {
	Product string `json:"product,omitempty"`
	Device  string `json:"device,omitempty"`
	Type    string `json:"type,omitempty"`
	Title   string `json:"title,omitempty"`
	Message string `json:"message,omitempty"`
	Level   uint   `json:"level,omitempty"`
}

type DeviceProperties

type DeviceProperties struct {
	Id         string     `json:"id"`
	Time       int64      `json:"time,omitempty"`
	Properties []Property `json:"properties"`
}

type DevicePropertyUp

type DevicePropertyUp struct {
	DeviceProperties
	//子设备
	Devices []DeviceProperties `json:"devices,omitempty"`
}

type Event

type Event struct {
	Id      string         `json:"id"`
	Name    string         `json:"name"`
	Title   string         `json:"title"`
	Message string         `json:"message,omitempty"`
	Output  map[string]any `json:"output"`
}

type Hash

type Hash map[string]any

type Notify added in v3.3.3

type Notify struct {
	Alarm
	User      string `json:"user,omitempty"`
	Email     string `json:"email,omitempty"`
	Cellphone string `json:"cellphone,omitempty"`
}

type Property

type Property struct {
	Name  string `json:"name"`
	Time  int64  `json:"time,omitempty"`
	Value any    `json:"value"`
}

Jump to

Keyboard shortcuts

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