27 lines
606 B
Go
27 lines
606 B
Go
/* Copyright © INFINI Ltd. All rights reserved.
|
|
* Web: https://infinilabs.com
|
|
* Email: hello#infini.ltd */
|
|
|
|
package data
|
|
|
|
type ExportDataRequest struct {
|
|
Metadatas []ExportMetadata `json:"metadatas"`
|
|
}
|
|
|
|
type ExportMetadata struct {
|
|
Type string `json:"type"`
|
|
Filter interface{} `json:"filter,omitempty"`
|
|
}
|
|
|
|
type ExportData struct {
|
|
Version string `json:"version,omitempty"`
|
|
Type string `json:"type"`
|
|
Data []interface{} `json:"data"`
|
|
}
|
|
|
|
const (
|
|
DataTypeAlertRule = "AlertRule"
|
|
DataTypeAlertChannel = "AlertChannel"
|
|
DataTypeAlertEmailServer = "EmailServer"
|
|
)
|