Documentation ¶
Index ¶
- Variables
- type AlertCondition
- func (c *AlertCondition) Avg() *AlertCondition
- func (c *AlertCondition) Count() *AlertCondition
- func (c *AlertCondition) GT(threshold float64) *AlertCondition
- func (c *AlertCondition) LT(threshold float64) *AlertCondition
- func (c *AlertCondition) Last() *AlertCondition
- func (c *AlertCondition) Max() *AlertCondition
- func (c *AlertCondition) Median() *AlertCondition
- func (c *AlertCondition) Min() *AlertCondition
- func (c *AlertCondition) Query() *AlertQuery
- func (c *AlertCondition) Sum() *AlertCondition
- func (c *AlertCondition) ToCommonAlertQuery() monitor.CommonAlertQuery
- func (c *AlertCondition) ToCondition() monitor.AlertCondition
- type AlertConfig
- func (c *AlertConfig) AND(cs ...*AlertCondition) *AlertConfig
- func (c *AlertConfig) Condition(database string, measurement string) *AlertCondition
- func (c *AlertConfig) Enable(e bool) *AlertConfig
- func (c *AlertConfig) ExecutionErrorState(s string) *AlertConfig
- func (c *AlertConfig) Level(l string) *AlertConfig
- func (c *AlertConfig) NoDataState(s string) *AlertConfig
- func (c *AlertConfig) OR(cs ...*AlertCondition) *AlertConfig
- func (c *AlertConfig) ToAlertCreateInput() monitor.AlertCreateInput
- func (c *AlertConfig) ToAlertSetting() monitor.AlertSetting
- func (c *AlertConfig) ToCommonAlertCreateInput(bi *monitor.CommonAlertCreateBaseInput) monitor.CommonAlertCreateInput
- func (c *AlertConfig) ToCommonMetricInputQuery() monitor.CommonMetricInputQuery
- type AlertQuery
- func (q *AlertQuery) Alias(alias string) *AlertQuery
- func (q *AlertQuery) Database(db string) *AlertQuery
- func (q *AlertQuery) From(from string) *AlertQuery
- func (q *AlertQuery) GroupBy() *AlertQueryGroupBy
- func (q *AlertQuery) Interval(i string) *AlertQuery
- func (q *AlertQuery) Measurement(m string) *AlertQuery
- func (q *AlertQuery) Policy(p string) *AlertQuery
- func (q *AlertQuery) Selects() *AlertQuerySelects
- func (q *AlertQuery) To(to string) *AlertQuery
- func (q *AlertQuery) ToAlertQuery() monitor.AlertQuery
- func (q *AlertQuery) ToMetricQuery() monitor.MetricQuery
- func (q *AlertQuery) ToTsdbQuery() *tsdb.TsdbQuery
- func (q *AlertQuery) Tz(tz string) *AlertQuery
- func (q *AlertQuery) Where() *AlertQueryWhere
- type AlertQueryGroupBy
- func (g *AlertQueryGroupBy) FILL(val string) *AlertQueryGroupBy
- func (g *AlertQueryGroupBy) FILL_NULL() *AlertQueryGroupBy
- func (g *AlertQueryGroupBy) TAG(val string) *AlertQueryGroupBy
- func (g *AlertQueryGroupBy) TIME(val string) *AlertQueryGroupBy
- func (g *AlertQueryGroupBy) ToGroupBy() []monitor.MetricQueryPart
- type AlertQuerySelect
- func (s *AlertQuerySelect) AS(alias string) *AlertQuerySelect
- func (s *AlertQuerySelect) COUNT() *AlertQuerySelect
- func (s *AlertQuerySelect) DISTINCT() *AlertQuerySelect
- func (s *AlertQuerySelect) MATH(op string, val string) *AlertQuerySelect
- func (s *AlertQuerySelect) MAX() *AlertQuerySelect
- func (s *AlertQuerySelect) MEAN() *AlertQuerySelect
- func (s *AlertQuerySelect) MIN() *AlertQuerySelect
- func (s *AlertQuerySelect) SUM() *AlertQuerySelect
- type AlertQuerySelects
- type AlertQueryWhere
- func (w *AlertQueryWhere) AND() *AlertQueryWhere
- func (w *AlertQueryWhere) Equal(key string, value string) *AlertQueryWhere
- func (w *AlertQueryWhere) GT(key string, value string) *AlertQueryWhere
- func (w *AlertQueryWhere) IN(key string, vals []string) *AlertQueryWhere
- func (w *AlertQueryWhere) LT(key string, value string) *AlertQueryWhere
- func (w *AlertQueryWhere) NotEqual(key string, value string) *AlertQueryWhere
- func (w *AlertQueryWhere) OR() *AlertQueryWhere
- func (w *AlertQueryWhere) REGEX(key, val string) *AlertQueryWhere
- func (w *AlertQueryWhere) ToTags() []monitor.MetricQueryTag
- type SAlertDashBoardManager
- type SAlertManager
- type SAlertPanelManager
- type SAlertRecordManager
- type SAlertResourceAlertManager
- type SAlertResourceManager
- type SAlertnotificationManager
- type SCommonAlertManager
- type SMetricFieldManager
- type SMetricManager
- type SMigrationAlertManager
- type SMonitorResourceAlertManager
- type SMonitorResourceManager
- type SNotificationManager
- type SUnifiedMonitorManager
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
)
View Source
var (
MeterAlert modulebase.ResourceManager
)
View Source
var (
NodeAlert 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 (c *AlertConfig) ToCommonAlertCreateInput(bi *monitor.CommonAlertCreateBaseInput) monitor.CommonAlertCreateInput
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 (g *AlertQueryGroupBy) FILL(val string) *AlertQueryGroupBy
func (*AlertQueryGroupBy) FILL_NULL ¶
func (g *AlertQueryGroupBy) FILL_NULL() *AlertQueryGroupBy
func (*AlertQueryGroupBy) TAG ¶
func (g *AlertQueryGroupBy) TAG(val string) *AlertQueryGroupBy
func (*AlertQueryGroupBy) TIME ¶
func (g *AlertQueryGroupBy) TIME(val string) *AlertQueryGroupBy
func (*AlertQueryGroupBy) ToGroupBy ¶
func (g *AlertQueryGroupBy) ToGroupBy() []monitor.MetricQueryPart
type AlertQuerySelect ¶
type AlertQuerySelect struct {
monitor.MetricQuerySelect
}
func (*AlertQuerySelect) AS ¶
func (s *AlertQuerySelect) AS(alias string) *AlertQuerySelect
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 (s *AlertQuerySelect) MAX() *AlertQuerySelect
func (*AlertQuerySelect) MEAN ¶
func (s *AlertQuerySelect) MEAN() *AlertQuerySelect
Aggregations method
func (*AlertQuerySelect) MIN ¶
func (s *AlertQuerySelect) MIN() *AlertQuerySelect
func (*AlertQuerySelect) SUM ¶
func (s *AlertQuerySelect) SUM() *AlertQuerySelect
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 (w *AlertQueryWhere) OR() *AlertQueryWhere
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 (m *SAlertManager) DoCreate(s *mcclient.ClientSession, config *AlertConfig) (jsonutils.JSONObject, error)
func (*SAlertManager) DoTestRun ¶
func (m *SAlertManager) DoTestRun(s *mcclient.ClientSession, id string, input *monitor.AlertTestRunInput) (*monitor.AlertTestRunOutput, error)
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 ¶
func (m *SCommonAlertManager) DoCreate(s *mcclient.ClientSession, config *AlertConfig, bi *monitor.CommonAlertCreateBaseInput) (jsonutils.JSONObject, error)
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.