Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricDetails ¶
type MetricDetails struct {
TotalRefusedRequests int64
}
type MetricHub ¶
type MetricHub struct {
// TotalRefusedRequests is the total number of refused requests.
TotalRefusedRequests *prometheus.CounterVec
// contains filtered or unexported fields
}
Metrics defines the interface for WAF metrics.
func NewMetrics ¶
func NewMetrics(spec *supervisor.Spec) *MetricHub
func (*MetricHub) GetStats ¶
func (m *MetricHub) GetStats() []*MetricStats
type MetricLabels ¶
type MetricStats ¶
type MetricStats struct {
MetricLabels `json:",inline"`
MetricDetails `json:",inline"`
}
Click to show internal directories.
Click to hide internal directories.