Documentation
¶
Index ¶
- func AreTagsSubsetOfOtherTags(tags, otherTags []string) bool
- func FilterByTags[P PayloadItem](payloads []P, tags []string) []P
- type Aggregator
- func (agg *Aggregator[P]) ContainsPayloadName(name string) bool
- func (agg *Aggregator[P]) ContainsPayloadNameAndTags(name string, tags []string) bool
- func (agg *Aggregator[P]) GetNames() []string
- func (agg *Aggregator[P]) GetPayloadsByName(name string) []P
- func (agg *Aggregator[P]) Reset()
- func (agg *Aggregator[P]) UnmarshallPayloads(payloads []api.Payload) error
- type CheckRun
- type CheckRunAggregator
- type Log
- type LogAggregator
- type MetricAggregator
- type MetricSeries
- type PayloadItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterByTags ¶
func FilterByTags[P PayloadItem](payloads []P, tags []string) []P
Types ¶
type Aggregator ¶
type Aggregator[P PayloadItem] struct { // contains filtered or unexported fields }
func (*Aggregator[P]) ContainsPayloadName ¶
func (agg *Aggregator[P]) ContainsPayloadName(name string) bool
func (*Aggregator[P]) ContainsPayloadNameAndTags ¶
func (agg *Aggregator[P]) ContainsPayloadNameAndTags(name string, tags []string) bool
func (*Aggregator[P]) GetNames ¶
func (agg *Aggregator[P]) GetNames() []string
func (*Aggregator[P]) GetPayloadsByName ¶
func (agg *Aggregator[P]) GetPayloadsByName(name string) []P
func (*Aggregator[P]) Reset ¶
func (agg *Aggregator[P]) Reset()
func (*Aggregator[P]) UnmarshallPayloads ¶
func (agg *Aggregator[P]) UnmarshallPayloads(payloads []api.Payload) error
type CheckRun ¶
type CheckRun struct { Check string `json:"check"` HostName string `json:"host_name"` Timestamp int `json:"timestamp"` Status int `json:"status"` Message string `json:"message"` Tags []string `json:"tags"` }
func ParseCheckRunPayload ¶
type CheckRunAggregator ¶
type CheckRunAggregator struct { Aggregator[*CheckRun] }
func NewCheckRunAggregator ¶
func NewCheckRunAggregator() CheckRunAggregator
type Log ¶
type LogAggregator ¶
type LogAggregator struct { Aggregator[*Log] }
func NewLogAggregator ¶
func NewLogAggregator() LogAggregator
type MetricAggregator ¶
type MetricAggregator struct { Aggregator[*MetricSeries] }
func NewMetricAggregator ¶
func NewMetricAggregator() MetricAggregator
type MetricSeries ¶
type MetricSeries struct { // embed proto Metric Series struct metricspb.MetricPayload_MetricSeries }
func ParseMetricSeries ¶
func ParseMetricSeries(payload api.Payload) (metrics []*MetricSeries, err error)
func (*MetricSeries) GetTags ¶
func (mp *MetricSeries) GetTags() []string
type PayloadItem ¶
type PayloadItem interface { GetTags() []string // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.