models

package
v0.0.0-...-bb0d4a4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerToken             = `default-token-used-in-server-side`
	DatetimeFormat          = `2006-01-02 15:04:05`
	DateFormatWithZone      = `2006-01-02 15:04:05 MST`
	Version                 = `1.0.0`
	SystemRole              = `SUB_SYSTEM`
	PlatformUser            = `SYS_PLATFORM`
	UrlPrefix               = "/monitor"
	RsaPemPath              = "/data/certs/rsa_key"
	LogMetricName           = "node_log_metric_monitor_value"
	DBMonitorMetricName     = "db_monitor_value"
	SPAlertMailKey          = "alert_mail"
	SPMetricTemplate        = "metric_template"
	SPServiceMetricTemplate = "service_metric_template"
	MetricWorkspaceService  = "all_object"
	MetricWorkspaceAll      = "any_object"
	DefaultActiveWindow     = "00:00-23:59"

	AlarmNotifyAutoMode   = "auto"
	AlarmNotifyManualMode = "manual"

	AuthTokenHeader = "Authorization"
)

Variables

View Source
var (
	ConfigFile string

	CoreUrl              string
	CoreJwtKey           string
	FiringCallback       string
	RecoverCallback      string
	SubSystemCode        string
	SubSystemKey         string
	DefaultMailReceiver  []string
	DefaultLocalTimeZone string
	PluginRunningMode    bool
	SmsParamMaxLength    int
	AlarmMailEnable      bool
	AgentManagerRemoteIp string
	NotifyTreeventEnable bool
)
View Source
var (
	LogIgnorePath         = []string{"/monitor/webhook", "export/ping/source"}
	LogParamIgnorePath    = []string{"/dashboard/newchart", "/dashboard/pie/chart", "/problem/query", "/problem/history"}
	DashboardIgnoreTagKey = []string{"job", "__name__"}
)
View Source
var GlobalSGDisplayNameMap = make(map[string]string)

Functions

func Aggregate

func Aggregate(data [][]float64, step int64, method string) [][]float64

func CalcData

func CalcData(data []float64, method string) float64

func GetCoreToken

func GetCoreToken() string

func InitConfig

func InitConfig(cfg string)

func InitCoreToken

func InitCoreToken()

func TransPluginMultiStringParam

func TransPluginMultiStringParam(input interface{}) []string

Types

type AMRespAlert

type AMRespAlert struct {
	Status       string            `json:"status"`
	Labels       map[string]string `json:"labels"`
	Annotations  map[string]string `json:"annotations"`
	StartsAt     time.Time         `json:"startsAt"`
	EndsAt       time.Time         `json:"endsAt"`
	GeneratorURL string            `json:"generatorURL"`
	Fingerprint  string            `json:"fingerprint"`
}

type AcceptObj

type AcceptObj struct {
	Employ []string `json:"employ"`
}

type AgentConfig

type AgentConfig struct {
	AgentType  string `json:"agent_type"`
	AgentBin   string `json:"agent_bin"`
	Port       string `json:"port"`
	User       string `json:"user"`
	Password   string `json:"password"`
	ConfigFile string `json:"config_file"`
}

type AgentManagerTable

type AgentManagerTable struct {
	EndpointGuid    string `json:"endpoint_guid"`
	Name            string `json:"name"`
	User            string `json:"user"`
	Password        string `json:"password"`
	InstanceAddress string `json:"instance_address"`
	AgentAddress    string `json:"agent_address"`
	ConfigFile      string `json:"config_file"`
	BinPath         string `json:"bin_path"`
	AgentRemotePort string `json:"agent_remote_port"`
}

type AlarmCloseParam

type AlarmCloseParam struct {
	Id       int    `json:"id"`
	Custom   bool   `json:"custom"`
	Metric   string `json:"metric"`
	Priority string `json:"priority"`
}

type AlarmCustomTable

type AlarmCustomTable struct {
	Id           int       `json:"id"`
	AlertInfo    string    `json:"alert_info"`
	AlertIp      string    `json:"alert_ip"`
	AlertLevel   int       `json:"alert_level"`
	AlertObj     string    `json:"alert_obj"`
	AlertTitle   string    `json:"alert_title"`
	AlertReciver string    `json:"alert_reciver"`
	RemarkInfo   string    `json:"remark_info"`
	SubSystemId  string    `json:"sub_system_id"`
	Closed       int       `json:"closed"`
	UpdateAt     time.Time `json:"update_at"`
}

type AlarmEndpointObj

type AlarmEndpointObj struct {
	Id        string      `json:"id"`
	Guid      string      `json:"guid"`
	Type      string      `json:"type"`
	GroupsIds string      `json:"groups_ids"`
	Tags      string      `json:"tags"`
	Groups    []*GrpTable `json:"groups"`
}

type AlarmEndpointQuery

type AlarmEndpointQuery struct {
	Search    string
	Page      int
	Size      int
	Grp       int
	Result    []*AlarmEndpointObj
	ResultNum int
}

type AlarmEntity

type AlarmEntity struct {
	Status  string            `json:"status"`
	Message string            `json:"message"`
	Data    []*AlarmEntityObj `json:"data"`
}

type AlarmEntityObj

type AlarmEntityObj struct {
	Id          string `json:"id"`
	DisplayName string `json:"displayName"`
	Status      string `json:"status"`
	Subject     string `json:"subject"`
	Content     string `json:"content"`
	SmsContent  string `json:"smsContent"`
	To          string `json:"to"`
	ToMail      string `json:"toMail"`
	ToPhone     string `json:"toPhone"`
	ToRole      string `json:"toRole"`
}

type AlarmEventEntity

type AlarmEventEntity struct {
	Status  string                 `json:"status"`
	Message string                 `json:"message"`
	Data    []*AlarmEventEntityObj `json:"data"`
}

type AlarmEventEntityObj

type AlarmEventEntityObj struct {
	Id          string `json:"id"`
	DisplayName string `json:"displayName"`
	Handler     string `json:"handler"`
	HandleRole  string `json:"handleRole"`
	Content     string `json:"content"`
	Priority    string `json:"priority"`
	Message     string `json:"message"`
	StartTime   string `json:"startTime"`
}

type AlarmHandleObj

type AlarmHandleObj struct {
	AlarmTable
	NotifyEnable int `json:"notify_enable"`
	NotifyDelay  int `json:"notify_delay"`
}

type AlarmHistoryReturnData

type AlarmHistoryReturnData struct {
	Endpoint    string           `json:"endpoint"`
	ProblemList AlarmProblemList `json:"problem_list"`
}

type AlarmNotifyTable

type AlarmNotifyTable struct {
	Id                int       `json:"id" xorm:"id"`
	AlarmId           int       `json:"alarm_id" xorm:"alarm_id"`
	NotifyId          string    `json:"notify_id" xorm:"notify_id"`
	Endpoint          string    `json:"endpoint" xorm:"endpoint"`
	Metric            string    `json:"metric" xorm:"metric"`
	Status            string    `json:"status" xorm:"status"`
	ProcDefKey        string    `json:"proc_def_key" xorm:"proc_def_key"`
	ProcDefName       string    `json:"proc_def_name" xorm:"proc_def_name"`
	NotifyDescription string    `json:"notify_description" xorm:"notify_description"`
	ProcInsId         string    `json:"proc_ins_id" xorm:"proc_ins_id"`
	CreatedUser       string    `json:"created_user" xorm:"created_user"`
	CreatedTime       time.Time `json:"created_time" xorm:"created_time"`
	UpdatedTime       time.Time `json:"updated_time" xorm:"updated_time"`
}

type AlarmProblemCountList

type AlarmProblemCountList []*AlarmProblemCountObj

func (AlarmProblemCountList) Len

func (s AlarmProblemCountList) Len() int

func (AlarmProblemCountList) Less

func (s AlarmProblemCountList) Less(i, j int) bool

func (AlarmProblemCountList) Swap

func (s AlarmProblemCountList) Swap(i, j int)

type AlarmProblemCountObj

type AlarmProblemCountObj struct {
	Name       string `json:"name"`
	Type       string `json:"type"`
	Value      int    `json:"value"`
	FilterType string `json:"filterType"`
}

type AlarmProblemList

type AlarmProblemList []*AlarmProblemQuery

func (AlarmProblemList) Len

func (s AlarmProblemList) Len() int

func (AlarmProblemList) Less

func (s AlarmProblemList) Less(i, j int) bool

func (AlarmProblemList) Swap

func (s AlarmProblemList) Swap(i, j int)

type AlarmProblemQuery

type AlarmProblemQuery struct {
	Id                 int       `json:"id"`
	StrategyId         int       `json:"strategy_id"`
	Endpoint           string    `json:"endpoint"`
	Status             string    `json:"status"`
	SMetric            string    `json:"s_metric"`
	SExpr              string    `json:"s_expr"`
	SCond              string    `json:"s_cond"`
	SLast              string    `json:"s_last"`
	SPriority          string    `json:"s_priority"`
	Content            string    `json:"content"`
	Tags               string    `json:"tags"`
	StartValue         float64   `json:"start_value"`
	Start              time.Time `json:"start"`
	StartString        string    `json:"start_string"`
	EndValue           float64   `json:"end_value"`
	End                time.Time `json:"end"`
	EndString          string    `json:"end_string"`
	IsLogMonitor       bool      `json:"is_log_monitor"`
	Path               string    `json:"path"`
	Keyword            string    `json:"keyword"`
	IsCustom           bool      `json:"is_custom"`
	CloseType          string    `json:"close_type"`
	CloseMsg           string    `json:"close_msg"`
	CloseUser          string    `json:"close_user"`
	CustomMessage      string    `json:"custom_message"`
	EndpointTags       string    `json:"endpoint_tags"`
	AlarmStrategy      string    `json:"alarm_strategy"`
	Title              string    `json:"title"`
	SystemId           string    `json:"system_id"`
	NotifyId           string    `json:"notify_id"`
	NotifyMessage      string    `json:"notify_message"`
	NotifyCallbackName string    `json:"notify_callback_name"`
	NotifyStatus       string    `json:"notify_status"`
	AlarmObjName       string    `json:"alarm_obj_name"`
}

type AlarmProblemQueryResult

type AlarmProblemQueryResult struct {
	Data  AlarmProblemList        `json:"data"`
	High  int                     `json:"high"`
	Mid   int                     `json:"mid"`
	Low   int                     `json:"low"`
	Count []*AlarmProblemCountObj `json:"count"`
	Page  *PageInfo               `json:"page"`
}

type AlarmStrategyMetricObj

type AlarmStrategyMetricObj struct {
	Guid              string `json:"guid" xorm:"guid"`
	EndpointGroup     string `json:"endpoint_group" xorm:"endpoint_group"`
	Metric            string `json:"metric" xorm:"metric"`
	Condition         string `json:"condition" xorm:"condition"`
	Last              string `json:"last" xorm:"last"`
	Priority          string `json:"priority" xorm:"priority"`
	Content           string `json:"content" xorm:"content"`
	NotifyEnable      int    `json:"notify_enable" xorm:"notify_enable"`
	NotifyDelaySecond int    `json:"notify_delay_second" xorm:"notify_delay_second"`
	UpdateTime        string `json:"update_time" xorm:"update_time"`
	MetricName        string `json:"metric_name" json:"metric_name"`
	MetricExpr        string `json:"metric_expr" json:"metric_expr"`
	MetricType        string `json:"metric_type" json:"metric_type"`
	ActiveWindow      string `json:"active_window" xorm:"active_window"`
}

type AlarmStrategyTable

type AlarmStrategyTable struct {
	Guid              string `json:"guid" xorm:"guid"`
	EndpointGroup     string `json:"endpoint_group" xorm:"endpoint_group"`
	Metric            string `json:"metric" xorm:"metric"`
	Condition         string `json:"condition" xorm:"condition"`
	Last              string `json:"last" xorm:"last"`
	Priority          string `json:"priority" xorm:"priority"`
	Content           string `json:"content" xorm:"content"`
	NotifyEnable      int    `json:"notify_enable" xorm:"notify_enable"`
	NotifyDelaySecond int    `json:"notify_delay_second" xorm:"notify_delay_second"`
	ActiveWindow      string `json:"active_window" xorm:"active_window"`
	UpdateTime        string `json:"update_time" xorm:"update_time"`
}

type AlarmTable

type AlarmTable struct {
	Id            int       `json:"id"`
	StrategyId    int       `json:"strategy_id"`
	Endpoint      string    `json:"endpoint"`
	Status        string    `json:"status"`
	SMetric       string    `json:"s_metric"`
	SExpr         string    `json:"s_expr"`
	SCond         string    `json:"s_cond"`
	SLast         string    `json:"s_last"`
	SPriority     string    `json:"s_priority"`
	Content       string    `json:"content"`
	Tags          string    `json:"tags"`
	StartValue    float64   `json:"start_value"`
	Start         time.Time `json:"start"`
	EndValue      float64   `json:"end_value"`
	End           time.Time `json:"end"`
	CloseType     string    `json:"close_type"`
	CloseMsg      string    `json:"close_msg"`
	CloseUser     string    `json:"close_user"`
	CustomMessage string    `json:"custom_message"`
	EndpointTags  string    `json:"endpoint_tags"`
	AlarmStrategy string    `json:"alarm_strategy"`
	NotifyId      string    `json:"notify_id"`
}

type AlertConfig

type AlertConfig struct {
	Enable bool            `json:"enable"`
	Mail   AlertMailConfig `json:"mail"`
}

type AlertMailConfig

