payload

package
v4.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT 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

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

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