Skip to content

Commit 5269ffd

Browse files
committed
chore(node-metrics): Rename node metrics "num_blocks_total" to "num_blocks_proposed_total"
1 parent a393e10 commit 5269ffd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rs/replicated_state/src/metadata_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2182,7 +2182,7 @@ impl BlockmakerMetricsTimeSeries {
21822182
.iter()
21832183
.map(|(node_id, stats)| NodeMetrics {
21842184
node_id: node_id.get(),
2185-
num_blocks_total: stats.blocks_proposed_total,
2185+
num_blocks_proposed_total: stats.blocks_proposed_total,
21862186
num_block_failures_total: stats.blocks_not_proposed_total,
21872187
})
21882188
.collect();

rs/types/management_canister_types/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,14 +2466,14 @@ impl Payload<'_> for NodeMetricsHistoryArgs {}
24662466
/// ```text
24672467
/// record {
24682468
/// node_id : principal;
2469-
/// num_blocks_total : nat64;
2469+
/// num_blocks_proposed_total : nat64;
24702470
/// num_block_failures_total : nat64;
24712471
/// }
24722472
/// ```
24732473
#[derive(Default, Clone, CandidType, Deserialize, Debug)]
24742474
pub struct NodeMetrics {
24752475
pub node_id: PrincipalId,
2476-
pub num_blocks_total: u64,
2476+
pub num_blocks_proposed_total: u64,
24772477
pub num_block_failures_total: u64,
24782478
}
24792479

0 commit comments

Comments
 (0)