Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Weigelt committed Oct 23, 2024
1 parent b3b0557 commit c378598
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions spec/_attachments/ic.did
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions spec/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand All @@ -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 = <implementation-specific>
```

Expand Down

0 comments on commit c378598

Please sign in to comment.