Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmAPIBuilder ¶
AlarmAPIBuilder alarm api builder
func NewAlarmAPIBuilder ¶
func NewAlarmAPIBuilder(alarm *api.AlarmItem) *AlarmAPIBuilder
NewAlarmAPIBuilder new alarm api builder
type AlarmBuilder ¶
AlarmBuilder alarm 构造器
func NewAlarmBuilder ¶
func NewAlarmBuilder(alarm *bo.Alarm) *AlarmBuilder
NewAlarmBuilder 创建 alarm 构造器
type AlertAPIBuilder ¶
AlertAPIBuilder alert builder
func NewAlertAPIBuilder ¶
func NewAlertAPIBuilder(alert *api.AlertItem) *AlertAPIBuilder
NewAlertAPIBuilder new alert builder
type AlertBuilder ¶
AlertBuilder alert 构造器
func NewAlertBuilder ¶
func NewAlertBuilder(alert *bo.Alert) *AlertBuilder
NewAlertBuilder 创建 alert 构造器
type DatasourceAPIBuilder ¶
type DatasourceAPIBuilder struct {
*api.DatasourceItem
}
DatasourceAPIBuilder 数据源api构建器
func NewDatasourceAPIBuilder ¶
func NewDatasourceAPIBuilder(datasource *api.DatasourceItem) *DatasourceAPIBuilder
NewDatasourceAPIBuilder 创建数据源api构建器
func (*DatasourceAPIBuilder) ToEventBo ¶ added in v1.2.0
func (b *DatasourceAPIBuilder) ToEventBo() *bo.EventDatasource
ToEventBo 转换为事件对象
func (*DatasourceAPIBuilder) ToMetricBo ¶ added in v1.2.0
func (b *DatasourceAPIBuilder) ToMetricBo() *bo.Datasource
ToMetricBo 转换为业务对象
type DomainStrategyBuilder ¶ added in v1.1.0
type DomainStrategyBuilder struct {
*api.DomainStrategyItem
}
DomainStrategyBuilder 域名策略构建器
func NewDomainStrategyBuilder ¶ added in v1.1.0
func NewDomainStrategyBuilder(strategyInfo *api.DomainStrategyItem) *DomainStrategyBuilder
NewDomainStrategyBuilder 创建域名策略构建器
func (*DomainStrategyBuilder) ToBo ¶ added in v1.1.0
func (a *DomainStrategyBuilder) ToBo() *bo.StrategyDomain
ToBo 转换为业务对象
type EventStrategyBuilder ¶ added in v1.1.38
type EventStrategyBuilder struct {
*api.EventStrategyItem
}
EventStrategyBuilder MQ策略构建器
func NewEventStrategyBuilder ¶ added in v1.2.7
func NewEventStrategyBuilder(strategyInfo *api.EventStrategyItem) *EventStrategyBuilder
NewEventStrategyBuilder 创建MQ策略构建器
func (*EventStrategyBuilder) ToBo ¶ added in v1.1.38
func (a *EventStrategyBuilder) ToBo() *bo.StrategyEvent
ToBo 转换为业务对象
type HTTPStrategyBuilder ¶ added in v1.1.0
type HTTPStrategyBuilder struct {
*api.HttpStrategyItem
}
HTTPStrategyBuilder HTTP策略构建器
func NewHTTPStrategyBuilder ¶ added in v1.1.0
func NewHTTPStrategyBuilder(strategyInfo *api.HttpStrategyItem) *HTTPStrategyBuilder
NewHTTPStrategyBuilder 创建HTTP策略构建器
func (*HTTPStrategyBuilder) ToBo ¶ added in v1.1.0
func (a *HTTPStrategyBuilder) ToBo() *bo.StrategyHTTP
ToBo 转换为业务对象
type MetricBuilder ¶
type MetricBuilder struct {
*bo.MetricDetail
}
MetricBuilder 构建Metric对象
func NewMetricBuilder ¶
func NewMetricBuilder(metricDetail *bo.MetricDetail) *MetricBuilder
NewMetricBuilder 创建Metric构造器
type MetricQueryBuilder ¶
type MetricQueryBuilder struct {
*datasource.QueryResponse
}
MetricQueryBuilder 构建MetricQuery对象
func NewMetricQueryBuilder ¶
func NewMetricQueryBuilder(queryResponse *datasource.QueryResponse) *MetricQueryBuilder
NewMetricQueryBuilder 创建MetricQuery构造器
func (*MetricQueryBuilder) ToAPI ¶
func (b *MetricQueryBuilder) ToAPI() *api.MetricQueryResult
ToAPI 转换为api对象
type MetricStrategyBuilder ¶ added in v1.2.0
type MetricStrategyBuilder struct {
*api.MetricStrategyItem
}
MetricStrategyBuilder 策略构建器
func NewMetricStrategyBuilder ¶ added in v1.2.0
func NewMetricStrategyBuilder(strategyInfo *api.MetricStrategyItem) *MetricStrategyBuilder
NewMetricStrategyBuilder 创建策略构建器
func (*MetricStrategyBuilder) ToBo ¶ added in v1.2.0
func (a *MetricStrategyBuilder) ToBo() *bo.StrategyMetric
ToBo 转换为业务对象
type PingStrategyBuilder ¶ added in v1.1.0
type PingStrategyBuilder struct {
*api.PingStrategyItem
}
PingStrategyBuilder Ping策略构建器
func NewPingStrategyBuilder ¶ added in v1.1.0
func NewPingStrategyBuilder(strategyInfo *api.PingStrategyItem) *PingStrategyBuilder
NewPingStrategyBuilder 创建Ping策略构建器
func (*PingStrategyBuilder) ToBo ¶ added in v1.1.0
func (a *PingStrategyBuilder) ToBo() *bo.StrategyPing
ToBo 转换为业务对象