type AlertMailConfig struct {
	Enable   bool   `json:"enable"`
	Protocol string `json:"protocol"`
	Tls      bool   `json:"tls"`
	Sender   string `json:"sender"`
	User     string `json:"user"`
	Password string `json:"password"`
	Server   string `json:"server"`
	Token    string `json:"token"`
}

type AlertWindowObj

type AlertWindowObj struct {
	Start    string   `json:"start"`
	End      string   `json:"end"`
	TimeList []string `json:"time_list"`
	Weekday  string   `json:"weekday"`
}

type AlertWindowParam

type AlertWindowParam struct {
	Endpoint string            `json:"endpoint" binding:"required"`
	Data     []*AlertWindowObj `json:"data"`
}

type AlertWindowTable

type AlertWindowTable struct {
	Id         int    `json:"id"`
	Endpoint   string `json:"endpoint"`
	Start      string `json:"start"`
	End        string `json:"end"`
	Weekday    string `json:"weekday"`
	UpdateUser string `json:"update_user"`
}

type AliveCheckQueueTable

type AliveCheckQueueTable struct {
	Id      int    `json:"id"`
	Message string `json:"message"`
}

type AlterManagerRespObj

type AlterManagerRespObj struct {
	Receiver          string            `json:"receiver"`
	Status            string            `json:"status"`
	Alerts            []AMRespAlert     `json:"alerts"`
	GroupLabels       map[string]string `json:"groupLabels"`
	CommonLabels      map[string]string `json:"commonLabels"`
	CommonAnnotations map[string]string `json:"commonAnnotations"`
	ExternalURL       string            `json:"externalURL"`
	Version           string            `json:"version"`
	GroupKey          string            `json:"groupKey"`
}

type ArchiveMysqlConfig

type ArchiveMysqlConfig struct {
	Enable             string `json:"enable"`
	Type               string `json:"type"`
	Server             string `json:"server"`
	Port               string `json:"port"`
	User               string `json:"user"`
	Password           string `json:"password"`
	DataBase           string `json:"database"`
	DatabasePrefix     string `json:"database_prefix"`
	MaxOpen            int    `json:"maxOpen"`
	MaxIdle            int    `json:"maxIdle"`
	Timeout            int    `json:"timeout"`
	LocalStorageMaxDay int64  `json:"local_storage_max_day"`
	FiveMinStartDay    int64  `json:"five_min_start_day"`
}

type ArchiveQueryTable

type ArchiveQueryTable struct {
	Endpoint string  `json:"endpoint"`
	Metric   string  `json:"metric"`
	Tags     string  `json:"tags"`
	UnixTime int64   `json:"unix_time"`
	Value    float64 `json:"value"`
}

type BusinessAgentDto

type BusinessAgentDto struct {
	Path   string                      `json:"path"`
	Config []*BusinessMonitorCfgObj    `json:"config"`
	Custom []*BusinessMonitorCustomObj `json:"custom"`
}

type BusinessMetricObj

type BusinessMetricObj struct {
	Key     string `json:"key"`
	Metric  string `json:"metric"`
	Title   string `json:"title"`
	AggType string `json:"agg_type"`
}

type BusinessMonitorCfgObj

type BusinessMonitorCfgObj struct {
	Id           int                     `json:"id"`
	Regular      string                  `json:"regular"`
	Tags         string                  `json:"tags"`
	StringMap    []*BusinessStringMapObj `json:"string_map"`
	MetricConfig []*BusinessMetricObj    `json:"metric_config"`
}

type BusinessMonitorCfgTable

type BusinessMonitorCfgTable struct {
	Id                int    `json:"id"`
	BusinessMonitorId int    `json:"business_monitor_id"`
	Regular           string `json:"regular"`
	Tags              string `json:"tags"`
	StringMap         string `json:"string_map"`
	MetricConfig      string `json:"metric_config"`
	AggType           string `json:"agg_type"`
	ConfigType        string `json:"config_type"`
}

type BusinessMonitorCustomObj

type BusinessMonitorCustomObj struct {
	Id           int                     `json:"id"`
	Metric       string                  `json:"metric"`
	ValueRegular string                  `json:"value_regular"`
	AggType      string                  `json:"agg_type"`
	StringMap    []*BusinessStringMapObj `json:"string_map"`
}

type BusinessMonitorTable

type BusinessMonitorTable struct {
	Id            int    `json:"id"`
	EndpointId    int    `json:"endpoint_id"`
	Path          string `json:"path"`
	OwnerEndpoint string `json:"owner_endpoint"`
}

type BusinessStringMapObj

type BusinessStringMapObj struct {
	Key         string  `json:"key"`
	Regulation  string  `json:"regulation"`
	StringValue string  `json:"string_value"`
	IntValue    float64 `json:"int_value"`
}

type BusinessUpdateDto

type BusinessUpdateDto struct {
	EndpointId int                      `json:"endpoint_id" binding:"required"`
	PathList   []*BusinessUpdatePathObj `json:"path_list"`
}

type BusinessUpdatePathObj

type BusinessUpdatePathObj struct {
	Id            int                         `json:"id"`
	Path          string                      `json:"path"`
	OwnerEndpoint string                      `json:"owner_endpoint"`
	Rules         []*BusinessMonitorCfgObj    `json:"rules"`
	CustomMetrics []*BusinessMonitorCustomObj `json:"custom_metrics"`
}

type ButtonModel

type ButtonModel struct {
	Id               int            `json:"id"`
	GroupId          int            `json:"group_id"`
	Name             string         `json:"name"`
	BType            string         `json:"b_type"`
	BText            string         `json:"b_text"`
	RefreshPanels    bool           `json:"refresh_panels"`
	RefreshCharts    bool           `json:"refresh_charts"`
	OptionGroup      int            `json:"option_group"`
	RefreshButton    int            `json:"refresh_button"`
	RefreshButtonUrl string         `json:"refresh_button_url"`
	Options          []*OptionModel `json:"option"`
}

type CapacityServerConfig

type CapacityServerConfig struct {
	Server string `json:"server"`
	Port   string `json:"port"`
}

type Chart

type Chart struct {
	Endpoint []string     `json:"endpoint"`
	Metric   []string     `json:"metric"`
	Option   EChartOption `json:"option"`
}

type ChartConfigObj

type ChartConfigObj struct {
	Id                    int    `form:"id" json:"id"`
	Title                 string `form:"title" json:"title"`
	Endpoint              string `form:"endpoint" json:"endpoint"`
	Metric                string `form:"metric" json:"metric"`
	PromQl                string `form:"prom_ql" json:"prom_ql"`
	Start                 string `form:"start" json:"start"`
	End                   string `form:"end" json:"end"`
	Time                  string `form:"time" json:"time"`
	Aggregate             string `form:"agg" json:"agg"`
	CompareFirstStart     string `form:"compare_first_start" json:"compare_first_start"`
	CompareFirstEnd       string `form:"compare_first_end" json:"compare_first_end"`
	CompareSecondStart    string `form:"compare_second_start" json:"compare_second_start"`
	CompareSecondEnd      string `form:"compare_second_end" json:"compare_second_end"`
	AppObject             string `form:"app_object" json:"app_object"`
	AppObjectEndpointType string `form:"app_object_endpoint_type" json:"app_object_endpoint_type"`
}

type ChartModel

type ChartModel struct {
	Id          int      `json:"id"`
	Col         int      `json:"col"`
	Title       string   `json:"title"`
	Endpoint    []string `json:"endpoint"`
	Metric      []string `json:"metric"`
	Url         string   `json:"url"`
	Aggregate   string   `json:"aggregate"`
	MonitorType string   `json:"monitor_type"`
}

type ChartQueryCompareParam

type ChartQueryCompareParam struct {
	CompareFirstStart           string `json:"compare_first_start"`
	CompareFirstEnd             string `json:"compare_first_end"`
	CompareSecondStart          string `json:"compare_second_start"`
	CompareSecondEnd            string `json:"compare_second_end"`
	CompareFirstLegend          string `json:"compare_first_legend"`
	CompareSecondLegend         string `json:"compare_second_legend"`
	CompareSecondStartTimestamp int64  `json:"compare_second_start_timestamp"`
	CompareSecondEndTimestamp   int64  `json:"compare_second_end_timestamp"`
	CompareSubTime              int64  `json:"compare_sub_time"`
}

type ChartQueryConfigObj

type ChartQueryConfigObj struct {
	Endpoint     string `json:"endpoint"`
	Metric       string `json:"metric"`
	PromQl       string `json:"prom_ql"`
	AppObject    string `json:"app_object"`
	EndpointType string `json:"endpoint_type"`
}

type ChartQueryParam

type ChartQueryParam struct {
	ChartId    int                     `json:"chart_id"`
	Title      string                  `json:"title"`
	Unit       string                  `json:"unit"`
	Start      int64                   `json:"start"`
	End        int64                   `json:"end"`
	TimeSecond int64                   `json:"time_second"`
	Aggregate  string                  `json:"aggregate"`
	AggStep    int64                   `json:"agg_step"`
	Step       int                     `json:"step"`
	Data       []*ChartQueryConfigObj  `json:"data"`
	Compare    *ChartQueryCompareParam `json:"compare"`
}

type ChartTable

type ChartTable struct {
	Id         int    `json:"id"`
	GroupId    int    `json:"group_id"`
	Endpoint   string `json:"endpoint"`
	Metric     string `json:"metric"`
	Col        int    `json:"col"`
	Url        string `json:"url"`
	Unit       string `json:"unit"`
	Title      string `json:"title"`
	GridType   string `json:"grid_type"`
	SeriesName string `json:"series_name"`
	Rate       bool   `json:"rate"`
	AggType    string `json:"agg_type"`
	Legend     string `json:"legend"`
}

type CheckRegExpParam

type CheckRegExpParam struct {
	RegString   string `json:"reg_string" binding:"required"`
	TestContext string `json:"test_context" binding:"required"`
}

type ClusterAgentResponse

type ClusterAgentResponse struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

type ClusterTable

type ClusterTable struct {
	Id                 string `json:"id" binding:"required"`
	DisplayName        string `json:"display_name" binding:"required"`
	RemoteAgentAddress string `json:"remote_agent_address" binding:"required"`
	PromAddress        string `json:"prom_address" binding:"required"`
}

type ClusterTableNew

type ClusterTableNew struct {
	Guid               string `json:"guid" xorm:"guid" binding:"required"`
	DisplayName        string `json:"display_name" xorm:"display_name" binding:"required"`
	RemoteAgentAddress string `json:"remote_agent_address" xorm:"remote_agent_address" binding:"required"`
	PrometheusAddress  string `json:"prometheus_address" xorm:"prometheus_address" binding:"required"`
}

type ConsulServicesDto

type ConsulServicesDto struct {
	Name string `json:"name"`
}

type CoreJwtToken

type CoreJwtToken struct {
	User   string   `json:"user"`
	Expire int64    `json:"expire"`
	Roles  []string `json:"roles"`
}

type CoreNotifyRequest

type CoreNotifyRequest struct {
	EventSeqNo      string `json:"eventSeqNo"`
	EventType       string `json:"eventType"`
	SourceSubSystem string `json:"sourceSubSystem"`
	OperationKey    string `json:"operationKey"`
	OperationData   string `json:"operationData"`
	NotifyRequired  string `json:"notifyRequired"`
	NotifyEndpoint  string `json:"notifyEndpoint"`
	OperationUser   string `json:"operationUser"`
}

type CoreNotifyResult

type CoreNotifyResult struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

type CoreProcessDataObj

type CoreProcessDataObj struct {
	ProcDefId            string      `json:"procDefId"`
	ProcDefKey           string      `json:"procDefKey"`
	ProcDefName          string      `json:"procDefName"`
	ProcDefVersion       string      `json:"procDefVersion"`
	ProcDefData          string      `json:"procDefData"`
	RootEntity           interface{} `json:"rootEntity"`
	Status               string      `json:"status"`
	CreatedTime          string      `json:"createdTime"`
	RootEntityExpression string      `json:"rootEntityExpression"`
}

type CoreProcessResult

type CoreProcessResult struct {
	Status  string                `json:"status"`
	Message string                `json:"message"`
	Data    CoreProcessResultData `json:"data"`
}

type CoreProcessResultData

type CoreProcessResultData []*CoreProcessDataObj

func (CoreProcessResultData) Len

func (s CoreProcessResultData) Len() int

func (CoreProcessResultData) Less

func (s CoreProcessResultData) Less(i, j int) bool

func (CoreProcessResultData) Swap

func (s CoreProcessResultData) Swap(i, j int)

type CoreRequestToken

type CoreRequestToken struct {
	Sub        string `json:"sub"`
	Iat        int64  `json:"iat"`
	Type       string `json:"type"`
	ClientType string `json:"clientType"`
	Exp        int64  `json:"exp"`
	Authority  string `json:"authority"`
}

type CoreRoleDataObj

type CoreRoleDataObj struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Email       string `json:"email"`
	DisplayName string `json:"displayName"`
}

type CoreRoleDto

type CoreRoleDto struct {
	Status  string            `json:"status"`
	Message string            `json:"message"`
	Data    []CoreRoleDataObj `json:"data"`
}

type CoreVariableFilter

type CoreVariableFilter struct {
	Name     string `json:"name"`
	Operator string `json:"operator"`
	Value    string `json:"value"`
}

type CoreVariablePage

type CoreVariablePage struct {
	PageSize   int `json:"pageSize"`
	StartIndex int `json:"startIndex"`
}

type CoreVariableResultContentObj

type CoreVariableResultContentObj struct {
	DefaultValue string `json:"defaultValue"`
	Id           string `json:"id"`
	Name         string `json:"name"`
	PackageName  string `json:"packageName"`
	Scope        string `json:"scope"`
	Source       string `json:"source"`
	Status       string `json:"status"`
	Value        string `json:"value"`
}

type CoreVariableResultData

type CoreVariableResultData struct {
	Contents []*CoreVariableResultContentObj `json:"contents"`
}

type CornJobObj

type CornJobObj struct {
	Func     func()
	Interval int64
}

type CronJobConfig

type CronJobConfig struct {
	Enable   bool `json:"enable"`
	Interval int  `json:"interval"`
}

type CustomAlarmQueryParam

type CustomAlarmQueryParam struct {
	Enable bool
	Level  string
	Start  string
	End    string
	Status string
}

type CustomDashboardConfigObj

type CustomDashboardConfigObj struct {
	Query []*CustomDashboardConfigQueryObj `json:"query"`
}

type CustomDashboardConfigQueryObj

type CustomDashboardConfigQueryObj struct {
	Endpoint     string `json:"endpoint"`
	MetricLabel  string `json:"metricLabel"`
	Metric       string `json:"metric"`
	AppObject    string `json:"app_object"`
	EndpointType string `json:"endpoint_type"`
}

type CustomDashboardObj

type CustomDashboardObj struct {
	CustomDashboardTable
	PanelGroupList []string `json:"panel_group_list"`
}

type CustomDashboardQuery

type CustomDashboardQuery struct {
	Id             int       `json:"id"`
	Name           string    `json:"name"`
	PanelsGroup    int       `json:"panels_group"`
	Cfg            string    `json:"cfg"`
	Main           int       `json:"main"`
	CreateUser     string    `json:"create_user"`
	UpdateUser     string    `json:"update_user"`
	CreateAt       time.Time `json:"create_at"`
	UpdateAt       time.Time `json:"update_at"`
	MainPage       []string  `json:"main_page"`
	Permission     string    `json:"permission"`
	PanelGroups    string    `json:"panel_groups"`
	PanelGroupList []string  `json:"panel_group_list"`
}

type CustomDashboardRoleDto

type CustomDashboardRoleDto struct {
	DashboardId int `json:"dashboard_id" binding:"required"`
	//RoleId      []int `json:"role_id"`
	PermissionList []*CustomDashboardRoleObj `json:"permission_list"`
}

type CustomDashboardRoleObj

type CustomDashboardRoleObj struct {
	RoleId     int    `json:"role_id"`
	Permission string `json:"permission"`
}

type CustomDashboardTable

type CustomDashboardTable struct {
	Id          int       `json:"id"`
	Name        string    `json:"name"`
	PanelsGroup int       `json:"panels_group"`
	Cfg         string    `json:"cfg"`
	Main        int       `json:"main"`
	CreateUser  string    `json:"create_user"`
	UpdateUser  string    `json:"update_user"`
	CreateAt    time.Time `json:"create_at"`
	UpdateAt    time.Time `json:"update_at"`
	PanelGroups string    `json:"panel_groups"`
}

type CustomerDashboardRoleQuery

type CustomerDashboardRoleQuery struct {
	Id          int    `json:"id"`
	Name        string `json:"name"`
	DisplayName string `json:"display_name"`
	Permission  string `json:"permission"`
}

type Dashboard

type Dashboard struct {
	Search  SearchModel    `json:"search"`
	Buttons []*ButtonModel `json:"buttons"`
	Message MessageModel   `json:"message"`
	Panels  PanelsModel    `json:"panels"`
}

type DashboardTable

type DashboardTable struct {
	Id            int    `json:"id"`
	DashboardType string `json:"dashboard_type"`
	SearchEnable  bool   `json:"search_enable"`
	SearchId      int    `json:"search_id"`
	ButtonEnable  bool   `json:"button_enable"`
	ButtonGroup   int    `json:"button_group"`
	MessageEnable bool   `json:"message_enable"`
	MessageGroup  int    `json:"message_group"`
	MessageUrl    string `json:"message_url"`
	PanelsEnable  bool   `json:"panels_enable"`
	PanelsType    string `json:"panels_type"`
	PanelsGroup   int    `json:"panels_group"`
	PanelsParam   string `json:"panels_param"`
}

type DataSort

type DataSort [][]float64

func (DataSort) Len

func (s DataSort) Len() int

func (DataSort) Less

func (s DataSort) Less(i, j int) bool

func (DataSort) Swap

func (s DataSort) Swap(i, j int)

type DataSourceConfig

type DataSourceConfig struct {
	Env        string               `json:"env"`
	Servers    []*DatasourceServers `json:"servers"`
	DivideTime int64                `json:"divide_time"`
	WaitTime   int                  `json:"wait_time"`
}

type DatasourceServers

type DatasourceServers struct {
	Id    int    `json:"id"`
	Type  string `json:"type"`
	Env   string `json:"env"`
	Host  string `json:"host"`
	Token string `json:"token"`
}

type DbMetricEndpointRelTable

type DbMetricEndpointRelTable struct {
	Guid            string `json:"guid" xorm:"guid"`
	DbMetricMonitor string `json:"db_metric_monitor" xorm:"db_metric_monitor"`
	SourceEndpoint  string `json:"source_endpoint" xorm:"source_endpoint"`
	TargetEndpoint  string `json:"target_endpoint" xorm:"target_endpoint"`
}

type DbMetricMonitorObj

type DbMetricMonitorObj struct {
	Guid             string                      `json:"guid"`
	ServiceGroup     string                      `json:"service_group"`
	ServiceGroupName string                      `json:"service_group_name"`
	MetricSql        string                      `json:"metric_sql"`
	Metric           string                      `json:"metric"`
	DisplayName      string                      `json:"display_name"`
	Step             int64                       `json:"step"`
	MonitorType      string                      `json:"monitor_type"`
	EndpointRel      []*DbMetricEndpointRelTable `json:"endpoint_rel"`
}

type DbMetricMonitorQueryObj

type DbMetricMonitorQueryObj struct {
	Guid           string `json:"guid" xorm:"guid"`
	ServiceGroup   string `json:"service_group" xorm:"service_group"`
	MetricSql      string `json:"metric_sql" xorm:"metric_sql"`
	Metric         string `json:"metric" xorm:"metric"`
	DisplayName    string `json:"display_name" xorm:"display_name"`
	Step           int64  `json:"step" xorm:"step"`
	MonitorType    string `json:"monitor_type" xorm:"monitor_type"`
	SourceEndpoint string `json:"source_endpoint" xorm:"source_endpoint"`
	TargetEndpoint string `json:"target_endpoint" xorm:"target_endpoint"`
}

type DbMetricMonitorTable

type DbMetricMonitorTable struct {
	Guid         string `json:"guid" xorm:"guid"`
	ServiceGroup string `json:"service_group" xorm:"service_group"`
	MetricSql    string `json:"metric_sql" xorm:"metric_sql"`
	Metric       string `json:"metric" xorm:"metric"`
	DisplayName  string `json:"display_name" xorm:"display_name"`
	Step         int64  `json:"step" xorm:"step"`
	MonitorType  string `json:"monitor_type" xorm:"monitor_type"`
	UpdateTime   string `json:"update_time" xorm:"update_time"`
}

type DbMonitorConfigQuery

type DbMonitorConfigQuery struct {
	EndpointGuid    string `json:"endpoint_guid"`
	Name            string `json:"name"`
	Sql             string `json:"sql"`
	User            string `json:"user"`
	Password        string `json:"password"`
	InstanceAddress string `json:"instance_address"`
}

type DbMonitorListObj

type DbMonitorListObj struct {
	SysPanel      string            `json:"sys_panel"`
	SysPanelValue string            `json:"sys_panel_value"`
	Data          []*DbMonitorTable `json:"data"`
}

type DbMonitorSysNameDto

type DbMonitorSysNameDto struct {
	OldName    string `json:"old_name"`
	NewName    string `json:"new_name" binding:"required"`
	EndpointId int    `json:"endpoint_id" binding:"required"`
}

type DbMonitorTable

type DbMonitorTable struct {
	Id           int    `json:"id"`
	EndpointGuid string `json:"endpoint_guid"`
	Name         string `json:"name"`
	Sql          string `json:"sql"`
	SysPanel     string `json:"sys_panel"`
}

type DbMonitorTaskObj

type DbMonitorTaskObj struct {
	DbType       string `json:"db_type"`
	Endpoint     string `json:"endpoint"`
	Name         string `json:"name"`
	Server       string `json:"server"`
	Port         string `json:"port"`
	User         string `json:"user"`
	Password     string `json:"password"`
	Sql          string `json:"sql"`
	Step         int64  `json:"step"`
	ServiceGroup string `json:"service_group"`
}

type DbMonitorUpdateDto

type DbMonitorUpdateDto struct {
	Id         int    `json:"id"`
	EndpointId int    `json:"endpoint_id" binding:"required"`
	Name       string `json:"name" binding:"required"`
	Sql        string `json:"sql" binding:"required"`
	SysPanel   string `json:"sys_panel"`
}

type DefaultSortList

type DefaultSortList []*DefaultSortObj

func (DefaultSortList) Len

func (s DefaultSortList) Len() int

func (DefaultSortList) Less

func (s DefaultSortList) Less(i, j int) bool

func (DefaultSortList) Swap

func (s DefaultSortList) Swap(i, j int)

type DefaultSortObj

type DefaultSortObj struct {
	Key   string
	Value string
}

type DependenceConfig

type DependenceConfig struct {
	Name     string `json:"name"`
	Server   string `json:"server"`
	Username string `json:"username"`
	Password string `json:"password"`
	Expire   int    `json:"expire"`
}

type DisplayDemoFlagDto

type DisplayDemoFlagDto struct {
	Display bool `json:"display"`
}

type EChartOption

type EChartOption struct {
	Id     int            `json:"id"`
	Title  string         `json:"title"`
	Legend []string       `json:"legend"`
	Xaxis  interface{}    `json:"xaxis"`
	Yaxis  YaxisModel     `json:"yaxis"`
	Series []*SerialModel `json:"series"`
}

type EChartPie

type EChartPie struct {
	Title  string          `json:"title"`
	Legend []string        `json:"legend"`
	Data   []*EChartPieObj `json:"data"`
}

type EChartPieObj

type EChartPieObj struct {
	Name        string    `json:"name"`
	Value       float64   `json:"value"`
	SourceValue []float64 `json:"-"`
}

type EndpointExtendParamObj

type EndpointExtendParamObj struct {
	Enable        bool   `json:"-"`
	Ip            string `json:"ip,omitempty"`
	Port          string `json:"port,omitempty"`
	User          string `json:"user,omitempty"`
	Password      string `json:"password,omitempty"`
	BinPath       string `json:"bin_path,omitempty"`
	ConfigPath    string `json:"config_path,omitempty"`
	HttpMethod    string `json:"http_method,omitempty"`
	HttpUrl       string `json:"http_url,omitempty"`
	ProcessName   string `json:"process_name,omitempty"`
	ProcessTags   string `json:"process_tags,omitempty"`
	ExportAddress string `json:"export_address,omitempty"`
	ProxyExporter string `json:"proxy_exporter,omitempty"`
}

type EndpointGroupRelTable

type EndpointGroupRelTable struct {
	Guid          string `json:"guid" xorm:"guid"`
	Endpoint      string `json:"endpoint" xorm:"endpoint"`
	EndpointGroup string `json:"endpoint_group" xorm:"endpoint_group"`
}

type EndpointGroupTable

type EndpointGroupTable struct {
	Guid         string    `json:"guid" xorm:"guid"`
	DisplayName  string    `json:"display_name" xorm:"display_name"`
	Description  string    `json:"description" xorm:"description"`
	MonitorType  string    `json:"monitor_type" xorm:"monitor_type"`
	ServiceGroup string    `json:"service_group" xorm:"service_group"`
	AlarmWindow  string    `json:"alarm_window" xorm:"alarm_window"`
	UpdateTime   time.Time `json:"update_time" xorm:"update_time"`
}

type EndpointGrpParam

type EndpointGrpParam struct {
	EndpointId int   `json:"endpoint_id"`
	GroupIds   []int `json:"group_ids"`
}

type EndpointHttpTable

type EndpointHttpTable struct {
	Id           int    `json:"id"`
	EndpointGuid string `json:"endpoint_guid"`
	Method       string `json:"method"`
	Url          string `json:"url"`
}

type EndpointMetricTable

type EndpointMetricTable struct {
	Id         int    `json:"id"`
	EndpointId int    `json:"endpoint_id"`
	Metric     string `json:"metric"`
}

type EndpointNewTable

type EndpointNewTable struct {
	Guid            string    `json:"guid" xorm:"guid"`
	Name            string    `json:"name" xorm:"name"`
	Ip              string    `json:"ip" xorm:"ip"`
	MonitorType     string    `json:"monitor_type" xorm:"monitor_type"`
	AgentVersion    string    `json:"agent_version" xorm:"agent_version"`
	AgentAddress    string    `json:"agent_address" xorm:"agent_address"`
	Step            int       `json:"step" xorm:"step"`
	EndpointVersion string    `json:"endpoint_version" xorm:"endpoint_version"`
	EndpointAddress string    `json:"endpoint_address" xorm:"endpoint_address"`
	Cluster         string    `json:"cluster" xorm:"cluster"`
	AlarmEnable     int       `json:"alarm_enable" xorm:"alarm_enable"`
	Tags            string    `json:"tags" xorm:"tags"`
	ExtendParam     string    `json:"extend_param" xorm:"extend_param"`
	Description     string    `json:"description" xorm:"description"`
	UpdateTime      time.Time `json:"update_time" xorm:"update_time"`
}

type EndpointServiceRelTable

