data

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataTypeAlertRule        = "AlertRule"
	DataTypeAlertChannel     = "AlertChannel"
	DataTypeAlertEmailServer = "EmailServer"
)

Variables

This section is empty.

Functions

func InitAPI

func InitAPI()

Types

type DataAPI

type DataAPI struct {
	core.Handler
}

type ExportData

type ExportData struct {
	Version string        `json:"version,omitempty"`
	Type    string        `json:"type"`
	Data    []interface{} `json:"data"`
}

type ExportDataRequest

type ExportDataRequest struct {
	Metadatas []ExportMetadata `json:"metadatas"`
}

type ExportMetadata

type ExportMetadata struct {
	Type   string      `json:"type"`
	Filter interface{} `json:"filter,omitempty"`
}

Jump to

Keyboard shortcuts

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