Struct cernan::config::Args[][src]

pub struct Args {
    pub max_hopper_in_memory_bytes: usize,
    pub max_hopper_queue_files: usize,
    pub max_hopper_queue_bytes: usize,
    pub data_directory: PathBuf,
    pub scripts_directory: PathBuf,
    pub flush_interval: u64,
    pub version: String,
    pub programmable_filters: Option<HashMap<String, ProgrammableFilterConfig>>,
    pub delay_filters: Option<HashMap<String, DelayFilterConfig>>,
    pub json_encode_filters: Option<HashMap<String, JSONEncodeFilterConfig>>,
    pub flush_boundary_filters: Option<HashMap<String, FlushBoundaryFilterConfig>>,
    pub console: Option<ConsoleConfig>,
    pub null: Option<NullConfig>,
    pub wavefront: Option<WavefrontConfig>,
    pub influxdb: Option<InfluxDBConfig>,
    pub native_sink_config: Option<NativeConfig>,
    pub prometheus: Option<PrometheusConfig>,
    pub elasticsearch: Option<ElasticsearchConfig>,
    pub kafkas: Option<Vec<KafkaConfig>>,
    pub files: Option<Vec<FileServerConfig>>,
    pub internal: InternalConfig,
    pub graphites: Option<HashMap<String, GraphiteConfig>>,
    pub avros: Option<HashMap<String, TCPConfig>>,
    pub native_server_config: Option<HashMap<String, NativeServerConfig>>,
    pub statsds: Option<HashMap<String, StatsdConfig>>,
}

Big configuration struct for cernan executable

This struct is what we construct from parsing the cernan configuration. It is not intended to be created by external clients. Please see documentation on parse_args in this module for more details.

Fields

The maximum size -- in bytes -- that a hopper queue may hold in memory before flushing to disk.

The maximum number of queue files that hopper may hold on disk. The maximum disk consumption of a single hopper queue will be max_hopper_queue_files * max_hopper_queue_bytes.

The maximum size -- in bytes -- that a hopper queue may grow to before being cycled.

The location on-disk where cernan will store its private files. This directory MUST be solely owned by cernan.

The location on-disk where cernan will search for programmable filter scripts.

The global flush interval. This value is inherited by all sinks which do not specify their own.

Cernan version string. This is set automatically.

The programmable filters to use in this cernan run. See filters::ProgrammableFilter for more.

The delay filters to use in this cernan run. See filters::DelayFilter for more.

The json_encode filters to use in this cernan run. See filters::JSONEncodeFilter for more.

The flush boundaryfilters to use in this cernan run. See filters::FlushBoundaryFilter for more.

See sinks::Console for more.

See sinks::Null for more.

See sinks::Wavefront for more.

See sinks::InfluxDB for more.

See sinks::Native for more.

See sinks::Prometheus for more.

See sinks::Elasticsearch for more.

See sinks::Kafka for more.

See sources::FileServer for more.

See sources::Internal for more.

See sources::Graphite for more.

See sources::Avro for more.

See sources::Native for more.

See sources::Statsd for more.

Trait Implementations

impl Debug for Args
[src]

Formats the value using the given formatter. Read more

impl Default for Args
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Args

impl Sync for Args