type EndpointServiceRelTable struct {
	Guid         string `json:"guid" xorm:"guid"`
	Endpoint     string `json:"endpoint" xorm:"endpoint"`
	ServiceGroup string `json:"service_group" xorm:"service_group"`
}

type EndpointStrategyObj

type EndpointStrategyObj struct {
	EndpointGroup string              `json:"endpoint_group"`
	DisplayName   string              `json:"display_name"`
	MonitorType   string              `json:"monitor_type"`
	ServiceGroup  string              `json:"service_group"`
	Strategy      []*GroupStrategyObj `json:"strategy"`
	NotifyList    []*NotifyObj        `json:"notify"`
}

type EndpointTable

type EndpointTable struct {
	Id              int       `json:"id"`
	Guid            string    `json:"guid"`
	Name            string    `json:"name"`
	Ip              string    `json:"ip"`
	EndpointVersion string    `json:"endpoint_version"`
	ExportType      string    `json:"export_type"`
	ExportVersion   string    `json:"export_version"`
	Step            int       `json:"step"`
	Address         string    `json:"address"`
	OsType          string    `json:"os_type"`
	CreateAt        string    `json:"create_at"`
	StopAlarm       int       `json:"stop_alarm"`
	AddressAgent    string    `json:"address_agent"`
	Cluster         string    `json:"cluster"`
	Tags            string    `json:"tags"`
	UpdateAt        time.Time `json:"update_at"`
}

type EndpointTelnetObj

type EndpointTelnetObj struct {
	Note string `json:"note"`
	Port string `json:"port"`
}

type EndpointTelnetTable

type EndpointTelnetTable struct {
	Id           int    `json:"id"`
	EndpointGuid string `json:"endpoint_guid"`
	Port         string `json:"port"`
	Note         string `json:"note"`
}

type EntityQueryObj

type EntityQueryObj struct {
	AttrName  string `json:"attrName"`
	Op        string `json:"op"`
	Condition string `json:"condition"`
}

type EntityQueryParam

type EntityQueryParam struct {
	Criteria          EntityQueryObj    `json:"criteria"`
	AdditionalFilters []*EntityQueryObj `json:"additionalFilters"`
}

type ErrorMessageObj

type ErrorMessageObj struct {
	Language string `json:"language"`
	Success  string `json:"success"`

	ParamValidateError string `json:"param_validate_error"`
	ParamEmptyError    string `json:"param_empty_error"`
	ParamTypeError     string `json:"param_validate_type"`

	RequestBodyError          string `json:"request_body_error"`
	RequestJsonUnmarshalError string `json:"request_json_unmarshal_error"`

	QueryTableError     string `json:"query_table_error"`
	FetchTableDataError string `json:"fetch_table_data_error"`

	UpdateTableError     string `json:"update_table_error"`
	DeleteTableDataError string `json:"delete_table_data_error"`

	HandleError string `json:"handle_error"`

	PasswordError       string `json:"password_error"`
	TokenError          string `json:"token_error"`
	TokenAuthorityError string `json:"token_authority_error"`
}

type EventTreeventNodeParam

type EventTreeventNodeParam struct {
	EventId   string `json:"event_id"`
	Status    string `json:"status"`
	Endpoint  string `json:"endpoint"`
	Message   string `json:"message"`
	StartUnix int64  `json:"start_unix"`
}

type EventTreeventNotifyDto

type EventTreeventNotifyDto struct {
	Type string                    `json:"type"`
	Data []*EventTreeventNodeParam `json:"data"`
}

type EventTreeventResponse

type EventTreeventResponse struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Msg    string `json:"message"`
}

type FileSdConfig

type FileSdConfig []*FileSdObj

type FileSdLabel

type FileSdLabel struct {
	EGuid string `json:"e_guid"`
}

type FileSdObj

type FileSdObj struct {
	Targets []string    `json:"targets"`
	Labels  FileSdLabel `json:"labels"`
}

type GetEndpointMetricParam

type GetEndpointMetricParam struct {
	Guid         string `json:"guid"`
	MonitorType  string `json:"monitor_type" binding:"required"`
	ServiceGroup string `json:"service_group"`
	Workspace    string `json:"workspace"`
}

type GetOrgPanelCallbackData

type GetOrgPanelCallbackData struct {
	FiringCallback  []*OptionModel `json:"firing_callback"`
	RecoverCallback []*OptionModel `json:"recover_callback"`
}

type GlobalConfig

type GlobalConfig struct {
	IsPluginMode                 string              `json:"is_plugin_mode"`
	Http                         *HttpConfig         `json:"http"`
	Log                          LogConfig           `json:"log"`
	Store                        StoreConfig         `json:"store"`
	Datasource                   DataSourceConfig    `json:"datasource"`
	LimitIp                      []string            `json:"limitIp"`
	Dependence                   []*DependenceConfig `json:"dependence"`
	Prometheus                   PrometheusConfig    `json:"prometheus"`
	TagBlacklist                 []string            `json:"tag_blacklist"`
	Agent                        []*AgentConfig      `json:"agent"`
	Alert                        AlertConfig         `json:"alert"`
	Peer                         PeerConfig          `json:"peer"`
	CronJob                      CronJobConfig       `json:"cron_job"`
	SdFile                       SdFileConfig        `json:"sd_file"`
	ArchiveMysql                 ArchiveMysqlConfig  `json:"archive_mysql"`
	ProcessCheckList             []string            `json:"process_check_list"`
	DefaultAdminRole             string              `json:"default_admin_role"`
	AlarmAliveMaxDay             string              `json:"alarm_alive_max_day"`
	MonitorAlarmMailEnable       string              `json:"monitor_alarm_mail_enable"`
	MonitorAlarmCallbackLevelMin string              `json:"monitor_alarm_callback_level_min"`
	MonitorNotifyTreeventEnable  string              `json:"monitor_notify_treevent_enable"`
}

func Config

func Config() *GlobalConfig

type GroupStrategyObj

type GroupStrategyObj struct {
	Guid              string       `json:"guid"`
	EndpointGroup     string       `json:"endpoint_group"`
	Metric            string       `json:"metric"`
	MetricName        string       `json:"metric_name"`
	Condition         string       `json:"condition"`
	Last              string       `json:"last"`
	Priority          string       `json:"priority"`
	Content           string       `json:"content"`
	NotifyEnable      int          `json:"notify_enable"`
	NotifyDelaySecond int          `json:"notify_delay_second"`
	ActiveWindow      string       `json:"active_window"`
	NotifyList        []*NotifyObj `json:"notify"`
}

type GrpEndpointParam

type GrpEndpointParam struct {
	Grp       int      `json:"grp" binding:"required"`
	Endpoints []string `json:"endpoints"`
}

type GrpEndpointParamNew

type GrpEndpointParamNew struct {
	Grp       int    `json:"grp" binding:"required"`
	Endpoints []int  `json:"endpoints"`
	Operation string `json:"operation" binding:"required"`
}

type GrpEndpointTable

type GrpEndpointTable struct {
	GrpId      int `json:"grp_id"`
	EndpointId int `json:"endpoint_id"`
}

type GrpQuery

type GrpQuery struct {
	Id        int
	Name      string
	Search    string
	User      string
	Page      int
	Size      int
	Result    []*GrpTable
	ResultNum int
}

type GrpStrategyExportObj

type GrpStrategyExportObj struct {
	GrpName     string          `json:"grp_name"`
	Description string          `json:"description"`
	Strategy    []StrategyTable `json:"strategy"`
}

type GrpStrategyQuery

type GrpStrategyQuery struct {
	Name        string
	Description string
	Metric      string
	Expr        string
	Cond        string
	Last        string
	Priority    string
	Content     string
	ConfigType  string
}

type GrpTable

type GrpTable struct {
	Id           int       `json:"id"`
	Name         string    `json:"name"`
	Parent       int       `json:"parent"`
	Description  string    `json:"description"`
	CreateUser   string    `json:"create_user"`
	UpdateUser   string    `json:"update_user"`
	EndpointType string    `json:"endpoint_type"`
	CreateAt     time.Time `json:"create_at"`
	UpdateAt     time.Time `json:"update_at"`
}

type HttpConfig

type HttpConfig struct {
	Port            string         `json:"port"`
	Swagger         bool           `json:"swagger"`
	Cross           bool           `json:"cross"`
	ReturnError     bool           `json:"return_error"`
	Alive           int64          `json:"alive"`
	Ldap            *LdapConfig    `json:"ldap"`
	Session         *SessionConfig `json:"session"`
	DefaultLanguage string         `json:"default_language"`
}

type InitDeployParam

type InitDeployParam struct {
	AgentManagerRemoteIp string               `json:"agentManagerRemoteIp"`
	Config               []*AgentManagerTable `json:"config"`
}

type IsPluginModeResult

type IsPluginModeResult struct {
	IsPlugin bool `json:"is_plugin"`
}

type KubernetesClusterParam

type KubernetesClusterParam struct {
	Id          int    `json:"id"`
	ClusterName string `json:"cluster_name" binding:"required"`
	Ip          string `json:"ip" binding:"required"`
	Port        string `json:"port" binding:"required"`
	Token       string `json:"token" binding:"required"`
}

type KubernetesClusterTable

type KubernetesClusterTable struct {
	Id          int       `json:"id"`
	ClusterName string    `json:"cluster_name"`
	ApiServer   string    `json:"api_server"`
	Token       string    `json:"token"`
	CreateAt    time.Time `json:"create_at"`
}

type KubernetesEndpointRelTable

type KubernetesEndpointRelTable struct {
	Id           int    `json:"id"`
	KuberneteId  int    `json:"kubernete_id"`
	EndpointGuid string `json:"endpoint_guid"`
	PodGuid      string `json:"pod_guid"`
	Namespace    string `json:"namespace"`
}

type LdapConfig

type LdapConfig struct {
	Enable     bool     `json:"enable"`
	Server     string   `json:"server"`
	Port       int      `json:"port"`
	BindDN     string   `json:"bindDN"`
	BaseDN     string   `json:"baseDN"`
	Filter     string   `json:"filter"`
	Attributes []string `json:"attributes"`
}

type LogConfig

type LogConfig struct {
	Level            string `json:"level"`
	LogDir           string `json:"log_dir"`
	ArchiveMaxSize   int    `json:"archive_max_size"`
	ArchiveMaxBackup int    `json:"archive_max_backup"`
	ArchiveMaxDay    int    `json:"archive_max_day"`
	Compress         bool   `json:"compress"`
}

type LogKeywordAlarmTable

type LogKeywordAlarmTable struct {
	Id          int       `json:"id" xorm:"id"`
	AlarmId     int       `json:"alarmId" xorm:"alarm_id"`
	Endpoint    string    `json:"endpoint" xorm:"endpoint"`
	Status      string    `json:"status" xorm:"status"`
	Content     string    `json:"content" xorm:"content"`
	Tags        string    `json:"tags" xorm:"tags"`
	StartValue  float64   `json:"startValue" xorm:"start_value"`
	EndValue    float64   `json:"endValue" xorm:"end_value"`
	UpdatedTime time.Time `json:"updatedTime" xorm:"updated_time"`
}

type LogKeywordConfigTable

type LogKeywordConfigTable struct {
	Guid              string `json:"guid"`
	LogKeywordMonitor string `json:"log_keyword_monitor"`
	Keyword           string `json:"keyword"`
	Regulative        int    `json:"regulative"`
	NotifyEnable      int    `json:"notify_enable"`
	Priority          string `json:"priority"`
	UpdateTime        string `json:"update_time"`
	Content           string `json:"content"`
}

type LogKeywordCronJobQuery

type LogKeywordCronJobQuery struct {
	Guid           string `xorm:"guid"`
	ServiceGroup   string `xorm:"service_group"`
	LogPath        string `xorm:"log_path"`
	MonitorType    string `xorm:"monitor_type"`
	Keyword        string `xorm:"keyword"`
	NotifyEnable   int    `xorm:"notify_enable"`
	Priority       string `xorm:"priority"`
	SourceEndpoint string `xorm:"source_endpoint"`
	TargetEndpoint string `xorm:"target_endpoint"`
	AgentAddress   string `xorm:"agent_address"`
	Content        string `xorm:"content"`
}

type LogKeywordEndpointRelTable

type LogKeywordEndpointRelTable struct {
	Guid              string `json:"guid"`
	LogKeywordMonitor string `json:"log_keyword_monitor"`
	SourceEndpoint    string `json:"source_endpoint"`
	TargetEndpoint    string `json:"target_endpoint"`
}

type LogKeywordFetchObj

type LogKeywordFetchObj struct {
	Index   float64 `json:"index"`
	Content string  `json:"content"`
}

type LogKeywordHttpDto

type LogKeywordHttpDto struct {
	Path     string                   `json:"path"`
	Keywords []*LogKeywordHttpRuleObj `json:"keywords"`
}

type LogKeywordHttpResult

type LogKeywordHttpResult struct {
	Status  string                `json:"status"`
	Message string                `json:"message"`
	Data    []*LogKeywordFetchObj `json:"data"`
}

type LogKeywordHttpRuleObj

type LogKeywordHttpRuleObj struct {
	RegularEnable  bool    `json:"regular_enable"`
	Keyword        string  `json:"keyword"`
	Count          float64 `json:"count"`
	TargetEndpoint string  `json:"target_endpoint"`
}

type LogKeywordMonitorCreateObj

type LogKeywordMonitorCreateObj struct {
	Guid         string                        `json:"guid"`
	ServiceGroup string                        `json:"service_group"`
	LogPath      []string                      `json:"log_path"`
	MonitorType  string                        `json:"monitor_type"`
	KeywordList  []*LogKeywordConfigTable      `json:"keyword_list"`
	EndpointRel  []*LogKeywordEndpointRelTable `json:"endpoint_rel"`
}

