Documentation ¶
Index ¶
- func API_GetMetrics(w http.ResponseWriter, req *http.Request)
- func API_ListEvents(w http.ResponseWriter, req *http.Request)
- func API_ResetMetrics(w http.ResponseWriter, req *http.Request)
- func AggloAndCommitMetrics()
- func CheckAlerts(TrackingMetric string, Period string, metric utils.AlertMetricTrack, Value int)
- func CommitAggl(metrics []DataDefDB)
- func ExecuteAction(alert utils.Alert, action utils.AlertAction, metric utils.AlertMetricTrack)
- func ExecuteAllActions(alert utils.Alert, actions []utils.AlertAction, metric utils.AlertMetricTrack)
- func GetDataBuffer() map[string]DataPush
- func GetSystemMetrics()
- func Init()
- func InitAggl()
- func ListMetrics(w http.ResponseWriter, req *http.Request)
- func MergeMetric(SetOperation string, currentValue int, newValue int, avgIndex int) int
- func ModuloTime(start time.Time, modulo time.Duration) time.Time
- func PushRequestMetrics(route utils.ProxyRouteConfig, statusCode int, TimeStarted time.Time, ...) error
- func PushSetMetric(key string, value int, def DataDef)
- func PushShieldMetrics(reason string)
- func Run()
- func SaveMetrics()
- type DataDef
- type DataDefDB
- type DataDefDBEntry
- type DataPush
- type Event
- type MetricList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func API_GetMetrics ¶
func API_GetMetrics(w http.ResponseWriter, req *http.Request)
func API_ListEvents ¶
func API_ListEvents(w http.ResponseWriter, req *http.Request)
func API_ResetMetrics ¶
func API_ResetMetrics(w http.ResponseWriter, req *http.Request)
func AggloAndCommitMetrics ¶
func AggloAndCommitMetrics()
func CheckAlerts ¶
func CheckAlerts(TrackingMetric string, Period string, metric utils.AlertMetricTrack, Value int)
func CommitAggl ¶
func CommitAggl(metrics []DataDefDB)
func ExecuteAction ¶
func ExecuteAction(alert utils.Alert, action utils.AlertAction, metric utils.AlertMetricTrack)
func ExecuteAllActions ¶
func ExecuteAllActions(alert utils.Alert, actions []utils.AlertAction, metric utils.AlertMetricTrack)
func GetDataBuffer ¶ added in v0.15.0
func GetSystemMetrics ¶
func GetSystemMetrics()
func ListMetrics ¶
func ListMetrics(w http.ResponseWriter, req *http.Request)
func MergeMetric ¶
func PushRequestMetrics ¶
func PushSetMetric ¶
func PushShieldMetrics ¶
func PushShieldMetrics(reason string)
func SaveMetrics ¶
func SaveMetrics()
Types ¶
type DataDefDB ¶
type DataDefDB struct { Values []DataDefDBEntry ValuesAggl map[string]DataDefDBEntry LastUpdate time.Time TimeScale float64 Max uint64 Label string Key string AggloType string Scale int Unit string Object string }
func AggloMetrics ¶
type DataDefDBEntry ¶
type Event ¶
type Event struct { Id primitive.ObjectID `json:"id" bson:"_id"` Label string `json:"label" bson:"label"` Application string `json:"application" bson:"application"` EventId string `json:"eventId" bson:"eventId"` Date time.Time `json:"date" bson:"date"` Level string `json:"level" bson:"level"` Data map[string]interface{} `json:"data" bson:"data"` Object string `json:"object" bson:"object"` }
type MetricList ¶
Click to show internal directories.
Click to hide internal directories.