Documentation ¶
Index ¶
- Constants
- Variables
- func Aggregate(data [][]float64, step int64, method string) [][]float64
- func CalcData(data []float64, method string) float64
- func GetCoreToken() string
- func InitConfig(cfg string)
- func InitCoreToken()
- func TransPluginMultiStringParam(input interface{}) []string
- type AMRespAlert
- type AcceptObj
- type AgentConfig
- type AgentManagerTable
- type AlarmCloseParam
- type AlarmCustomTable
- type AlarmEndpointObj
- type AlarmEndpointQuery
- type AlarmEntity
- type AlarmEntityObj
- type AlarmEventEntity
- type AlarmEventEntityObj
- type AlarmHandleObj
- type AlarmHistoryReturnData
- type AlarmNotifyTable
- type AlarmProblemCountList
- type AlarmProblemCountObj
- type AlarmProblemList
- type AlarmProblemQuery
- type AlarmProblemQueryResult
- type AlarmStrategyMetricObj
- type AlarmStrategyTable
- type AlarmTable
- type AlertConfig
- type AlertMailConfig
- type AlertWindowObj
- type AlertWindowParam
- type AlertWindowTable
- type AliveCheckQueueTable
- type AlterManagerRespObj
- type ArchiveMysqlConfig
- type ArchiveQueryTable
- type BusinessAgentDto
- type BusinessMetricObj
- type BusinessMonitorCfgObj
- type BusinessMonitorCfgTable
- type BusinessMonitorCustomObj
- type BusinessMonitorTable
- type BusinessStringMapObj
- type BusinessUpdateDto
- type BusinessUpdatePathObj
- type ButtonModel
- type CapacityServerConfig
- type Chart
- type ChartConfigObj
- type ChartModel
- type ChartQueryCompareParam
- type ChartQueryConfigObj
- type ChartQueryParam
- type ChartTable
- type CheckRegExpParam
- type ClusterAgentResponse
- type ClusterTable
- type ClusterTableNew
- type ConsulServicesDto
- type CoreJwtToken
- type CoreNotifyRequest
- type CoreNotifyResult
- type CoreProcessDataObj
- type CoreProcessResult
- type CoreProcessResultData
- type CoreRequestToken
- type CoreRoleDataObj
- type CoreRoleDto
- type CoreVariableFilter
- type CoreVariablePage
- type CoreVariableResultContentObj
- type CoreVariableResultData
- type CornJobObj
- type CronJobConfig
- type CustomAlarmQueryParam
- type CustomDashboardConfigObj
- type CustomDashboardConfigQueryObj
- type CustomDashboardObj
- type CustomDashboardQuery
- type CustomDashboardRoleDto
- type CustomDashboardRoleObj
- type CustomDashboardTable
- type CustomerDashboardRoleQuery
- type Dashboard
- type DashboardTable
- type DataSort
- type DataSourceConfig
- type DatasourceServers
- type DbMetricEndpointRelTable
- type DbMetricMonitorObj
- type DbMetricMonitorQueryObj
- type DbMetricMonitorTable
- type DbMonitorConfigQuery
- type DbMonitorListObj
- type DbMonitorSysNameDto
- type DbMonitorTable
- type DbMonitorTaskObj
- type DbMonitorUpdateDto
- type DefaultSortList
- type DefaultSortObj
- type DependenceConfig
- type DisplayDemoFlagDto
- type EChartOption
- type EChartPie
- type EChartPieObj
- type EndpointExtendParamObj
- type EndpointGroupRelTable
- type EndpointGroupTable
- type EndpointGrpParam
- type EndpointHttpTable
- type EndpointMetricTable
- type EndpointNewTable
- type EndpointServiceRelTable
- type EndpointStrategyObj
- type EndpointTable
- type EndpointTelnetObj
- type EndpointTelnetTable
- type EntityQueryObj
- type EntityQueryParam
- type ErrorMessageObj
- type EventTreeventNodeParam
- type EventTreeventNotifyDto
- type EventTreeventResponse
- type FileSdConfig
- type FileSdLabel
- type FileSdObj
- type GetEndpointMetricParam
- type GetOrgPanelCallbackData
- type GlobalConfig
- type GroupStrategyObj
- type GrpEndpointParam
- type GrpEndpointParamNew
- type GrpEndpointTable
- type GrpQuery
- type GrpStrategyExportObj
- type GrpStrategyQuery
- type GrpTable
- type HttpConfig
- type InitDeployParam
- type IsPluginModeResult
- type KubernetesClusterParam
- type KubernetesClusterTable
- type KubernetesEndpointRelTable
- type LdapConfig
- type LogConfig
- type LogKeywordAlarmTable
- type LogKeywordConfigTable
- type LogKeywordCronJobQuery
- type LogKeywordEndpointRelTable
- type LogKeywordFetchObj
- type LogKeywordHttpDto
- type LogKeywordHttpResult
- type LogKeywordHttpRuleObj
- type LogKeywordMonitorCreateObj
- type LogKeywordMonitorObj
- type LogKeywordMonitorTable
- type LogKeywordRowsHttpDto
- type LogKeywordRowsHttpResult
- type LogKeywordServiceGroupObj
- type LogMetricConfigObj
- type LogMetricConfigTable
- type LogMetricConfigTag
- type LogMetricEndpointRelTable
- type LogMetricJsonNeObj
- type LogMetricJsonObj
- type LogMetricJsonTable
- type LogMetricMonitorCreateDto
- type LogMetricMonitorNeObj
- type LogMetricMonitorObj
- type LogMetricMonitorTable
- type LogMetricNeObj
- type LogMetricNodeExporterResponse
- type LogMetricQueryObj
- type LogMetricStringMapNeObj
- type LogMetricStringMapTable
- type LogMonitorDto
- type LogMonitorStrategyDto
- type LogMonitorTable
- type LogMonitorTags
- type MainPageRoleQuery
- type MaintainDto
- type MaintainTable
- type MessageModel
- type MessageTable
- type MetricTable
- type MonitorTypeTable
- type NotifyObj
- type NotifyRoleRelTable
- type NotifyTable
- type OpenAlarmObj
- type OpenAlarmRequest
- type OpenAlarmResponse
- type OptionModel
- type OptionModelSortList
- type OrganizationPanel
- type PageInfo
- type PanelChartQueryObj
- type PanelModel
- type PanelRecursiveTable
- type PanelResult
- type PanelResultChartObj
- type PanelResultObj
- type PanelTable
- type PanelTag
- type PanelsModel
- type PeerConfig
- type PieChartConfigObj
- type PingExportSourceObj
- type PingExporterSourceDto
- type PluginBusinessConfigObj
- type PluginBusinessMetricObj
- type PluginBusinessOutput
- type PluginBusinessOutputObj
- type PluginBusinessRequest
- type PluginBusinessResp
- type PluginBusinessRuleObj
- type PluginBusinessValueMapObj
- type PluginBusinessValueRequestObj
- type PluginCloseAlarmOutput
- type PluginCloseAlarmOutputObj
- type PluginCloseAlarmRequest
- type PluginCloseAlarmRequestObj
- type PluginCloseAlarmResp
- type PluginSnmpExporterOutput
- type PluginSnmpExporterOutputObj
- type PluginSnmpExporterRequest
- type PluginSnmpExporterRequestObj
- type PluginSnmpExporterResp
- type PluginUpdateServicePathOutput
- type PluginUpdateServicePathOutputObj
- type PluginUpdateServicePathRequest
- type PluginUpdateServicePathRequestObj
- type PluginUpdateServicePathResp
- type ProcessMonitorTable
- type ProcessUpdateDto
- type ProcessUpdateDtoNew
- type PromMapSort
- type PromMetricObj
- type PromMetricTable
- type PromMetricUpdateChartParam
- type PromMetricUpdateParam
- type PrometheusConfig
- type PrometheusData
- type PrometheusParam
- type PrometheusResponse
- type PrometheusResult
- type QueryHistoryAlarmParam
- type QueryMonitorData
- type QueryProblemAlarmDto
- type QueryPrometheusMetricParam
- type QueryRequestFilterObj
- type QueryRequestParam
- type QueryRequestSorting
- type RFAnnotation
- type RFClusterRequestObj
- type RFGroup
- type RFRule
- type RecursivePanelObj
- type RegisterConsulCheck
- type RegisterConsulParam
- type RegisterParam
- type RegisterParamNew
- type RelRoleGrpTable
- type RelRoleUserTable
- type RequestCoreVariableDto
- type RequestCoreVariableResult
- type RoleGrpDto
- type RoleNewTable
- type RoleQuery
- type RoleTable
- type RuleFile
- type RuleLocalConfigJob
- type SdConfigSyncObj
- type SdFileConfig
- type SdLocalConfigJob
- type SearchModel
- type SendAlertObj
- type SerialModel
- type ServiceDiscoverFileList
- type ServiceDiscoverFileObj
- type ServiceGroupEndpointListObj
- type ServiceGroupLinkNode
- type ServiceGroupRoleRelTable
- type ServiceGroupTable
- type Session
- type SessionConfig
- type SessionRedisConfig
- type SimpleMapObj
- type SnmpEndpointRelTable
- type SnmpExporterTable
- type SortAlarmList
- type StoreConfig
- type StrategyTable
- type SyncConsulDto
- type SyncProcessDto
- type SyncProcessObj
- type SyncSdConfigDto
- type SysAlertMailParameter
- type SysMetricTemplateParameter
- type SysParameterTable
- type TableData
- type TagsModel
- type TelnetSourceQuery
- type TplObj
- type TplQuery
- type TplStrategyLogMonitorTable
- type TplStrategyTable
- type TplTable
- type TransFiltersParam
- type TransGatewayMetricDto
- type TransGatewayRequestDto
- type UpdateActionDto
- type UpdateAlarmCustomMessageDto
- type UpdateChartTitleParam
- type UpdateEndpointTelnetParam
- type UpdateGroupEndpointParam
- type UpdateGrp
- type UpdateLogMonitor
- type UpdateOrgConnectParam
- type UpdateOrgPanelEndpointParam
- type UpdateOrgPanelEventParam
- type UpdateOrgPanelParam
- type UpdateOrgPanelRoleParam
- type UpdateRoleDto
- type UpdateRoleUserDto
- type UpdateStrategy
- type UpdateUserDto
- type User
- type UserQuery
- type UserTable
- type YaxisModel
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 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 AgentConfig ¶
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 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 AlarmEndpointQuery ¶
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 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 AlertWindowObj ¶
type AlertWindowParam ¶
type AlertWindowParam struct { Endpoint string `json:"endpoint" binding:"required"` Data []*AlertWindowObj `json:"data"` }
type AlertWindowTable ¶
type AliveCheckQueueTable ¶
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 BusinessAgentDto ¶
type BusinessAgentDto struct { Path string `json:"path"` Config []*BusinessMonitorCfgObj `json:"config"` Custom []*BusinessMonitorCustomObj `json:"custom"` }
type BusinessMetricObj ¶
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 BusinessStringMapObj ¶
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 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 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 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 ClusterAgentResponse ¶
type ClusterTable ¶
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 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 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 CoreRoleDataObj ¶
type CoreRoleDto ¶
type CoreRoleDto struct { Status string `json:"status"` Message string `json:"message"` Data []CoreRoleDataObj `json:"data"` }
type CoreVariableFilter ¶
type CoreVariablePage ¶
type CoreVariableResultData ¶
type CoreVariableResultData struct {
Contents []*CoreVariableResultContentObj `json:"contents"`
}
type CornJobObj ¶
type CornJobObj struct { Func func() Interval int64 }
type CronJobConfig ¶
type CustomAlarmQueryParam ¶
type CustomDashboardConfigObj ¶
type CustomDashboardConfigObj struct {
Query []*CustomDashboardConfigQueryObj `json:"query"`
}
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 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 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 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 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 DbMonitorListObj ¶
type DbMonitorListObj struct { SysPanel string `json:"sys_panel"` SysPanelValue string `json:"sys_panel_value"` Data []*DbMonitorTable `json:"data"` }
type DbMonitorSysNameDto ¶
type DbMonitorTable ¶
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 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 DependenceConfig ¶
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 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 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 EndpointHttpTable ¶
type EndpointMetricTable ¶
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 EndpointStrategyObj ¶
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 EndpointTelnetTable ¶
type EntityQueryObj ¶
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 EventTreeventNotifyDto ¶
type EventTreeventNotifyDto struct { Type string `json:"type"` Data []*EventTreeventNodeParam `json:"data"` }
type EventTreeventResponse ¶
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 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 GrpEndpointParamNew ¶
type GrpEndpointTable ¶
type GrpStrategyExportObj ¶
type GrpStrategyExportObj struct { GrpName string `json:"grp_name"` Description string `json:"description"` Strategy []StrategyTable `json:"strategy"` }
type GrpStrategyQuery ¶
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 KubernetesClusterTable ¶
type LdapConfig ¶
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 LogKeywordFetchObj ¶
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 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 LogKeywordRowsHttpDto ¶
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 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 LogMetricQueryObj ¶
type LogMetricQueryObj struct { ServiceGroupTable Config []*LogMetricMonitorObj `json:"config"` }
type LogMetricStringMapNeObj ¶
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 LogMonitorStrategyDto ¶
type LogMonitorTable ¶
type LogMonitorTags ¶
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 MaintainTable ¶
type MessageModel ¶
type MessageTable ¶
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 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 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 OptionModel ¶
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 PanelChartQueryObj ¶
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 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 PanelsModel ¶
type PeerConfig ¶
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 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 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 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 PluginCloseAlarmRequest ¶
type PluginCloseAlarmRequest struct { RequestId string `json:"requestId"` Inputs []*PluginCloseAlarmRequestObj `json:"inputs"` }
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 PluginSnmpExporterRequest ¶
type PluginSnmpExporterRequest struct { RequestId string `json:"requestId"` Inputs []*PluginSnmpExporterRequestObj `json:"inputs"` }
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 PluginUpdateServicePathRequest ¶
type PluginUpdateServicePathRequest struct { RequestId string `json:"requestId"` DueDate string `json:"dueDate"` AllowedOptions []string `json:"allowedOptions"` Inputs []*PluginUpdateServicePathRequestObj `json:"inputs"` }
type PluginUpdateServicePathResp ¶
type PluginUpdateServicePathResp struct { ResultCode string `json:"resultCode"` ResultMessage string `json:"resultMessage"` Results PluginUpdateServicePathOutput `json:"results"` }
type ProcessMonitorTable ¶
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 PromMetricUpdateParam ¶
type PrometheusConfig ¶
type PrometheusData ¶
type PrometheusData struct { Result []PrometheusResult `json:"result"` ResultType string `json:"resultType"` }
type PrometheusParam ¶
type PrometheusResponse ¶
type PrometheusResponse struct { Status string `json:"status"` Data PrometheusData `json:"data"` }
type PrometheusResult ¶
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 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 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 RFAnnotation ¶
type RFClusterRequestObj ¶
type RecursivePanelObj ¶
type RecursivePanelObj struct { DisplayName string `json:"display_name"` Charts []*ChartModel `json:"charts"` Children []*RecursivePanelObj `json:"children"` }
type RegisterConsulCheck ¶
type RegisterConsulParam ¶
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 RelRoleUserTable ¶
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 RoleNewTable ¶
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 RuleLocalConfigJob ¶
type SdConfigSyncObj ¶
type SdFileConfig ¶
type SdLocalConfigJob ¶
type SdLocalConfigJob struct { FromPeer bool Configs []*SdConfigSyncObj }
type SearchModel ¶
type SendAlertObj ¶
type SerialModel ¶
type ServiceDiscoverFileList ¶
type ServiceDiscoverFileList []*ServiceDiscoverFileObj
func (ServiceDiscoverFileList) TurnToFileSdConfigByte ¶
func (s ServiceDiscoverFileList) TurnToFileSdConfigByte(step int) []byte
type ServiceDiscoverFileObj ¶
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 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 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 SimpleMapObj ¶
type SnmpEndpointRelTable ¶
type SnmpExporterTable ¶
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 SyncProcessDto ¶
type SyncProcessDto struct { Check int `json:"check"` Process []*SyncProcessObj `json:"process"` }
type SyncProcessObj ¶
type SyncSdConfigDto ¶
type SysAlertMailParameter ¶
type SysParameterTable ¶
type TagsModel ¶
type TagsModel struct { Enable bool `json:"enable"` Url string `json:"url"` Option []*OptionModel `json:"option"` }
type TelnetSourceQuery ¶
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 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 TransGatewayMetricDto ¶
type TransGatewayMetricDto struct {
Params []*TransGatewayRequestDto `json:"params"`
}
type TransGatewayRequestDto ¶
type UpdateActionDto ¶
type UpdateActionDto struct { TplId int `json:"tpl_id" binding:"required"` Accept []OptionModel `json:"accept"` }
type UpdateChartTitleParam ¶
type UpdateEndpointTelnetParam ¶
type UpdateEndpointTelnetParam struct { Guid string `json:"guid" binding:"required"` Config []*EndpointTelnetObj `json:"config"` }
type UpdateLogMonitor ¶
type UpdateLogMonitor struct { LogMonitor []*LogMonitorTable Operation string OperateUser string }
type UpdateOrgConnectParam ¶
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 UpdateOrgPanelRoleParam ¶
type UpdateRoleDto ¶
type UpdateRoleUserDto ¶
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 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"`
}
Source Files ¶
- agent.go
- aggregate.go
- alarm.go
- business.go
- cluster.go
- config.go
- const.go
- cron.go
- dashboard.go
- datasource.go
- db_metric.go
- db_monitor.go
- endpoint.go
- endpoint_group.go
- entity.go
- error.go
- kubernetes.go
- log_keyword.go
- log_metric.go
- organization.go
- process.go
- prometheus.go
- role.go
- service_group.go
- snmp.go
- user.go
- wecube.go
Click to show internal directories.
Click to hide internal directories.