monitor

package
v0.3.9-5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0, Apache-2.0 Imports: 12 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Alerts             *SAlertManager
	Notifications      *SNotificationManager
	Alertnotification  *SAlertnotificationManager
	AlertResources     *SAlertResourceManager
	AlertResourceAlert *SAlertResourceAlertManager
)
View Source
var (
	MonitorResourceManager      *SMonitorResourceManager
	MonitorResourceAlertManager *SMonitorResourceAlertManager
)
View Source
var (
	DataSources modulebase.ResourceManager
)

Functions

This section is empty.

Types

type AlertCondition

type AlertCondition struct {
	// contains filtered or unexported fields
}

func NewAlertCondition

func NewAlertCondition(
	database string,
	measurement string,
) *AlertCondition

func (*AlertCondition) Avg

func (c *AlertCondition) Avg() *AlertCondition

func (*AlertCondition) Count

func (c *AlertCondition) Count() *AlertCondition

func (*AlertCondition) GT

func (c *AlertCondition) GT(threshold float64) *AlertCondition

GreaterThan is evaluator part

func (*AlertCondition) LT

func (c *AlertCondition) LT(threshold float64) *AlertCondition

LessThan is evaluator part

func (*AlertCondition) Last

func (c *AlertCondition) Last() *AlertCondition

func (*AlertCondition) Max

func (c *AlertCondition) Max() *AlertCondition

func (*AlertCondition) Median

func (c *AlertCondition) Median() *AlertCondition

func (*AlertCondition) Min

func (c *AlertCondition) Min() *AlertCondition

func (*AlertCondition) Query

func (c *AlertCondition) Query() *AlertQuery

func (*AlertCondition) Sum

func (c *AlertCondition) Sum() *AlertCondition

func (*AlertCondition) ToCommonAlertQuery

func (c *AlertCondition) ToCommonAlertQuery() monitor.CommonAlertQuery

func (*AlertCondition) ToCondition

func (c *AlertCondition) ToCondition() monitor.AlertCondition

type AlertConfig

type AlertConfig struct {
	UsedBy string
	// contains filtered or unexported fields
}

AlertConfig is a helper to generate monitor service alert related api input

func NewAlertConfig

func NewAlertConfig(name string, frequency string, enabled bool) (*AlertConfig, error)

func (*AlertConfig) AND

func (c *AlertConfig) AND(cs ...*AlertCondition) *AlertConfig

func (*AlertConfig) Condition

func (c *AlertConfig) Condition(database string, measurement string) *AlertCondition

func (*AlertConfig) Enable

func (c *AlertConfig) Enable(e bool) *AlertConfig

func (*AlertConfig) ExecutionErrorState

func (c *AlertConfig) ExecutionErrorState(s string) *AlertConfig

func (*AlertConfig) Level

func (c *AlertConfig) Level(l string) *AlertConfig

func (*AlertConfig) NoDataState

func (c *AlertConfig) NoDataState(s string) *AlertConfig

func (*AlertConfig) OR

func (c *AlertConfig) OR(cs ...*AlertCondition) *AlertConfig

func (*AlertConfig) ToAlertCreateInput

func (c *AlertConfig) ToAlertCreateInput() monitor.AlertCreateInput

func (*AlertConfig) ToAlertSetting

func (c *AlertConfig) ToAlertSetting() monitor.AlertSetting

func (*AlertConfig) ToCommonAlertCreateInput

func (*AlertConfig) ToCommonMetricInputQuery

func (c *AlertConfig) ToCommonMetricInputQuery() monitor.CommonMetricInputQuery

type AlertQuery

type AlertQuery struct {
	// contains filtered or unexported fields
}

func NewAlertQuery

func NewAlertQuery(database string, measurement string) *AlertQuery

func (*AlertQuery) Alias

func (q *AlertQuery) Alias(alias string) *AlertQuery

func (*AlertQuery) Database

func (q *AlertQuery) Database(db string) *AlertQuery

