Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator interface {
CollectHistogram(histogramAggregator MetricAggregatorDTO) (interface{}, error)
}
func New ¶
func New(input Input) (Aggregator, error)
type Entity ¶
type Entity struct { ID string `json:"id"` Name string `json:"name"` Help string `json:"help"` CreatedAt time.Time `json:"created_at"` UpdateAt time.Time `json:"update_at"` Stages []Stage `json:"stages"` State string `json:"state"` TimeToLiveSeconds int `json:"time_to_live"` }
func (*Entity) InProgress ¶
func (*Entity) LabelValues ¶
func (*Entity) LastLifeSpan ¶
type Input ¶
type Input struct { Repository Repository `validate:"required"` Collector Collector `validate:"required"` }
type MetricAggregatorDTO ¶
type MetricAggregatorDTO struct { ID string `json:"id"` LifeSpan int `json:"life_span"` CreatedAt time.Time `json:"created_at"` Name string `json:"name"` Help string `json:"help"` ConstLabels Labels `json:"const_labels"` Buckets []float64 `json:"buckets"` Stage string `json:"stage"` LabelValues map[string]string `json:"label_values"` ForceRegistryUpdate bool `json:"force_registry_update"` TimeToLiveSeconds int `json:"time_to_live"` }
type Repository ¶
type Repository interface { RepositoryReader RepositoryWriter }
Repository is a interface for read 'n write application
type RepositoryReader ¶
RepositoryReader is a interface for read application
Click to show internal directories.
Click to hide internal directories.