pub struct SnsMetricsReport {Show 22 fields
pub schema_version: u32,
pub network: String,
pub sns_wasm_canister_id: String,
pub fetched_at: String,
pub source_endpoint: String,
pub fetched_by: String,
pub id: usize,
pub name: String,
pub root_canister_id: String,
pub governance_canister_id: String,
pub method: String,
pub call_type: String,
pub time_window_seconds: u64,
pub point_in_time_guaranteed: bool,
pub treasury_metrics_cached: bool,
pub num_recently_submitted_proposals: Option<u64>,
pub num_recently_executed_proposals: Option<u64>,
pub last_ledger_block_timestamp: Option<u64>,
pub genesis_timestamp_seconds: Option<u64>,
pub treasury_metric_count: usize,
pub treasury_metrics: Vec<SnsTreasuryMetricRow>,
pub voting_power_metrics: Option<SnsVotingPowerMetrics>,
}Expand description
SnsMetricsReport
Bounded live report of native SNS Governance metrics for one SNS.
Fields§
§schema_version: u32Report schema version.
network: StringRequested IC network identity.
sns_wasm_canister_id: StringMainnet SNS-W canister used for discovery.
fetched_at: StringCollection timestamp in UTC.
source_endpoint: StringIC API endpoint used for all client requests.
fetched_by: StringCollector identity recorded by the source request.
id: usizeSNS-W list id assigned to this deployed SNS.
name: StringSNS name resolved during discovery.
root_canister_id: StringRoot canister identity used to resolve this SNS.
governance_canister_id: StringGovernance canister queried for metrics.
method: StringNative Governance metrics method.
call_type: StringNative call type used for the Governance method.
time_window_seconds: u64Requested recent-proposal window in seconds.
point_in_time_guaranteed: boolWhether all returned metrics represent one authoritative point in time.
treasury_metrics_cached: boolWhether treasury values are cached Governance metrics.
num_recently_submitted_proposals: Option<u64>Recent submitted-proposal count for the requested window.
num_recently_executed_proposals: Option<u64>Recent executed-proposal count for the requested window.
last_ledger_block_timestamp: Option<u64>Latest SNS-ledger block timestamp observed by Governance.
genesis_timestamp_seconds: Option<u64>SNS genesis timestamp returned by Governance.
treasury_metric_count: usizeNumber of returned cached treasury rows.
treasury_metrics: Vec<SnsTreasuryMetricRow>Canonically ordered cached treasury metrics.
voting_power_metrics: Option<SnsVotingPowerMetrics>Cached voting-power metrics, when returned.
Trait Implementations§
Source§impl Clone for SnsMetricsReport
impl Clone for SnsMetricsReport
Source§fn clone(&self) -> SnsMetricsReport
fn clone(&self) -> SnsMetricsReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more