Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Close()
- func (c *Cache) Get(ctx context.Context, key string) (b []byte, err error)
- func (c *Cache) GetAlarmCategoriesSimplified(ctx context.Context, ids []int32) (categories []models.AlarmCategorySimplified, err error)
- func (c *Cache) GetAlarmCategorySimplified(ctx context.Context, id int32) (exists bool, category models.AlarmCategorySimplified, err error)
- func (c *Cache) GetContainerAlarmRecognition(ctx context.Context, id int32) (r GetContainerRecognitionResponse, err error)
- func (c *Cache) GetCustomQuerySimplified(ctx context.Context, id int32) (r GetCustomQueryResponse, err error)
- func (c *Cache) GetDashboardAlarmRecognition(ctx context.Context, id int32) (r GetDashboardRecogntionResponse, err error)
- func (c *Cache) GetFlexLegacyMetricDetails(ctx context.Context, id int64, out any) (exists bool, err error)
- func (c *Cache) GetMetricAddDataForm(ctx context.Context, refkey string) (r GetMetricAddDataFormResponse, err error)
- func (c *Cache) GetMetricAlarmExpressions(ctx context.Context, metricId int64) (r GetMetricAlarmExpressionsResponse, err error)
- func (c *Cache) GetMetricDataPolicyId(ctx context.Context, metricId int64) (r GetMetricDataPolicyIdResponse, err error)
- func (c *Cache) GetMetricEvExpression(ctx context.Context, metricId int64) (r GetMetricEvExpressionResponse, err error)
- func (c *Cache) GetMetricRequest(ctx context.Context, id int64) (r GetMetricRequestResponse, err error)
- func (c *Cache) GetMetricsAlarmExpressions(ctx context.Context, metricsIds []int64) (expressions []GetMetricAlarmExpressionsResponse, err error)
- func (c *Cache) GetRTSMetricConfig(ctx context.Context, metricId int64) (r GetRTSMetricConfigResponse, err error)
- func (c *Cache) GetSNMPAgent(ctx context.Context, containerId int32) (r GetGoSNMPConfigResponse, err error)
- func (c *Cache) GetSNMPMetrics(ctx context.Context, ids []int64) (r []GetSNMPMetricResponse, err error)
- func (c *Cache) GetServerCostResult(ctx context.Context) (r ServerCostResultResponse, err error)
- func (c *Cache) GetUserLimited(ctx context.Context, ip string, route string) (suspended bool, err error)
- func (c *Cache) Set(ctx context.Context, b []byte, key string, exp time.Duration) error
- func (c *Cache) SetAlarmCategoriesSimplified(ctx context.Context, categories []models.AlarmCategorySimplified) (err error)
- func (c *Cache) SetAlarmCategorySimplified(ctx context.Context, category models.AlarmCategorySimplified) (err error)
- func (c *Cache) SetContainerRecognition(ctx context.Context, id int32, recognition alarm.Recognition) error
- func (c *Cache) SetCustomQuerySimplified(ctx context.Context, cq models.CustomQuerySimplified, id int32) error
- func (c *Cache) SetDashboardAlarmRecognition(ctx context.Context, id int32, recognition alarm.Recognition) error
- func (c *Cache) SetFlexLegacyMetricDetails(ctx context.Context, id int64, details []byte) (err error)
- func (c *Cache) SetMetricAddDataForm(ctx context.Context, refkey string, form models.BasicMetricAddDataForm) (err error)
- func (c *Cache) SetMetricAlarmExpressions(ctx context.Context, metricId int64, exp []models.AlarmExpressionSimplified) (err error)
- func (c *Cache) SetMetricDataPolicyId(ctx context.Context, metricId int64, dataPolicyId int16) (err error)
- func (c *Cache) SetMetricEvExpression(ctx context.Context, metricId int64, expression string) (err error)
- func (c *Cache) SetMetricRequest(ctx context.Context, id int64, request models.MetricRequest) (err error)
- func (c *Cache) SetMetricsAlarmExpressions(ctx context.Context, metricIds []int64, ...) (err error)
- func (c *Cache) SetRTSMetricConfig(ctx context.Context, metricId int64, config models.RTSMetricConfig) (err error)
- func (c *Cache) SetSNMPAgent(ctx context.Context, containerId int32, agent models.SNMPv2cAgent) (err error)
- func (c *Cache) SetSNMPMetrics(ctx context.Context, metrics []models.SNMPMetric) (err error)
- func (c *Cache) SetServerCostResult(ctx context.Context, result models.ServerCostResult) (err error)
- func (c *Cache) SetUserLimited(ctx context.Context, ip string, route string, duration time.Duration) (err error)
- type GetContainerRecognitionResponse
- type GetCustomQueryResponse
- type GetDashboardRecogntionResponse
- type GetGoSNMPConfigResponse
- type GetMetricAddDataFormResponse
- type GetMetricAlarmExpressionsResponse
- type GetMetricDataPolicyIdResponse
- type GetMetricEvExpressionResponse
- type GetMetricRequestResponse
- type GetRTSMetricConfigResponse
- type GetSNMPMetricResponse
- type ServerCostResultResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) GetAlarmCategoriesSimplified ¶
func (*Cache) GetAlarmCategorySimplified ¶
func (*Cache) GetContainerAlarmRecognition ¶
func (*Cache) GetCustomQuerySimplified ¶
func (*Cache) GetDashboardAlarmRecognition ¶
func (*Cache) GetFlexLegacyMetricDetails ¶
func (*Cache) GetMetricAddDataForm ¶
func (*Cache) GetMetricAlarmExpressions ¶
func (*Cache) GetMetricDataPolicyId ¶
func (*Cache) GetMetricEvExpression ¶
func (*Cache) GetMetricRequest ¶
func (*Cache) GetMetricsAlarmExpressions ¶
func (*Cache) GetRTSMetricConfig ¶
func (*Cache) GetSNMPAgent ¶
func (*Cache) GetSNMPMetrics ¶
func (*Cache) GetServerCostResult ¶
func (c *Cache) GetServerCostResult(ctx context.Context) (r ServerCostResultResponse, err error)
func (*Cache) GetUserLimited ¶
func (*Cache) SetAlarmCategoriesSimplified ¶
func (*Cache) SetAlarmCategorySimplified ¶
func (*Cache) SetContainerRecognition ¶
func (*Cache) SetCustomQuerySimplified ¶
func (*Cache) SetDashboardAlarmRecognition ¶
func (*Cache) SetFlexLegacyMetricDetails ¶
func (*Cache) SetMetricAddDataForm ¶
func (*Cache) SetMetricAlarmExpressions ¶
func (*Cache) SetMetricDataPolicyId ¶
func (*Cache) SetMetricEvExpression ¶
func (*Cache) SetMetricRequest ¶
func (*Cache) SetMetricsAlarmExpressions ¶
func (*Cache) SetRTSMetricConfig ¶
func (*Cache) SetSNMPAgent ¶
func (*Cache) SetSNMPMetrics ¶
func (*Cache) SetServerCostResult ¶
type GetContainerRecognitionResponse ¶
type GetContainerRecognitionResponse struct { Exists bool Recognition alarm.Recognition }
type GetCustomQueryResponse ¶
type GetCustomQueryResponse struct { Exists bool CustomQuery models.CustomQuerySimplified }
type GetDashboardRecogntionResponse ¶
type GetDashboardRecogntionResponse struct { Exists bool Recognition alarm.Recognition }
type GetGoSNMPConfigResponse ¶
type GetGoSNMPConfigResponse struct { // Exists is the config existence. Exists bool // Agent is the snmp agent. Agent models.SNMPv2cAgent }
GetGoSNMPConfigResponse is the response for the GetGoSNMPConfig handler.
type GetMetricAddDataFormResponse ¶
type GetMetricAddDataFormResponse struct { // Exists is the cache existence. Exists bool // Form is the base metric add data form. Form models.BasicMetricAddDataForm }
type GetMetricAlarmExpressionsResponse ¶
type GetMetricAlarmExpressionsResponse struct { // Exists is the cache existence. Exists bool // AlarmExpressions is the alarm expressions. AlarmExpressions []models.AlarmExpressionSimplified }
type GetMetricRequestResponse ¶
type GetMetricRequestResponse struct { // Exists is the cache existence. Exists bool // Request is the metric request. Request models.MetricRequest }
type GetRTSMetricConfigResponse ¶
type GetRTSMetricConfigResponse struct { // Exists is the cache existence. Exists bool // Config is the real time service metric configuration. Config models.RTSMetricConfig }
type GetSNMPMetricResponse ¶
type GetSNMPMetricResponse struct { // Exists is the config existence. Exists bool // Metric is the snmp metric. Metric models.SNMPMetric }
GetSNMPMetricResponse is the response for the GetSNMPMetric handler.
type ServerCostResultResponse ¶
type ServerCostResultResponse struct { Exists bool Result models.ServerCostResult }
Click to show internal directories.
Click to hide internal directories.