func (*AlertQuery) From

func (q *AlertQuery) From(from string) *AlertQuery

func (*AlertQuery) GroupBy

func (q *AlertQuery) GroupBy() *AlertQueryGroupBy

func (*AlertQuery) Interval

func (q *AlertQuery) Interval(i string) *AlertQuery

func (*AlertQuery) Measurement

func (q *AlertQuery) Measurement(m string) *AlertQuery

func (*AlertQuery) Policy

func (q *AlertQuery) Policy(p string) *AlertQuery

func (*AlertQuery) Selects

func (q *AlertQuery) Selects() *AlertQuerySelects

func (*AlertQuery) To

func (q *AlertQuery) To(to string) *AlertQuery

func (*AlertQuery) ToAlertQuery

func (q *AlertQuery) ToAlertQuery() monitor.AlertQuery

func (*AlertQuery) ToMetricQuery

func (q *AlertQuery) ToMetricQuery() monitor.MetricQuery

func (*AlertQuery) ToTsdbQuery

func (q *AlertQuery) ToTsdbQuery() *tsdb.TsdbQuery

func (*AlertQuery) Tz

func (q *AlertQuery) Tz(tz string) *AlertQuery

func (*AlertQuery) Where

func (q *AlertQuery) Where() *AlertQueryWhere

type AlertQueryGroupBy

type AlertQueryGroupBy struct {
	// contains filtered or unexported fields
}

func (*AlertQueryGroupBy) FILL

func (*AlertQueryGroupBy) FILL_NULL

func (g *AlertQueryGroupBy) FILL_NULL() *AlertQueryGroupBy

func (*AlertQueryGroupBy) TAG

func (*AlertQueryGroupBy) TIME

func (*AlertQueryGroupBy) ToGroupBy

func (g *AlertQueryGroupBy) ToGroupBy() []monitor.MetricQueryPart

type AlertQuerySelect

type AlertQuerySelect struct {
	monitor.MetricQuerySelect
}

func (*AlertQuerySelect) AS

AS is alias method

func (*AlertQuerySelect) COUNT

func (s *AlertQuerySelect) COUNT() *AlertQuerySelect

func (*AlertQuerySelect) DISTINCT

func (s *AlertQuerySelect) DISTINCT() *AlertQuerySelect

func (*AlertQuerySelect) MATH

func (s *AlertQuerySelect) MATH(op string, val string) *AlertQuerySelect

MATH method

func (*AlertQuerySelect) MAX

func (*AlertQuerySelect) MEAN

Aggregations method

func (*AlertQuerySelect) MIN

func (*AlertQuerySelect) SUM

type AlertQuerySelects

type AlertQuerySelects struct {
	// contains filtered or unexported fields
}

func (*AlertQuerySelects) Select

func (s *AlertQuerySelects) Select(fieldName string) *AlertQuerySelect

func (*AlertQuerySelects) ToSelects

func (s *AlertQuerySelects) ToSelects() []monitor.MetricQuerySelect

type AlertQueryWhere

type AlertQueryWhere struct {
	// contains filtered or unexported fields
}

func (*AlertQueryWhere) AND

func (w *AlertQueryWhere) AND() *AlertQueryWhere

func (*AlertQueryWhere) Equal

func (w *AlertQueryWhere) Equal(key string, value string) *AlertQueryWhere

func (*AlertQueryWhere) GT

func (w *AlertQueryWhere) GT(key string, value string) *AlertQueryWhere

func (*AlertQueryWhere) IN

func (w *AlertQueryWhere) IN(key string, vals []string) *AlertQueryWhere

func (*AlertQueryWhere) LT

func (w *AlertQueryWhere) LT(key string, value string) *AlertQueryWhere

func (*AlertQueryWhere) NotEqual

func (w *AlertQueryWhere) NotEqual(key string, value string) *AlertQueryWhere

func (*AlertQueryWhere) OR

func (*AlertQueryWhere) REGEX

