pub struct TelemetrySink {
pub id: String,
pub url: String,
pub method: SinkMethod,
pub every_seconds: u32,
pub sections: Vec<TelemetrySection>,
pub events: Vec<HookKind>,
pub headers: BTreeMap<String, String>,
pub bearer_env: Option<String>,
pub bearer_file: Option<String>,
pub fields: BTreeMap<String, String>,
pub enabled: bool,
pub upload_admission: bool,
}Expand description
One collector subscription. Secret values are never persisted here.
Fields§
§id: StringUnique stable identifier.
url: StringCollector URL.
method: SinkMethodDelivery method.
every_seconds: u32Snapshot interval in seconds.
sections: Vec<TelemetrySection>Requested snapshots.
events: Vec<HookKind>Committed facts to deliver.
headers: BTreeMap<String, String>Non-secret HTTP headers.
bearer_env: Option<String>Environment variable containing a bearer token.
bearer_file: Option<String>Owner-only token file relative to the state directory.
fields: BTreeMap<String, String>Static collector labels.
enabled: boolWhether delivery is enabled.
upload_admission: boolAsk this POST collector to admit user uploads; generated files bypass it.
Trait Implementations§
Source§impl Clone for TelemetrySink
impl Clone for TelemetrySink
Source§impl Debug for TelemetrySink
impl Debug for TelemetrySink
Source§impl<'de> Deserialize<'de> for TelemetrySink
impl<'de> Deserialize<'de> for TelemetrySink
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TelemetrySink
Source§impl PartialEq for TelemetrySink
impl PartialEq for TelemetrySink
Source§impl Serialize for TelemetrySink
impl Serialize for TelemetrySink
impl StructuralPartialEq for TelemetrySink
Auto Trait Implementations§
impl Freeze for TelemetrySink
impl RefUnwindSafe for TelemetrySink
impl Send for TelemetrySink
impl Sync for TelemetrySink
impl Unpin for TelemetrySink
impl UnsafeUnpin for TelemetrySink
impl UnwindSafe for TelemetrySink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.