[−][src]Struct holochain_metrics::cloudwatch::CloudWatchLogger
A cloud watch logger instance with some configuration and state as needed by various service calls.
Fields
client: CloudWatchLogsClient
The underlying cloudwatch logs client
log_group_name: Option<String>
log_stream_name: Option<String>
sequence_token: Option<String>
Set automatically when publishing log metrics
metrics_to_publish: Vec<Metric>
Implementations
impl CloudWatchLogger
[src]
pub fn query(&self, query_args: &QueryArgs) -> Vec<Vec<ResultField>>
[src]
Query the cloudwatch logger given a start and stop time interval.
Produces a raw vector of result field rows (each as a vector).
Use CloudWatchLogger::query_metrics
or CloudWatchLogger::query_and_aggregate
to produce numerical data from this raw data.
pub fn metrics_of_query<'a, I: IntoIterator<Item = Vec<ResultField>> + 'a>(
query: I
) -> Box<dyn Iterator<Item = Metric> + 'a>
[src]
query: I
) -> Box<dyn Iterator<Item = Metric> + 'a>
Converts raw result fields to in iterator over metric samples
pub fn query_metrics(
&self,
query_args: &QueryArgs
) -> Box<dyn Iterator<Item = Metric>>
[src]
&self,
query_args: &QueryArgs
) -> Box<dyn Iterator<Item = Metric>>
Queries cloudwatch logs given a start and end time interval and produces all metric samples observed during the interval
pub fn query_and_aggregate(
&self,
query_args: &QueryArgs
) -> StatsByMetric<OnlineStats>
[src]
&self,
query_args: &QueryArgs
) -> StatsByMetric<OnlineStats>
Queries cloudwatch logs given a start and end time interval and produces aggregate statistics of metrics from the results.
pub fn default_log_stream() -> String
[src]
pub fn default_log_group() -> String
[src]
pub fn default_start_time() -> i64
[src]
pub fn default_assume_role_arn() -> String
[src]
pub fn default_end_time() -> i64
[src]
pub fn with_log_group<P: ProvideAwsCredentials + Sync + Send + 'static>(
log_group_name: String,
credentials_provider: P,
region: &Region
) -> Self where
P::Future: Send,
[src]
log_group_name: String,
credentials_provider: P,
region: &Region
) -> Self where
P::Future: Send,
pub fn with_region(region: &Region) -> Self
[src]
pub fn ensure_log_group(&self)
[src]
pub fn new<P: ProvideAwsCredentials + Sync + Send + 'static>(
log_stream_name: Option<String>,
log_group_name: Option<String>,
credentials_provider: P,
region: &Region
) -> Self where
P::Future: Send,
[src]
log_stream_name: Option<String>,
log_group_name: Option<String>,
credentials_provider: P,
region: &Region
) -> Self where
P::Future: Send,
impl CloudWatchLogger
[src]
pub fn get_log_stream_names<S: Into<String>>(
&self,
log_stream_name_prefix: S
) -> Box<dyn Iterator<Item = String>>
[src]
&self,
log_stream_name_prefix: S
) -> Box<dyn Iterator<Item = String>>
Trait Implementations
impl Clone for CloudWatchLogger
[src]
fn clone(&self) -> CloudWatchLogger
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for CloudWatchLogger
[src]
impl Drop for CloudWatchLogger
[src]
impl MetricPublisher for CloudWatchLogger
[src]
Auto Trait Implementations
impl !RefUnwindSafe for CloudWatchLogger
impl Send for CloudWatchLogger
impl Sync for CloudWatchLogger
impl Unpin for CloudWatchLogger
impl !UnwindSafe for CloudWatchLogger
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,