type LogKeywordMonitorObj

type LogKeywordMonitorObj struct {
	Guid         string                        `json:"guid"`
	ServiceGroup string                        `json:"service_group"`
	LogPath      string                        `json:"log_path"`
	MonitorType  string                        `json:"monitor_type"`
	KeywordList  []*LogKeywordConfigTable      `json:"keyword_list"`
	EndpointRel  []*LogKeywordEndpointRelTable `json:"endpoint_rel"`
}

type LogKeywordMonitorTable

type LogKeywordMonitorTable struct {
	Guid         string `json:"guid"`
	ServiceGroup string `json:"service_group"`
	LogPath      string `json:"log_path"`
	MonitorType  string `json:"monitor_type"`
	UpdateTime   string `json:"update_time"`
}

type LogKeywordRowsHttpDto

type LogKeywordRowsHttpDto struct {
	Path    string `json:"path"`
	Keyword string `json:"keyword"`
}

type LogKeywordRowsHttpResult

type LogKeywordRowsHttpResult struct {
	Status  string                `json:"status"`
	Message string                `json:"message"`
	Data    []*LogKeywordFetchObj `json:"data"`
}

type LogKeywordServiceGroupObj

type LogKeywordServiceGroupObj struct {
	ServiceGroupTable
	Config []*LogKeywordMonitorObj `json:"config"`
}

type LogMetricConfigObj

type LogMetricConfigObj struct {
	Guid             string                     `json:"guid" xorm:"guid"`
	LogMetricMonitor string                     `json:"log_metric_monitor" xorm:"log_metric_monitor"`
	LogMetricJson    string                     `json:"log_metric_json" xorm:"log_metric_json"`
	Metric           string                     `json:"metric" xorm:"metric"`
	DisplayName      string                     `json:"display_name" xorm:"display_name"`
	JsonKey          string                     `json:"json_key" xorm:"json_key"`
	Regular          string                     `json:"regular" xorm:"regular"`
	AggType          string                     `json:"agg_type" xorm:"agg_type"`
	Step             int64                      `json:"step" xorm:"step"`
	StringMap        []*LogMetricStringMapTable `json:"string_map"`
	ServiceGroup     string                     `json:"service_group"`
	MonitorType      string                     `json:"monitor_type"`
	TagConfig        []*LogMetricConfigTag      `json:"tag_config" xorm:"tag_config"`
}

type LogMetricConfigTable

type LogMetricConfigTable struct {
	Guid             string `json:"guid" xorm:"guid"`
	LogMetricMonitor string `json:"log_metric_monitor" xorm:"log_metric_monitor"`
	LogMetricJson    string `json:"log_metric_json" xorm:"log_metric_json"`
	Metric           string `json:"metric" xorm:"metric"`
	DisplayName      string `json:"display_name" xorm:"display_name"`
	JsonKey          string `json:"json_key" xorm:"json_key"`
	Regular          string `json:"regular" xorm:"regular"`
	AggType          string `json:"agg_type" xorm:"agg_type"`
	Step             int64  `json:"step" xorm:"step"`
	TagConfig        string `json:"tag_config" xorm:"tag_config"`
	UpdateTime       string `json:"update_time" xorm:"update_time"`
}

type LogMetricConfigTag

type LogMetricConfigTag struct {
	Key     string `json:"key"`
	Regular string `json:"regular"`
}

type LogMetricEndpointRelTable

type LogMetricEndpointRelTable struct {
	Guid             string `json:"guid" json:"guid"`
	LogMetricMonitor string `json:"log_metric_monitor" xorm:"log_metric_monitor"`
	SourceEndpoint   string `json:"source_endpoint" xorm:"source_endpoint"`
	TargetEndpoint   string `json:"target_endpoint" xorm:"target_endpoint"`
}

type LogMetricJsonNeObj

type LogMetricJsonNeObj struct {
	Regular      string            `json:"regular"`
	Tags         string            `json:"tags"`
	MetricConfig []*LogMetricNeObj `json:"metric_config"`
}

type LogMetricJsonObj

type LogMetricJsonObj struct {
	Guid             string                `json:"guid" xorm:"guid"`
	LogMetricMonitor string                `json:"log_metric_monitor" xorm:"log_metric_monitor"`
	JsonRegular      string                `json:"json_regular" xorm:"json_regular"`
	Tags             string                `json:"tags" xorm:"tags"`
	MetricList       []*LogMetricConfigObj `json:"metric_list"`
}

type LogMetricJsonTable

type LogMetricJsonTable struct {
	Guid             string `json:"guid" xorm:"guid"`
	LogMetricMonitor string `json:"log_metric_monitor" xorm:"log_metric_monitor"`
	JsonRegular      string `json:"json_regular" xorm:"json_regular"`
	Tags             string `json:"tags" xorm:"tags"`
	UpdateTime       string `json:"update_time" xorm:"update_time"`
}

type LogMetricMonitorCreateDto

type LogMetricMonitorCreateDto struct {
	ServiceGroup string                       `json:"service_group" xorm:"service_group"`
	LogPath      []string                     `json:"log_path" xorm:"log_path"`
	MetricType   string                       `json:"metric_type" xorm:"metric_type"`
	MonitorType  string                       `json:"monitor_type" xorm:"monitor_type"`
	EndpointRel  []*LogMetricEndpointRelTable `json:"endpoint_rel"`
}

type LogMetricMonitorNeObj

type LogMetricMonitorNeObj struct {
	Path           string                `json:"path"`
	TargetEndpoint string                `json:"target_endpoint"`
	ServiceGroup   string                `json:"service_group"`
	JsonConfig     []*LogMetricJsonNeObj `json:"config"`
	MetricConfig   []*LogMetricNeObj     `json:"custom"`
}

type LogMetricMonitorObj

type LogMetricMonitorObj struct {
	Guid             string                       `json:"guid" xorm:"guid"`
	ServiceGroup     string                       `json:"service_group" xorm:"service_group"`
	LogPath          string                       `json:"log_path" xorm:"log_path"`
	MetricType       string                       `json:"metric_type" xorm:"metric_type"`
	MonitorType      string                       `json:"monitor_type" xorm:"monitor_type"`
	JsonConfigList   []*LogMetricJsonObj          `json:"json_config_list"`
	MetricConfigList []*LogMetricConfigObj        `json:"metric_config_list"`
	EndpointRel      []*LogMetricEndpointRelTable `json:"endpoint_rel"`
}

type LogMetricMonitorTable

type LogMetricMonitorTable struct {
	Guid         string `json:"guid" xorm:"guid"`
	ServiceGroup string `json:"service_group" xorm:"service_group"`
	LogPath      string `json:"log_path" xorm:"log_path"`
	MetricType   string `json:"metric_type" xorm:"metric_type"`
	MonitorType  string `json:"monitor_type" xorm:"monitor_type"`
	UpdateTime   string `json:"update_time" xorm:"update_time"`
}

type LogMetricNeObj

type LogMetricNeObj struct {
	Key          string                     `json:"key"`
	Metric       string                     `json:"metric"`
	ValueRegular string                     `json:"value_regular"`
	Title        string                     `json:"title"`
	AggType      string                     `json:"agg_type"`
	Step         int64                      `json:"step"`
	StringMap    []*LogMetricStringMapNeObj `json:"string_map"`
	TagConfig    []*LogMetricConfigTag      `json:"tag_config"`
}

type LogMetricNodeExporterResponse

type LogMetricNodeExporterResponse struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

type LogMetricQueryObj

type LogMetricQueryObj struct {
	ServiceGroupTable
	Config []*LogMetricMonitorObj `json:"config"`
}

type LogMetricStringMapNeObj

type LogMetricStringMapNeObj struct {
	Regulation        string  `json:"regulation"`
	StringValue       string  `json:"string_value"`
	IntValue          float64 `json:"int_value"`
	RegEnable         bool    `json:"reg_enable"`
	TargetStringValue string  `json:"target_string_value"`
}

type LogMetricStringMapTable

type LogMetricStringMapTable struct {
	Guid            string `json:"guid" xorm:"guid"`
	LogMetricConfig string `json:"log_metric_config" xorm:"log_metric_config"`
	SourceValue     string `json:"source_value" xorm:"source_value"`
	Regulative      int    `json:"regulative" xorm:"regulative"`
	TargetValue     string `json:"target_value" xorm:"target_value"`
	UpdateTime      string `json:"update_time" xorm:"update_time"`
}

type LogMonitorDto

type LogMonitorDto struct {
	Id            int                      `json:"id"`
	TplId         int                      `json:"tpl_id"`
	GrpId         int                      `json:"grp_id"`
	EndpointId    int                      `json:"endpoint_id"`
	Path          string                   `json:"path" binding:"required"`
	OwnerEndpoint string                   `json:"owner_endpoint"`
	Strategy      []*LogMonitorStrategyDto `json:"strategy"`
}

type LogMonitorStrategyDto

type LogMonitorStrategyDto struct {
	Id           int    `json:"id"`
	StrategyId   int    `json:"strategy_id"`
	Keyword      string `json:"keyword"`
	Cond         string `json:"cond"`
	Last         string `json:"last"`
	Priority     string `json:"priority"`
	NotifyEnable int    `json:"notify_enable"`
}

type LogMonitorTable

type LogMonitorTable struct {
	Id            int    `json:"id"`
	StrategyId    int    `json:"strategy_id"`
	Path          string `json:"path"`
	Keyword       string `json:"keyword"`
	Priority      string `json:"priority"`
	NotifyEnable  int    `json:"notify_enable"`
	OwnerEndpoint string `json:"owner_endpoint"`
}

type LogMonitorTags

type LogMonitorTags struct {
	Endpoint string `json:"endpoint"`
	FilePath string `json:"file_path"`
	Keyword  string `json:"keyword"`
	Tags     string `json:"tags"`
}

type MainPageRoleQuery

type MainPageRoleQuery struct {
	RoleName     string         `json:"role_name"`
	MainPageId   int            `json:"main_page_id"`
	MainPageName string         `json:"main_page_name"`
	Options      []*OptionModel `json:"options"`
}

type MaintainDto

type MaintainDto struct {
	Start         int64  `json:"start"`
	End           int64  `json:"end"`
	Endpoint      string `json:"endpoint"`
	Ip            string `json:"ip"`
	EndpointType  string `json:"endpoint_type"`
	ClearMaintain bool   `json:"clear_maintain"`
}

type MaintainTable

type MaintainTable struct {
	Id            int       `json:"id"`
	EndpointId    int       `json:"endpoint_id"`
	MaintainStart time.Time `json:"maintain_start"`
	MaintainEnd   time.Time `json:"maintain_end"`
	MaintainUser  string    `json:"maintain_user"`
}

type MessageModel

type MessageModel struct {
	Enable bool   `json:"enable"`
	Url    string `json:"url"`
}

type MessageTable

type MessageTable struct {
	Id      int    `json:"id"`
	GroupId int    `json:"group_id"`
	K       string `json:"k"`
	Rename  string `json:"rename"`
	Col     string `json:"col"`
	Href    bool   `json:"href"`
	Url     string `json:"url"`
}

type MetricTable

type MetricTable struct {
	Guid         string `json:"guid" xorm:"guid"`
	Metric       string `json:"metric" xorm:"metric"`
	MonitorType  string `json:"monitor_type" xorm:"monitor_type"`
	PromExpr     string `json:"prom_expr" xorm:"prom_expr"`
	TagOwner     string `json:"tag_owner" xorm:"tag_owner"`
	ServiceGroup string `json:"service_group" xorm:"service_group"`
	Workspace    string `json:"workspace" xorm:"workspace"`
	UpdateTime   string `json:"update_time" xorm:"update_time"`
}

type MonitorTypeTable

type MonitorTypeTable struct {
	Guid        string `json:"guid" xorm:"guid" binding:"required"`
	DisplayName string `json:"display_name" xorm:"display_name"`
	Description string `json:"description" xorm:"description"`
}

type NotifyObj

type NotifyObj struct {
	Guid             string   `json:"guid" xorm:"guid"`
	EndpointGroup    string   `json:"endpoint_group" xorm:"endpoint_group"`
	ServiceGroup     string   `json:"service_group" xorm:"service_group"`
	AlarmStrategy    string   `json:"alarm_strategy" xorm:"alarm_strategy"`
	AlarmAction      string   `json:"alarm_action" xorm:"alarm_action"`
	AlarmPriority    string   `json:"alarm_priority" xorm:"alarm_priority"`
	NotifyNum        int      `json:"notify_num" xorm:"notify_num"`
	ProcCallbackName string   `json:"proc_callback_name" xorm:"proc_callback_name"`
	ProcCallbackKey  string   `json:"proc_callback_key" xorm:"proc_callback_key"`
	CallbackUrl      string   `json:"callback_url" xorm:"callback_url"`
	CallbackParam    string   `json:"callback_param" xorm:"callback_param"`
	NotifyRoles      []string `json:"notify_roles"`
	ProcCallbackMode string   `json:"proc_callback_mode" xorm:"proc_callback_mode"` // 回调模式 -> manual(手动) | auto(自动)
	Description      string   `json:"description" xorm:"description"`
}

type NotifyRoleRelTable

type NotifyRoleRelTable struct {
	Guid   string `json:"guid" xorm:"guid"`
	Notify string `json:"notify" xorm:"notify"`
	Role   string `json:"role" xorm:"role"`
}

type NotifyTable

