Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBboltAssetMetricRepoConfig ¶ added in v1.0.12
func NewBboltAssetMetricRepoConfig() interface{}
func NewFactory ¶
NewFactory creates a factory for tailtracer receiver.
func NewInmemAssetMetricRepoConfig ¶ added in v1.0.12
func NewInmemAssetMetricRepoConfig() interface{}
Types ¶
type AssetMetric ¶ added in v1.0.12
func (*AssetMetric) Signature ¶ added in v1.0.12
func (am *AssetMetric) Signature() string
type AssetMetricRepository ¶ added in v1.0.12
type AssetMetricRepository interface { Store(*AssetMetric, time.Time) error Get(*AssetMetric) (time.Time, bool, error) }
func NewBboltAssetMetricRepo ¶ added in v1.0.12
func NewBboltAssetMetricRepo(config interface{}) (AssetMetricRepository, error)
func NewInmemAssetMetricRepo ¶ added in v1.0.12
func NewInmemAssetMetricRepo(config interface{}) (AssetMetricRepository, error)
type AssetMetricRepositoryConfig ¶ added in v1.0.11
type AssetMetricRepositoryConfig struct { Name string `mapstructure:"name"` Config interface{} `mapstructure:"config"` }
type Config ¶
type Config struct { BaseURL string `mapstructure:"base_url"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` ScrapeInterval time.Duration `mapstructure:"scrape_interval"` AssetMetricRepository AssetMetricRepositoryConfig `mapstructure:"asset_metric_repository"` }
type FleetObservations ¶
FleetObservations holds observations for a fleet
type ScrapeState ¶
type ScrapeState int
const ( ScrapeSucceeded ScrapeState = iota ScrapeFailed ScrapeIncomplete )
type ScrapedData ¶
type ScrapedData struct { ObservedAt time.Time FleetsObservations []FleetObservations }
ScrapedData holds data scraped from RailigentX
Click to show internal directories.
Click to hide internal directories.