-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>
- Loading branch information
1 parent
3cba7bc
commit da9ef94
Showing
5 changed files
with
21 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
// TODO: In order to correctly assert component specification compliance, we would have to do some more advanced mocking | ||
// off the endpoint, which would include also providing a mock OAuth2 endpoint to allow for generating a token from the | ||
// mocked credentials. Let this TODO serve as a placeholder for doing that in the future. | ||
|
||
use crate::sinks::prelude::*; | ||
|
||
//! GCP Cloud Monitoring (formerly Stackdriver Metrics) sink. | ||
//! Sends metrics to [GPC Cloud Monitoring][cloud monitoring]. | ||
//! | ||
//! [cloud monitoring]: https://cloud.google.com/monitoring/docs/monitoring-overview | ||
mod config; | ||
mod request_builder; | ||
mod sink; | ||
#[cfg(test)] | ||
mod tests; | ||
|
||
#[derive(Clone, Copy, Debug, Default)] | ||
pub struct StackdriverMetricsDefaultBatchSettings; | ||
|
||
impl SinkBatchSettings for StackdriverMetricsDefaultBatchSettings { | ||
const MAX_EVENTS: Option<usize> = Some(1); | ||
const MAX_BYTES: Option<usize> = None; | ||
const TIMEOUT_SECS: f64 = 1.0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters