model

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmEvent

type AlarmEvent struct {
	nf.Event `json:"-"`
	Status   Status          `json:"status"`
	ID       ID              `json:"id"`
	Fields   util.JSONObject `json:"fields,omitempty"`
}

func (*AlarmEvent) FieldBool

func (ae *AlarmEvent) FieldBool(key string) bool

func (*AlarmEvent) FieldFloat64

func (ae *AlarmEvent) FieldFloat64(key string) float64

func (*AlarmEvent) FieldInt

func (ae *AlarmEvent) FieldInt(key string) int

func (*AlarmEvent) FieldInt64

func (ae *AlarmEvent) FieldInt64(key string) int64

func (*AlarmEvent) FieldString

func (ae *AlarmEvent) FieldString(key string) string

type Field

type Field struct {
	Key   string
	Value interface{}
}

type ID

type ID string

type Status

type Status string

Jump to

Keyboard shortcuts

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