func (w *AlertQueryWhere) REGEX(key, val string) *AlertQueryWhere

func (*AlertQueryWhere) ToTags

func (w *AlertQueryWhere) ToTags() []monitor.MetricQueryTag

type SAlertDashBoardManager

type SAlertDashBoardManager struct {
	*modulebase.ResourceManager
}
var (
	AlertDashBoardManager *SAlertDashBoardManager
)

func NewAlertDashBoardManager

func NewAlertDashBoardManager() *SAlertDashBoardManager

type SAlertManager

type SAlertManager struct {
	*modulebase.ResourceManager
}

func NewAlertManager

func NewAlertManager() *SAlertManager

func (*SAlertManager) DoCreate

func (*SAlertManager) DoTestRun

type SAlertPanelManager

type SAlertPanelManager struct {
	*modulebase.ResourceManager
}
var (
	AlertPanelManager *SAlertPanelManager
)

func NewAlertPanelManager

func NewAlertPanelManager() *SAlertPanelManager

type SAlertRecordManager

type SAlertRecordManager struct {
	*modulebase.ResourceManager
}
var (
	AlertRecordManager       *SAlertRecordManager
	AlertRecordShieldManager *SAlertRecordManager
)

func NewAlertRecordManager

func NewAlertRecordManager() *SAlertRecordManager

func NewAlertRecordShieldManager

func NewAlertRecordShieldManager() *SAlertRecordManager

type SAlertResourceAlertManager

type SAlertResourceAlertManager struct {
	*modulebase.JointResourceManager
}

func NewAlertResourceAlertManager

func NewAlertResourceAlertManager() *SAlertResourceAlertManager

type SAlertResourceManager

type SAlertResourceManager struct {
	*modulebase.ResourceManager
}

func NewAlertResourceManager

func NewAlertResourceManager() *SAlertResourceManager

type SAlertnotificationManager

type SAlertnotificationManager struct {
	*modulebase.JointResourceManager
}

func NewAlertnotificationManager

func NewAlertnotificationManager() *SAlertnotificationManager

type SCommonAlertManager

type SCommonAlertManager struct {
	*modulebase.ResourceManager
}
var (
	CommonAlerts *SCommonAlertManager
)

func NewCommonAlertManager

func NewCommonAlertManager() *SCommonAlertManager

func (*SCommonAlertManager) DoCreate

type SMetricFieldManager

type SMetricFieldManager struct {
	*modulebase.ResourceManager
}
var (
	MetricFieldManager *SMetricFieldManager
)

func NewMetricFieldManager

func NewMetricFieldManager() *SMetricFieldManager

type SMetricManager

type SMetricManager struct {
	*modulebase.ResourceManager
}
var (
	MetricManager *SMetricManager
)

func NewMetricManager

func NewMetricManager() *SMetricManager

type SMigrationAlertManager

type SMigrationAlertManager struct {
	*modulebase.ResourceManager
}
var (
	MigrationAlertManager *SMigrationAlertManager
)

func NewMigrationAlertManager

func NewMigrationAlertManager() *SMigrationAlertManager

type SMonitorResourceAlertManager

type SMonitorResourceAlertManager struct {
	*modulebase.JointResourceManager
}

type SMonitorResourceManager

type SMonitorResourceManager struct {
	*modulebase.ResourceManager
}

func NewMonitorResourceManager

func NewMonitorResourceManager() *SMonitorResourceManager

type SNotificationManager

type SNotificationManager struct {
	*modulebase.ResourceManager
}

func NewNotificationManager

func NewNotificationManager() *SNotificationManager

type SUnifiedMonitorManager

type SUnifiedMonitorManager struct {
	*modulebase.ResourceManager
}
var (
	UnifiedMonitorManager *SUnifiedMonitorManager
)

func NewUnifiedMonitorManager

func NewUnifiedMonitorManager() *SUnifiedMonitorManager

Jump to

Keyboard shortcuts

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