type NotifyTable struct {
	Guid             string `json:"guid" xorm:"guid"`
	EndpointGroup    string `json:"endpoint_group" xorm:"endpoint_group"`
	ServiceGroup     string `json:"service_group" xorm:"service_group"`
	AlarmStrategy    string `json:"alarm_strategy" xorm:"alarm_strategy"`
	AlarmAction      string `json:"alarm_action" xorm:"alarm_action"`
	AlarmPriority    string `json:"alarm_priority" xorm:"alarm_priority"`
	NotifyNum        int    `json:"notify_num" xorm:"notify_num"`
	ProcCallbackName string `json:"proc_callback_name" xorm:"proc_callback_name"`
	ProcCallbackKey  string `json:"proc_callback_key" xorm:"proc_callback_key"`
	CallbackUrl      string `json:"callback_url" xorm:"callback_url"`
	CallbackParam    string `json:"callback_param" xorm:"callback_param"`
	ProcCallbackMode string `json:"proc_callback_mode" xorm:"proc_callback_mode"` // 回调模式 -> manual(手动) | auto(自动)
	Description      string `json:"description" xorm:"description"`
}

type OpenAlarmObj

type OpenAlarmObj struct {
	Id            int       `json:"id"`
	AlertInfo     string    `json:"alert_info"`
	AlertIp       string    `json:"alert_ip"`
	AlertLevel    string    `json:"alert_level"`
	AlertObj      string    `json:"alert_obj"`
	AlertTitle    string    `json:"alert_title"`
	UseUmgPolicy  string    `json:"use_umg_policy"`
	AlertWay      string    `json:"alert_way"`
	AlertReciver  string    `json:"alert_reciver"`
	RemarkInfo    string    `json:"remark_info"`
	SubSystemId   string    `json:"sub_system_id"`
	UpdateAt      time.Time `json:"update_at"`
	CustomMessage string    `json:"custom_message"`
}

type OpenAlarmRequest

type OpenAlarmRequest struct {
	AlertList []OpenAlarmObj `json:"alertList"`
}

type OpenAlarmResponse

type OpenAlarmResponse struct {
	ResultCode int    `json:"resultCode"`
	ResultMsg  string `json:"resultMsg"`
}

type OptionModel

type OptionModel struct {
	Id             int    `json:"id"`
	OptionValue    string `json:"option_value"`
	OptionText     string `json:"option_text"`
	Active         bool   `json:"active"`
	OptionType     string `json:"type"`
	OptionTypeName string `json:"option_type_name"`
}

type OptionModelSortList

type OptionModelSortList []*OptionModel

func (OptionModelSortList) Len

func (e OptionModelSortList) Len() int

func (OptionModelSortList) Less

func (e OptionModelSortList) Less(i, j int) bool

func (OptionModelSortList) Swap

func (e OptionModelSortList) Swap(i, j int)

type OrganizationPanel

type OrganizationPanel struct {
	Guid            string               `json:"guid"`
	DisplayName     string               `json:"display_name"`
	Type            string               `json:"type"`
	FetchSearch     bool                 `json:"fetch_search"`
	FetchOriginFlag bool                 `json:"fetch_origin_flag"`
	Children        []*OrganizationPanel `json:"children"`
}

type PageInfo

type PageInfo struct {
	StartIndex int `json:"startIndex"`
	PageSize   int `json:"pageSize"`
	TotalRows  int `json:"totalRows"`
}

type PanelChartQueryObj

type PanelChartQueryObj struct {
	Id         int    `json:"id"`
	TagsKey    string `json:"tags_key"`
	Title      string `json:"title"`
	GroupId    int    `json:"group_id"`
	Metric     string `json:"metric"`
	ChartTitle string `json:"chart_title"`
	ChartUnit  string `json:"chart_unit"`
}

type PanelModel

type PanelModel struct {
	Title  string        `json:"title"`
	Tags   TagsModel     `json:"tags"`
	Other  bool          `json:"other"`
	Charts []*ChartModel `json:"charts"`
}

type PanelRecursiveTable

type PanelRecursiveTable struct {
	Guid                string    `json:"guid"`
	DisplayName         string    `json:"display_name"`
	Parent              string    `json:"parent"`
	Endpoint            string    `json:"endpoint"`
	Email               string    `json:"email"`
	Phone               string    `json:"phone"`
	Role                string    `json:"role"`
	FiringCallbackName  string    `json:"firing_callback_name"`
	FiringCallbackKey   string    `json:"firing_callback_key"`
	RecoverCallbackName string    `json:"recover_callback_name"`
	RecoverCallbackKey  string    `json:"recover_callback_key"`
	ObjType             string    `json:"obj_type"`
	UpdateAt            time.Time `json:"update_at"`
}

type PanelResult

type PanelResult struct {
	PanelList    []*PanelResultObj   `json:"panel_list"`
	ActiveChart  PanelResultChartObj `json:"active_chart"`
	PanelGroupId int                 `json:"panel_group_id"`
}

type PanelResultChartObj

type PanelResultChartObj struct {
	Metric string `json:"metric"`
	Title  string `json:"title"`
	Unit   string `json:"unit"`
	Active bool   `json:"active"`
}

type PanelResultObj

type PanelResultObj struct {
	GroupId    int                    `json:"group_id"`
	PanelTitle string                 `json:"panel_title"`
	TagsKey    string                 `json:"tags_key"`
	Charts     []*PanelResultChartObj `json:"charts"`
}

type PanelTable

type PanelTable struct {
	Id           int    `json:"id"`
	GroupId      int    `json:"group_id"`
	Title        string `json:"title"`
	TagsEnable   bool   `json:"tags_enable"`
	TagsUrl      string `json:"tags_url"`
	TagsKey      string `json:"tags_key"`
	ChartGroup   int    `json:"chart_group"`
	AutoDisplay  int    `json:"auto_display"`
	ServiceGroup string `json:"service_group"`
}

type PanelTag

type PanelTag struct {
	Col      int      `json:"col"`
	Endpoint []string `json:"endpoint"`
	Metric   []string `json:"metric"`
	Url      string   `json:"url"`
}

type PanelsModel

type PanelsModel struct {
	Enable bool   `json:"enable"`
	Type   string `json:"type"`
	Url    string `json:"url"`
}

type PeerConfig

type PeerConfig struct {
	Enable          bool     `json:"enable"`
	InstanceHostIp  string   `json:"instance_host_ip"`
	HttpPort        string   `json:"http_port"`
	OtherServerList []string `json:"other_server_list"`
}

type PieChartConfigObj

type PieChartConfigObj struct {
	Id                    int    `form:"id" json:"id"`
	Title                 string `form:"title" json:"title"`
	Endpoint              string `form:"endpoint" json:"endpoint"`
	Metric                string `form:"metric" json:"metric"`
	PromQl                string `form:"prom_ql" json:"prom_ql"`
	Start                 int64  `form:"start" json:"start"`
	End                   int64  `form:"end" json:"end"`
	TimeSecond            int64  `form:"time_second" json:"time_second"`
	Aggregate             string `form:"agg" json:"agg"`
	CompareFirstStart     string `form:"compare_first_start" json:"compare_first_start"`
	CompareFirstEnd       string `form:"compare_first_end" json:"compare_first_end"`
	CompareSecondStart    string `form:"compare_second_start" json:"compare_second_start"`
	CompareSecondEnd      string `form:"compare_second_end" json:"compare_second_end"`
	AppObject             string `form:"app_object" json:"app_object"`
	AppObjectEndpointType string `form:"app_object_endpoint_type" json:"app_object_endpoint_type"`
	PieMetricType         string `form:"pie_metric_type" json:"pie_metric_type"`
	PieAggType            string `form:"pie_agg_type" json:"pie_agg_type"`
}

type PingExportSourceObj

type PingExportSourceObj struct {
	Ip   string `json:"ip"`
	Guid string `json:"guid"`
}

type PingExporterSourceDto

type PingExporterSourceDto struct {
	Config []*PingExportSourceObj `json:"config"`
}

type PluginBusinessConfigObj

type PluginBusinessConfigObj struct {
	Path  string                   `json:"path"`
	Rules []*PluginBusinessRuleObj `json:"rules"`
}

type PluginBusinessMetricObj

type PluginBusinessMetricObj struct {
	Key      string                       `json:"key"`
	Metric   string                       `json:"metric"`
	Title    string                       `json:"title"`
	AggType  string                       `json:"aggType"`
	ValueMap []*PluginBusinessValueMapObj `json:"valueMap"`
}

type PluginBusinessOutput

type PluginBusinessOutput struct {
	Outputs []*PluginBusinessOutputObj `json:"outputs"`
}

type PluginBusinessOutputObj

type PluginBusinessOutputObj struct {
	CallbackParameter string `json:"callbackParameter"`
	HostIp            string `json:"hostIp"`
	LogPath           string `json:"logPath"`
	ErrorCode         string `json:"errorCode"`
	ErrorMessage      string `json:"errorMessage"`
	ErrorDetail       string `json:"errorDetail,omitempty"`
}

type PluginBusinessRequest

type PluginBusinessRequest struct {
	RequestId string                           `json:"requestId"`
	Inputs    []*PluginBusinessValueRequestObj `json:"inputs"`
}

type PluginBusinessResp

type PluginBusinessResp struct {
	ResultCode    string               `json:"resultCode"`
	ResultMessage string               `json:"resultMessage"`
	Results       PluginBusinessOutput `json:"results"`
}

type PluginBusinessRuleObj

type PluginBusinessRuleObj struct {
	Regular      string                     `json:"regular"`
	Tags         string                     `json:"tags"`
	MetricConfig []*PluginBusinessMetricObj `json:"metricConfig"`
}

type PluginBusinessValueMapObj

type PluginBusinessValueMapObj struct {
	IsRegular   string  `json:"isRegular"`
	StringValue string  `json:"stringValue"`
	IntValue    float64 `json:"intValue"`
}

type PluginBusinessValueRequestObj

type PluginBusinessValueRequestObj struct {
	CallbackParameter string                     `json:"callbackParameter"`
	HostIp            string                     `json:"hostIp"`
	RefMonitorObj     string                     `json:"refMonitorObj"`
	PathPrefix        string                     `json:"pathPrefix"`
	Config            []*PluginBusinessConfigObj `json:"config"`
}

type PluginCloseAlarmOutput

type PluginCloseAlarmOutput struct {
	RequestId      string                       `json:"requestId"`
	AllowedOptions []string                     `json:"allowedOptions,omitempty"`
	Outputs        []*PluginCloseAlarmOutputObj `json:"outputs"`
}

type PluginCloseAlarmOutputObj

type PluginCloseAlarmOutputObj struct {
	CallbackParameter string `json:"callbackParameter"`
	Guid              string `json:"guid"`
	AlarmId           string `json:"alarmId"`
	ErrorCode         string `json:"errorCode"`
	ErrorMessage      string `json:"errorMessage"`
	ErrorDetail       string `json:"errorDetail,omitempty"`
}

type PluginCloseAlarmRequest

type PluginCloseAlarmRequest struct {
	RequestId string                        `json:"requestId"`
	Inputs    []*PluginCloseAlarmRequestObj `json:"inputs"`
}

type PluginCloseAlarmRequestObj

type PluginCloseAlarmRequestObj struct {
	CallbackParameter string `json:"callbackParameter"`
	Guid              string `json:"guid"`
	AlarmId           string `json:"alarmId"`
	Message           string `json:"message"`
}

type PluginCloseAlarmResp

type PluginCloseAlarmResp struct {
	ResultCode    string                 `json:"resultCode"`
	ResultMessage string                 `json:"resultMessage"`
	Results       PluginCloseAlarmOutput `json:"results"`
}

type PluginSnmpExporterOutput

type PluginSnmpExporterOutput struct {
	Outputs []*PluginSnmpExporterOutputObj `json:"outputs"`
}

type PluginSnmpExporterOutputObj

type PluginSnmpExporterOutputObj struct {
	CallbackParameter string `json:"callbackParameter"`
	Id                string `json:"id"`
	ErrorCode         string `json:"errorCode"`
	ErrorMessage      string `json:"errorMessage"`
	ErrorDetail       string `json:"errorDetail,omitempty"`
}

type PluginSnmpExporterRequest

type PluginSnmpExporterRequest struct {
	RequestId string                          `json:"requestId"`
	Inputs    []*PluginSnmpExporterRequestObj `json:"inputs"`
}

type PluginSnmpExporterRequestObj

type PluginSnmpExporterRequestObj struct {
	CallbackParameter string `json:"callbackParameter"`
	Id                string `json:"id"`
	Address           string `json:"address"`
	ScrapeInterval    string `json:"scrapeInterval"`
}

type PluginSnmpExporterResp

type PluginSnmpExporterResp struct {
	ResultCode    string                   `json:"resultCode"`
	ResultMessage string                   `json:"resultMessage"`
	Results       PluginSnmpExporterOutput `json:"results"`
}

type PluginUpdateServicePathOutput

type PluginUpdateServicePathOutput struct {
	RequestId      string                              `json:"requestId"`
	AllowedOptions []string                            `json:"allowedOptions,omitempty"`
	Outputs        []*PluginUpdateServicePathOutputObj `json:"outputs"`
}

type PluginUpdateServicePathOutputObj

type PluginUpdateServicePathOutputObj struct {
	CallbackParameter string `json:"callbackParameter"`
	Guid              string `json:"guid"`
	ErrorCode         string `json:"errorCode"`
	ErrorMessage      string `json:"errorMessage"`
	ErrorDetail       string `json:"errorDetail,omitempty"`
}

type PluginUpdateServicePathRequest

type PluginUpdateServicePathRequest struct {
	RequestId      string                               `json:"requestId"`
	DueDate        string                               `json:"dueDate"`
	AllowedOptions []string                             `json:"allowedOptions"`
	Inputs         []*PluginUpdateServicePathRequestObj `json:"inputs"`
}

