diff --git a/spec/_attachments/ic.did b/spec/_attachments/ic.did index 43d22f8c..b30fc13d 100644 --- a/spec/_attachments/ic.did +++ b/spec/_attachments/ic.did @@ -342,11 +342,11 @@ type node_metrics_history_result = vec record { node_metrics : vec node_metrics; }; -type subnet_stats_args = record { +type subnet_metrics_args = record { subnet_id : principal; }; -type subnet_stats_result = record { +type subnet_metrics_result = record { replica_version : text; }; @@ -452,8 +452,8 @@ service ic : { // metrics interface node_metrics_history : (node_metrics_history_args) -> (node_metrics_history_result); - // subnet stats - subnet_stats : (subnet_stats_args) -> (subnet_stats_result); + // subnet metrics + subnet_metrics : (subnet_metrics_args) -> (subnet_metrics_result); // provisional interfaces for the pre-ledger world provisional_create_canister_with_cycles : (provisional_create_canister_with_cycles_args) -> (provisional_create_canister_with_cycles_result); diff --git a/spec/index.md b/spec/index.md index 2ea4fd5b..3ade8142 100644 --- a/spec/index.md +++ b/spec/index.md @@ -2548,11 +2548,11 @@ A single metric entry is a record with the following fields: - `num_block_failures_total` (`nat64`): the number of failed block proposals by this node. -### IC method `subnet_stats` {#ic-subnet-stats} +### IC method `subnet_metrics` {#ic-subnet-metrics} This method can only be called by canisters, i.e., it cannot be called by external users via ingress messages. -Given a subnet ID as input, this method returns a record `subnet_stats` containing metadata about that subnet. +Given a subnet ID as input, this method returns a record `subnet_metrics` containing metadata about that subnet. Currently, the only field returned is the `replica_version` (`text`) of the targeted subnet. @@ -5447,7 +5447,7 @@ S with ``` -#### IC Management Canister: Subnet Stats +#### IC Management Canister: Subnet Metrics The management canister returns subnet metadata given a subnet ID. @@ -5457,7 +5457,7 @@ Conditions S.messages = Older_messages · CallMessage M · Younger_messages (M.queue = Unordered) or (∀ CallMessage M' | FuncMessage M' ∈ Older_messages. M'.queue ≠ M.queue) M.callee = ic_principal -M.method_name = 'subnet_stats' +M.method_name = 'subnet_metrics' R = ```