Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MeteringCommandDetails ¶ added in v0.3.0
MeteringCommandDetails holds command details that is used to gather a specific field
type MeteringEventBufferedProcessor ¶ added in v0.3.0
type MeteringEventBufferedProcessor struct { ProcessorCommand string BatchContext *processor.BatchContext }
MeteringEventBufferedProcessor holds buffer and data processor for publishing events
type MeteringEventFileLogger ¶ added in v0.2.0
type MeteringEventFileLogger struct { Enabled bool LogFile string MaxSizeMB int MaxBackups int MaxAge int Compress bool }
MeteringEventFileLogger holds file logger details
type MeteringEventProducer ¶
type MeteringEventProducer struct { EventInerval int Fields log.Fields EventIDField string TimestampField string IDGeneratorFields []string FieldCommandPairs map[string]MeteringCommandDetails FileLogger *MeteringEventFileLogger BufferedProcessor *MeteringEventBufferedProcessor }
MeteringEventProducer metering producer type which holds required configuration
func ReadProducerFromConfig ¶
func ReadProducerFromConfig(configFile string) (MeteringEventProducer, error)
ReadProducerFromConfig create producer struct from producer configuration
func (*MeteringEventProducer) HandleError ¶ added in v0.3.0
func (p *MeteringEventProducer) HandleError(batchContext *processor.BatchContext, err error)
HandleError handle errors during time based buffer processing (it is not used by this generator)
func (*MeteringEventProducer) Process ¶ added in v0.3.0
func (p *MeteringEventProducer) Process(batchContext *processor.BatchContext) error
Process run local process commands on gathered metering events
func (*MeteringEventProducer) Run ¶
func (p *MeteringEventProducer) Run()
Run start metering event producer
type MeteringJSONFormatter ¶
type MeteringJSONFormatter struct { }
MeteringJSONFormatter type for custom json formatter
Click to show internal directories.
Click to hide internal directories.