pub struct SnsMetricsRequest {
pub network: String,
pub source_endpoint: String,
pub now_unix_secs: u64,
pub input: String,
pub time_window_seconds: u64,
}Expand description
SnsMetricsRequest
Request for one bounded SNS Governance metrics report.
Fields§
§network: StringRequested IC network identity.
source_endpoint: StringIC API endpoint used for discovery and Governance queries.
now_unix_secs: u64Caller-supplied collection time in Unix seconds.
input: StringSNS list id or Root principal.
time_window_seconds: u64Window used for recent submitted/executed proposal counts.
Implementations§
Source§impl SnsMetricsRequest
impl SnsMetricsRequest
Sourcepub fn new(
network: impl Into<String>,
source_endpoint: impl Into<String>,
now_unix_secs: u64,
input: impl Into<String>,
) -> Self
pub fn new( network: impl Into<String>, source_endpoint: impl Into<String>, now_unix_secs: u64, input: impl Into<String>, ) -> Self
Construct a request with the default 30-day proposal-count window.
Sourcepub const fn with_time_window_seconds(self, time_window_seconds: u64) -> Self
pub const fn with_time_window_seconds(self, time_window_seconds: u64) -> Self
Replace the proposal-count window.
Trait Implementations§
Source§impl Clone for SnsMetricsRequest
impl Clone for SnsMetricsRequest
Source§fn clone(&self) -> SnsMetricsRequest
fn clone(&self) -> SnsMetricsRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnsMetricsRequest
impl Debug for SnsMetricsRequest
impl Eq for SnsMetricsRequest
Source§impl PartialEq for SnsMetricsRequest
impl PartialEq for SnsMetricsRequest
impl StructuralPartialEq for SnsMetricsRequest
Auto Trait Implementations§
impl Freeze for SnsMetricsRequest
impl RefUnwindSafe for SnsMetricsRequest
impl Send for SnsMetricsRequest
impl Sync for SnsMetricsRequest
impl Unpin for SnsMetricsRequest
impl UnsafeUnpin for SnsMetricsRequest
impl UnwindSafe for SnsMetricsRequest
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