1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pub mod logs;
pub mod metrics;

pub use self::{logs::SematextLogsConfig, metrics::SematextMetricsConfig};

use vector_lib::configurable::configurable_component;

/// The Sematext region to send data to.
#[configurable_component]
#[derive(Clone, Debug)]
#[serde(rename_all = "snake_case")]
pub enum Region {
    /// United States
    Us,

    /// Europe
    Eu,
}

const fn default_region() -> Region {
    Region::Us
}