type PluginUpdateServicePathRequestObj

type PluginUpdateServicePathRequestObj struct {
	CallbackParameter string      `json:"callbackParameter"`
	Guid              string      `json:"guid"`
	SystemName        string      `json:"systemName"`
	LogPathList       interface{} `json:"logPathList"`
	MonitorType       string      `json:"monitorType"`
}

type PluginUpdateServicePathResp

type PluginUpdateServicePathResp struct {
	ResultCode    string                        `json:"resultCode"`
	ResultMessage string                        `json:"resultMessage"`
	Results       PluginUpdateServicePathOutput `json:"results"`
}

type ProcessMonitorTable

type ProcessMonitorTable struct {
	Id          int    `json:"id"`
	EndpointId  int    `json:"endpoint_id"`
	ProcessName string `json:"process_name"`
	DisplayName string `json:"display_name"`
	Tags        string `json:"tags"`
}

type ProcessUpdateDto

type ProcessUpdateDto struct {
	EndpointId  int                   `json:"endpoint_id" binding:"required"`
	ProcessList []ProcessMonitorTable `json:"process_list"`
	Check       bool                  `json:"check"`
}

type ProcessUpdateDtoNew

type ProcessUpdateDtoNew struct {
	EndpointId  int                   `json:"endpoint_id" binding:"required"`
	ProcessList []ProcessMonitorTable `json:"process_list"`
	Check       bool                  `json:"check"`
}

type PromMapSort

type PromMapSort []*SimpleMapObj

func (PromMapSort) Len

func (s PromMapSort) Len() int

func (PromMapSort) Less

func (s PromMapSort) Less(i, j int) bool

func (PromMapSort) String

func (s PromMapSort) String() string

func (PromMapSort) Swap

func (s PromMapSort) Swap(i, j int)

type PromMetricObj

type PromMetricObj struct {
	Id           string `json:"id"`
	Metric       string `json:"metric" binding:"required"`
	MetricType   string `json:"metric_type"`
	PromQl       string `json:"prom_expr" binding:"required"`
	PromMain     string `json:"prom_main"`
	ServiceGroup string `json:"service_group"`
	Workspace    string `json:"workspace"`
}

type PromMetricTable

type PromMetricTable struct {
	Id         string `json:"id"`
	Metric     string `json:"metric" binding:"required"`
	MetricType string `json:"metric_type"`
	PromQl     string `json:"prom_ql" binding:"required"`
	PromMain   string `json:"prom_main"`
}

type PromMetricUpdateChartParam

type PromMetricUpdateChartParam struct {
	Metric string `json:"metric"`
	Title  string `json:"title"`
	Unit   string `json:"unit"`
}

type PromMetricUpdateParam

type PromMetricUpdateParam struct {
	Id         int                        `json:"id"`
	PanelId    int                        `json:"panel_id"`
	Chart      PromMetricUpdateChartParam `json:"chart"`
	Metric     string                     `json:"metric" binding:"required"`
	MetricType string                     `json:"metric_type"`
	PromQl     string                     `json:"prom_ql"`
	PromMain   string                     `json:"prom_main"`
}

type PrometheusConfig

type PrometheusConfig struct {
	SdConfigPath   string `json:"sd_config_path"`
	RuleConfigPath string `json:"rule_config_path"`
	ConfigReload   string `json:"config_reload"`
}

type PrometheusData

type PrometheusData struct {
	Result     []PrometheusResult `json:"result"`
	ResultType string             `json:"resultType"`
}

type PrometheusParam

type PrometheusParam struct {
	Start int64  `json:"start"`
	End   int64  `json:"end"`
	Step  int64  `json:"step"`
	Query string `json:"query"`
}

type PrometheusResponse

type PrometheusResponse struct {
	Status string         `json:"status"`
	Data   PrometheusData `json:"data"`
}

type PrometheusResult

type PrometheusResult struct {
	Metric map[string]string `json:"metric"`
	Values [][]interface{}   `json:"values"`
}

type QueryHistoryAlarmParam

type QueryHistoryAlarmParam struct {
	Start    int64     `json:"start" binding:"required"`
	End      int64     `json:"end" binding:"required"`
	Filter   string    `json:"filter" binding:"required"`
	Endpoint string    `json:"endpoint"`
	Metric   string    `json:"metric"`
	Priority string    `json:"priority"`
	Page     *PageInfo `json:"page"`
}

type QueryMonitorData

type QueryMonitorData struct {
	Start            int64     `json:"start"`
	End              int64     `json:"end"`
	Endpoint         []string  `json:"endpoint"`
	Metric           []string  `json:"metric"`
	PromQ            string    `json:"prom_q"`
	Legend           string    `json:"legend"`
	CompareLegend    string    `json:"compare_legend"`
	ChartType        string    `json:"chart_type"`
	PieData          EChartPie `json:"pie_data"`
	SameEndpoint     bool      `json:"same_endpoint"`
	Step             int       `json:"step"`
	Cluster          string    `json:"cluster"`
	ServiceGroupName string    `json:"service_group_name"`
	CustomDashboard  bool      `json:"custom_dashboard"`
	PieMetricType    string    `json:"pie_metric_type"`
	PieAggType       string    `json:"pie_agg_type"`
}

type QueryProblemAlarmDto

type QueryProblemAlarmDto struct {
	Endpoint string    `json:"endpoint"`
	Metric   string    `json:"metric"`
	Priority string    `json:"priority"`
	Page     *PageInfo `json:"page"`
}

type QueryPrometheusMetricParam

type QueryPrometheusMetricParam struct {
	Ip            string   `json:"ip"`
	Port          string   `json:"port"`
	Cluster       string   `json:"cluster"`
	Prefix        []string `json:"prefix"`
	Keyword       []string `json:"keyword"`
	TargetGuid    string   `json:"target_guid"`
	EndpointGuid  string   `json:"endpoint_guid"`
	IsConfigQuery bool     `json:"is_config_query"`
	ServiceGroup  string   `json:"service_group"`
}

type QueryRequestFilterObj

type QueryRequestFilterObj struct {
	Name     string      `json:"name"`
	Operator string      `json:"operator"`
	Value    interface{} `json:"value"`
}

type QueryRequestParam

type QueryRequestParam struct {
	Filters       []*QueryRequestFilterObj `json:"filters"`
	Paging        bool                     `json:"paging"`
	Pageable      *PageInfo                `json:"pageable"`
	Sorting       *QueryRequestSorting     `json:"sorting"`
	ResultColumns []string                 `json:"resultColumns"`
}

type QueryRequestSorting

type QueryRequestSorting struct {
	Asc   bool   `json:"asc"`
	Field string `json:"field"`
}

type RFAnnotation

type RFAnnotation struct {
	Summary     string `yaml:"summary"`
	Description string `yaml:"description"`
}

type RFClusterRequestObj

type RFClusterRequestObj struct {
	Name  string    `json:"name"`
	Rules []*RFRule `json:"rules"`
}

type RFGroup

type RFGroup struct {
	Name  string    `yaml:"name"`
	Rules []*RFRule `yaml:"rules"`
}

RF -> RuleFile

type RFRule

type RFRule struct {
	Alert       string            `yaml:"alert"`
	Expr        string            `yaml:"expr"`
	For         string            `yaml:"for"`
	Labels      map[string]string `yaml:"labels"`
	Annotations RFAnnotation      `yaml:"annotations"`
}

type RecursivePanelObj

type RecursivePanelObj struct {
	DisplayName string               `json:"display_name"`
	Charts      []*ChartModel        `json:"charts"`
	Children    []*RecursivePanelObj `json:"children"`
}

type RegisterConsulCheck

type RegisterConsulCheck struct {
	Http     string `json:"http"`
	Interval string `json:"interval"`
}

type RegisterConsulParam

type RegisterConsulParam struct {
	Id      string                 `json:"id"`
	Name    string                 `json:"name"`
	Address string                 `json:"address"`
	Port    int                    `json:"port"`
	Tags    []string               `json:"tags"`
	Checks  []*RegisterConsulCheck `json:"checks"`
}

type RegisterParam

type RegisterParam struct {
	Type         string `json:"type" form:"type" binding:"required"`
	ExporterIp   string `json:"exporter_ip" form:"exporter_ip" binding:"required"`
	ExporterPort string `json:"exporter_port" form:"exporter_port" binding:"required"`
	Instance     string `json:"instance" form:"instance"`
	User         string `json:"user"`
	Password     string `json:"password"`
}

type RegisterParamNew

type RegisterParamNew struct {
	Guid             string `json:"guid"`
	Type             string `json:"type"`
	Name             string `json:"name"`
	Ip               string `json:"ip"`
	Port             string `json:"port"`
	User             string `json:"user"`
	Password         string `json:"password"`
	Method           string `json:"method"`
	Url              string `json:"url"`
	AddDefaultGroup  bool   `json:"add_default_group"`
	DefaultGroupName string `json:"default_group_name"`
	AgentManager     bool   `json:"agent_manager"`
	FetchMetric      bool   `json:"fetch_metric"`
	Step             int    `json:"step"`
	ExportAddress    string `json:"export_address"`
	Cluster          string `json:"cluster"`
	ProxyExporter    string `json:"proxy_exporter"`
	ProcessName      string `json:"process_name"`
	Tags             string `json:"tags"`
}

type RelRoleGrpTable

type RelRoleGrpTable struct {
	Id     int `json:"id"`
	RoleId int `json:"role_id"`
	GrpId  int `json:"grp_id"`
}

type RelRoleUserTable

type RelRoleUserTable struct {
	Id     int `json:"id"`
	RoleId int `json:"role_id"`
	UserId int `json:"user_id"`
}

type RequestCoreVariableDto

type RequestCoreVariableDto struct {
	Filters  []*CoreVariableFilter `json:"filters"`
	Pageable CoreVariablePage      `json:"pageable"`
	Paging   bool                  `json:"paging"`
}

type RequestCoreVariableResult

type RequestCoreVariableResult struct {
	Data    CoreVariableResultData `json:"data"`
	Message string                 `json:"message"`
	Status  string                 `json:"status"`
}

type RoleGrpDto

type RoleGrpDto struct {
	GrpId  int   `json:"grp_id"`
	RoleId []int `json:"role_id"`
}

type RoleNewTable

type RoleNewTable struct {
	Guid        string `json:"guid" xorm:"guid"`
	DisplayName string `json:"display_name" xorm:"display_name"`
	Email       string `json:"email" xorm:"email"`
	Phone       string `json:"phone" xorm:"phone"`
	UpdateTime  string `json:"update_time" xorm:"update_time"`
}

type RoleQuery

type RoleQuery struct {
	Id            int       `json:"id"`
	Name          string    `json:"name"`
	DisplayName   string    `json:"display_name"`
	Email         string    `json:"email"`
	Creator       string    `json:"creator"`
	Created       time.Time `json:"created"`
	CreatedString string    `json:"created_string"`
}

type RoleTable

type RoleTable struct {
	Id            int       `json:"id"`
	Name          string    `json:"name"`
	DisplayName   string    `json:"display_name"`
	Email         string    `json:"email"`
	Parent        int       `json:"parent"`
	Creator       string    `json:"creator"`
	Created       time.Time `json:"created"`
	MainDashboard int       `json:"main_dashboard"`
	Disable       int       `json:"disable"`
}

type RuleFile

type RuleFile struct {
	Groups []*RFGroup `yaml:"groups"`
}

type RuleLocalConfigJob

type RuleLocalConfigJob struct {
	EndpointGroup string
	TplId         int
	FromPeer      bool
	Name          string
	Rules         []*RFRule
}

type SdConfigSyncObj

type SdConfigSyncObj struct {
	Step    int    `json:"step"`
	Content string `json:"content"`
}

type SdFileConfig

type SdFileConfig struct {
	Enable bool   `json:"enable"`
	Path   string `json:"path"`
}

type SdLocalConfigJob

type SdLocalConfigJob struct {
	FromPeer bool
	Configs  []*SdConfigSyncObj
}

type SearchModel

type SearchModel struct {
	Id             int    `json:"id"`
	Enable         bool   `json:"enable"`
	Name           string `json:"name"`
	SearchUrl      string `json:"search_url"`
	SearchCol      string `json:"search_col"`
	RefreshPanels  bool   `json:"refresh_panels"`
	RefreshMessage bool   `json:"refresh_message"`
}

type SendAlertObj

type SendAlertObj struct {
	Accept  []string
	Subject string
	Content string
}

type SerialModel

type SerialModel struct {
	Type string      `json:"type"`
	Name string      `json:"name"`
	Data [][]float64 `json:"data"`
}

type ServiceDiscoverFileList

type ServiceDiscoverFileList []*ServiceDiscoverFileObj

func (ServiceDiscoverFileList) TurnToFileSdConfigByte

func (s ServiceDiscoverFileList) TurnToFileSdConfigByte(step int) []byte

type ServiceDiscoverFileObj

type ServiceDiscoverFileObj struct {
	Guid    string `json:"guid"`
	Address string `json:"address"`
	Step    int    `json:"step"`
	Cluster string `json:"cluster"`
}

type ServiceGroupEndpointListObj

type ServiceGroupEndpointListObj struct {
	Guid        string `json:"guid"`
	DisplayName string `json:"display_name"`
	Type        string `json:"type"`
}

type ServiceGroupLinkNode

type ServiceGroupLinkNode struct {
	Guid     string                  `json:"guid"`
	Parent   *ServiceGroupLinkNode   `json:"parent"`
	Children []*ServiceGroupLinkNode `json:"children"`
}

func (*ServiceGroupLinkNode) FetchChildGuid

func (s *ServiceGroupLinkNode) FetchChildGuid() []string

