chqstatsprocessor

package module
v0.0.0-...-92cef42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

README

chqstatsprocessor

This processor is a component of the Cardinal Ecosystem which computes various statistics on the data flowing through it. This is used to compute cost savings and other data flows for presenting in Cardinal's SaaS UI.

While this processor can be used outside of the Cardinal Ecosystem, it would require building an API and processing to receive the statistic data.

Various configuration details are obtained at run-time from the named chqconfig extension.

Configuration

processors:
  chqstats/f32d43b8-f7c4-47c1-846f-241a7516a095:
    configuration_extension: "chqconfig"
    statistics:
      auth:
        authenticator: "chqauth"
      endpoint: "https://stats-receiver.global.aws.cardinalhq.io"
      phase: "presample"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() processor.Factory

NewFactory creates a factory for S3 exporter.

Types

type Config

type Config struct {
	confighttp.ClientConfig `mapstructure:",squash"`
	Statistics              StatisticsConfig `mapstructure:"statistics"`
	ConfigurationExtension  *component.ID    `mapstructure:"configuration_extension"`
}

func (*Config) Validate

func (c *Config) Validate() error

type ContextID

type ContextID = string

type StatisticsConfig

type StatisticsConfig struct {
	Interval time.Duration `mapstructure:"interval"`
	Phase    string        `mapstructure:"phase"`
}

func (*StatisticsConfig) Validate

func (c *StatisticsConfig) Validate() error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL