pub struct PivotedTimescaleScrapingConfig { /* private fields */ }
Expand description
This config is used to scrape data from a Timescale database that has a pivoted schema. time | name | value | device 1 | temperature | 1 | a
Implementations§
Source§impl PivotedTimescaleScrapingConfig
impl PivotedTimescaleScrapingConfig
Sourcepub fn builder() -> Builder<TimeColumnStage>
pub fn builder() -> Builder<TimeColumnStage>
Returns a new builder.
Source§impl PivotedTimescaleScrapingConfig
impl PivotedTimescaleScrapingConfig
Sourcepub fn filter(&self) -> &[TimescaleScrapingFilter]
pub fn filter(&self) -> &[TimescaleScrapingFilter]
In order for data to be picked up by the scraper, it must match all filters in this list. To exclude chunks of data, it’s possible to use a not filter.
Sourcepub fn time_column(&self) -> &ColumnName
pub fn time_column(&self) -> &ColumnName
The name of the column that holds the timestamp.
Sourcepub fn name_column(&self) -> &ColumnName
pub fn name_column(&self) -> &ColumnName
The name of the column that holds the series name.
Sourcepub fn value_column(&self) -> &ColumnName
pub fn value_column(&self) -> &ColumnName
The name of the column that holds the series values.
Sourcepub fn dimension_columns(&self) -> &BTreeSet<ColumnName>
pub fn dimension_columns(&self) -> &BTreeSet<ColumnName>
The names of the columns that comprise a dimension. They should have a database index for efficient filtering. We do not discover dimensions based on hypertable schema because they are not necessarily configured properly.
Sourcepub fn channel_name_components(&self) -> &[PivotedTimescaleChannelNameComponent]
pub fn channel_name_components(&self) -> &[PivotedTimescaleChannelNameComponent]
channelNameComponents will be combined, together with separator, to form a fully qualified channel name.
pub fn separator(&self) -> &str
Trait Implementations§
Source§impl Clone for PivotedTimescaleScrapingConfig
impl Clone for PivotedTimescaleScrapingConfig
Source§fn clone(&self) -> PivotedTimescaleScrapingConfig
fn clone(&self) -> PivotedTimescaleScrapingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for PivotedTimescaleScrapingConfig
impl<'de> Deserialize<'de> for PivotedTimescaleScrapingConfig
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>,
Source§impl From<PivotedTimescaleScrapingConfig> for Builder<Complete>
impl From<PivotedTimescaleScrapingConfig> for Builder<Complete>
Source§fn from(v: PivotedTimescaleScrapingConfig) -> Self
fn from(v: PivotedTimescaleScrapingConfig) -> Self
Source§impl Ord for PivotedTimescaleScrapingConfig
impl Ord for PivotedTimescaleScrapingConfig
Source§fn cmp(&self, other: &PivotedTimescaleScrapingConfig) -> Ordering
fn cmp(&self, other: &PivotedTimescaleScrapingConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PivotedTimescaleScrapingConfig
impl PartialEq for PivotedTimescaleScrapingConfig
Source§fn eq(&self, other: &PivotedTimescaleScrapingConfig) -> bool
fn eq(&self, other: &PivotedTimescaleScrapingConfig) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for PivotedTimescaleScrapingConfig
impl PartialOrd for PivotedTimescaleScrapingConfig
impl Eq for PivotedTimescaleScrapingConfig
impl StructuralPartialEq for PivotedTimescaleScrapingConfig
Auto Trait Implementations§
impl Freeze for PivotedTimescaleScrapingConfig
impl RefUnwindSafe for PivotedTimescaleScrapingConfig
impl Send for PivotedTimescaleScrapingConfig
impl Sync for PivotedTimescaleScrapingConfig
impl Unpin for PivotedTimescaleScrapingConfig
impl UnwindSafe for PivotedTimescaleScrapingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request