func (*ServiceGroupLinkNode) FetchParentGuid

func (s *ServiceGroupLinkNode) FetchParentGuid() []string

type ServiceGroupRoleRelTable

type ServiceGroupRoleRelTable struct {
	Guid         string `json:"guid" xorm:"guid"`
	ServiceGroup string `json:"service_group" xorm:"service_group"`
	Role         string `json:"role" xorm:"role"`
}

type ServiceGroupTable

type ServiceGroupTable struct {
	Guid        string `json:"guid" xorm:"guid"`
	DisplayName string `json:"display_name" xorm:"display_name"`
	Description string `json:"description" xorm:"description"`
	Parent      string `json:"parent" xorm:"parent"`
	ServiceType string `json:"service_type" xorm:"service_type"`
	UpdateTime  string `json:"update_time" xorm:"update_time"`
}

type Session

type Session struct {
	User   string `json:"user"`
	Token  string `json:"token"`
	Expire int64  `json:"expire"`
}

type SessionConfig

type SessionConfig struct {
	Enable       string             `json:"enable"`
	Expire       int64              `json:"expire"`
	ServerEnable bool               `json:"server_enable"`
	ServerToken  string             `json:"server_token"`
	Redis        SessionRedisConfig `json:"redis"`
}

type SessionRedisConfig

type SessionRedisConfig struct {
	Enable  bool   `json:"enable"`
	Server  string `json:"server"`
	Port    int    `json:"port"`
	Pwd     string `json:"pwd"`
	Db      int    `json:"db"`
	MaxIdle int    `json:"max_idle"`
}

type SimpleMapObj

type SimpleMapObj struct {
	Key   string
	Value string
}

type SnmpEndpointRelTable

type SnmpEndpointRelTable struct {
	Id           int    `json:"id"`
	SnmpExporter string `json:"snmp_exporter"`
	EndpointGuid string `json:"endpoint_guid"`
	Target       string `json:"target"`
}

type SnmpExporterTable

type SnmpExporterTable struct {
	Id             string    `json:"id" binding:"required"`
	ScrapeInterval int       `json:"scrape_interval"`
	Address        string    `json:"address" binding:"required"`
	Modules        string    `json:"modules"`
	CreateAt       time.Time `json:"create_at"`
	UpdateAt       time.Time `json:"update_at"`
}

type SortAlarmList

type SortAlarmList []*AlarmTable

func (SortAlarmList) Len

func (a SortAlarmList) Len() int

func (SortAlarmList) Less

func (a SortAlarmList) Less(i, j int) bool

func (SortAlarmList) Swap

func (a SortAlarmList) Swap(i, j int)

type StoreConfig

type StoreConfig struct {
	Name     string `json:"name"`
	Type     string `json:"type"`
	Server   string `json:"server"`
	Port     string `json:"port"`
	User     string `json:"user"`
	Pwd      string `json:"pwd"`
	DataBase string `json:"database"`
	MaxOpen  int    `json:"maxOpen"`
	MaxIdle  int    `json:"maxIdle"`
	Timeout  int    `json:"timeout"`
}

type StrategyTable

type StrategyTable struct {
	Id           int    `json:"id"`
	TplId        int    `json:"tpl_id"`
	Metric       string `json:"metric" binding:"required"`
	Expr         string `json:"expr" binding:"required"`
	Cond         string `json:"cond" binding:"required"`
	Last         string `json:"last" binding:"required"`
	Priority     string `json:"priority" binding:"required"`
	Content      string `json:"content" binding:"required"`
	ConfigType   string `json:"config_type"`
	NotifyEnable int    `json:"notify_enable"`
	NotifyDelay  int    `json:"notify_delay"`
}

type SyncConsulDto

type SyncConsulDto struct {
	IsRegister bool     `json:"is_register"`
	Guid       string   `json:"guid"`
	Ip         string   `json:"ip"`
	Port       string   `json:"port"`
	Tags       []string `json:"tags"`
	Interval   int      `json:"interval"`
}

type SyncProcessDto

type SyncProcessDto struct {
	Check   int               `json:"check"`
	Process []*SyncProcessObj `json:"process"`
}

type SyncProcessObj

type SyncProcessObj struct {
	ProcessGuid string `json:"process_guid"`
	ProcessName string `json:"process_name"`
	ProcessTags string `json:"process_tags"`
}

type SyncSdConfigDto

type SyncSdConfigDto struct {
	IsRegister bool     `json:"is_register"`
	Guid       string   `json:"guid"`
	Ip         string   `json:"ip"`
	Port       string   `json:"port"`
	Tags       []string `json:"tags"`
	Step       int      `json:"step"`
	StepList   []int    `json:"step_list"`
}

type SysAlertMailParameter

type SysAlertMailParameter struct {
	SenderName   string `json:"sender_name"`
	SenderMail   string `json:"sender_mail"`
	AuthServer   string `json:"auth_server"`
	AuthPassword string `json:"auth_password"`
	SSL          string `json:"ssl"`
}

type SysMetricTemplateParameter

type SysMetricTemplateParameter struct {
	Name     string `json:"name"`
	PromExpr string `json:"prom_expr"`
	Param    string `json:"param"`
}

type SysParameterTable

type SysParameterTable struct {
	Guid       string `json:"guid" xorm:"guid"`
	ParamKey   string `json:"param_key" xorm:"param_key"`
	ParamValue string `json:"param_value" xorm:"param_value"`
}

type TableData

type TableData struct {
	Data interface{} `json:"data"`
	Page int         `json:"page"`
	Size int         `json:"size"`
	Num  int         `json:"num"`
}

type TagsModel

type TagsModel struct {
	Enable bool           `json:"enable"`
	Url    string         `json:"url"`
	Option []*OptionModel `json:"option"`
}

type TelnetSourceQuery

type TelnetSourceQuery struct {
	Guid string `json:"guid"`
	Ip   string `json:"ip"`
	Port int    `json:"port"`
}

type TplObj

type TplObj struct {
	TplId      int              `json:"tpl_id"`
	ObjId      int              `json:"obj_id"`
	ObjName    string           `json:"obj_name"`
	ObjType    string           `json:"obj_type"`
	Operation  bool             `json:"operation"`
	Accept     []*OptionModel   `json:"accept"`
	Strategy   []*StrategyTable `json:"strategy"`
	LogMonitor []*LogMonitorDto `json:"log_monitor"`
}

type TplQuery

type TplQuery struct {
	SearchType string    `json:"search_type"`
	SearchId   int       `json:"search_id"`
	Tpl        []*TplObj `json:"tpl"`
}

type TplStrategyLogMonitorTable

type TplStrategyLogMonitorTable struct {
	TplId        int    `json:"tpl_id"`
	GrpId        int    `json:"grp_id"`
	LogMonitorId int    `json:"log_monitor_id"`
	EndpointId   int    `json:"endpoint_id"`
	StrategyId   int    `json:"strategy_id"`
	Expr         string `json:"expr" binding:"required"`
	Cond         string `json:"cond" binding:"required"`
	Last         string `json:"last"`
	Priority     string `json:"priority" binding:"required"`
	Path         string `json:"path"`
	Keyword      string `json:"keyword"`
}

type TplStrategyTable

type TplStrategyTable struct {
	TplId        int    `json:"tpl_id"`
	GrpId        int    `json:"grp_id"`
	EndpointId   int    `json:"endpoint_id"`
	StrategyId   int    `json:"strategy_id"`
	Metric       string `json:"metric" binding:"required"`
	Expr         string `json:"expr" binding:"required"`
	Cond         string `json:"cond" binding:"required"`
	Last         string `json:"last" binding:"required"`
	Priority     string `json:"priority" binding:"required"`
	Content      string `json:"content" binding:"required"`
	NotifyEnable int    `json:"notify_enable"`
	NotifyDelay  int    `json:"notify_delay"`
}

type TplTable

type TplTable struct {
	Id         int       `json:"id"`
	GrpId      int       `json:"grp_id"`
	EndpointId int       `json:"endpoint_id"`
	NotifyUrl  string    `json:"notify_url"`
	CreateUser string    `json:"create_user"`
	UpdateUser string    `json:"update_user"`
	ActionUser string    `json:"action_user"`
	ActionRole string    `json:"action_role"`
	ExtraMail  string    `json:"extra_mail"`
	ExtraPhone string    `json:"extra_phone"`
	CreateAt   time.Time `json:"create_at"`
	UpdateAt   time.Time `json:"update_at"`
}

type TransFiltersParam

type TransFiltersParam struct {
	IsStruct   bool
	StructObj  interface{}
	Prefix     string
	KeyMap     map[string]string
	PrimaryKey string
}

type TransGatewayMetricDto

type TransGatewayMetricDto struct {
	Params []*TransGatewayRequestDto `json:"params"`
}

type TransGatewayRequestDto

type TransGatewayRequestDto struct {
	Name    string   `json:"name"`
	HostIp  string   `json:"host_ip"`
	Address string   `json:"address"`
	Metrics []string `json:"metrics"`
}

type UpdateActionDto

type UpdateActionDto struct {
	TplId  int           `json:"tpl_id" binding:"required"`
	Accept []OptionModel `json:"accept"`
}

type UpdateAlarmCustomMessageDto

type UpdateAlarmCustomMessageDto struct {
	Id       int    `json:"id" binding:"required"`
	IsCustom bool   `json:"is_custom"`
	Message  string `json:"message"`
}

type UpdateChartTitleParam

type UpdateChartTitleParam struct {
	ChartId int    `json:"chart_id"`
	Metric  string `json:"metric"`
	Name    string `json:"name" binding:"required"`
}

type UpdateEndpointTelnetParam

type UpdateEndpointTelnetParam struct {
	Guid   string               `json:"guid" binding:"required"`
	Config []*EndpointTelnetObj `json:"config"`
}

type UpdateGroupEndpointParam

type UpdateGroupEndpointParam struct {
	GroupGuid        string   `json:"group_guid"`
	EndpointGuidList []string `json:"endpoint_guid_list"`
}

type UpdateGrp

type UpdateGrp struct {
	Groups      []*GrpTable
	Operation   string
	OperateUser string
}

type UpdateLogMonitor

type UpdateLogMonitor struct {
	LogMonitor  []*LogMonitorTable
	Operation   string
	OperateUser string
}

type UpdateOrgConnectParam

type UpdateOrgConnectParam struct {
	Guid  string   `json:"guid" binding:"required"`
	Mail  []string `json:"mail"`
	Phone []string `json:"phone"`
}

type UpdateOrgPanelEndpointParam

type UpdateOrgPanelEndpointParam struct {
	Guid     string   `json:"guid" binding:"required"`
	Endpoint []string `json:"endpoint"`
}

type UpdateOrgPanelEventParam

type UpdateOrgPanelEventParam struct {
	Guid                string `json:"guid" binding:"required"`
	FiringCallbackName  string `json:"firing_callback_name"`
	FiringCallbackKey   string `json:"firing_callback_key"`
	RecoverCallbackName string `json:"recover_callback_name"`
	RecoverCallbackKey  string `json:"recover_callback_key"`
}

type UpdateOrgPanelParam

type UpdateOrgPanelParam struct {
	Guid        string `json:"guid"`
	DisplayName string `json:"display_name"`
	Parent      string `json:"parent"`
	Type        string `json:"type"`
	Force       string `json:"force"`
}

type UpdateOrgPanelRoleParam

type UpdateOrgPanelRoleParam struct {
	Guid   string `json:"guid" binding:"required"`
	RoleId []int  `json:"role_id"`
}

type UpdateRoleDto

type UpdateRoleDto struct {
	RoleId      int    `json:"role_id"`
	Name        string `json:"name"`
	DisplayName string `json:"display_name"`
	Email       string `json:"email"`
	Parent      int    `json:"parent"`
	Operator    string `json:"operator"`
	Operation   string `json:"operation" binding:"required"`
}

type UpdateRoleUserDto

type UpdateRoleUserDto struct {
	RoleId int   `json:"role_id" binding:"required"`
	UserId []int `json:"user_id"`
}

type UpdateStrategy

type UpdateStrategy struct {
	Strategy    []*StrategyTable
	Operation   string
	OperateUser string
}

type UpdateUserDto

type UpdateUserDto struct {
	NewPassword   string `form:"new_password" json:"new_password"`
	ReNewPassword string `form:"re_new_password" json:"re_new_password"`
	DisplayName   string `form:"display_name" json:"display_name"`
	Email         string `form:"email" json:"email"`
	Phone         string `form:"phone" json:"phone"`
}

type User

type User struct {
	Id       int    `json:"id" xorm:"id"`
	UserName string `json:"name" xorm:"name"`
	Password string `json:"pwd" xorm:"pwd"`
}

type UserQuery

type UserQuery struct {
	Id            int       `json:"id"`
	Name          string    `json:"name"`
	Passwd        string    `json:"passwd"`
	DisplayName   string    `json:"display_name"`
	Role          string    `json:"role"`
	Email         string    `json:"email"`
	Phone         string    `json:"phone"`
	Creator       string    `json:"creator"`
	Created       time.Time `json:"created"`
	CreatedString string    `json:"created_string"`
}

type UserTable

type UserTable struct {
	Id            int       `json:"id"`
	Name          string    `json:"name"`
	Passwd        string    `json:"passwd"`
	DisplayName   string    `json:"display_name"`
	Email         string    `json:"email"`
	Phone         string    `json:"phone"`
	ExtContactOne string    `json:"ext_contact_one"`
	ExtContactTwo string    `json:"ext_contact_two"`
	Created       time.Time `json:"created"`
}

type YaxisModel

type YaxisModel struct {
	Unit string `json:"unit"`
}

Jump to

Keyboard shortcuts

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