Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: provides units for all fields of canister status. #4064

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,33 @@ Building canisters...
...
```

### chore: Provides units for all fields of canister status.

Provides units for all fields of canister status.

```
$ dfx canister status pxmfj-jaaaa-aaaan-qmmbq-cai --ic
Canister status call result for pxmfj-jaaaa-aaaan-qmmbq-cai.
Status: Running
Controllers: uom2z-lqsqq-qbn4p-nts4l-2xjfl-oeivu-oso42-4t4jh-54ikd-ewnvi-tqe yjac5-2yaaa-aaaan-qaqka-cai
Memory allocation: 0 Bytes
Compute allocation: 0 %
Freezing threshold: 2_592_000 Seconds
Idle cycles burned per day: 20_548_135 Cycles
Memory Size: 2_010_735 Bytes
Balance: 2_985_407_678_380 Cycles
Reserved: 0 Cycles
Reserved cycles limit: 5_000_000_000_000 Cycles
Wasm memory limit: 3_221_225_472 Bytes
Wasm memory threshold: 0 Bytes
Module hash: 0x4f13cceb571483ac99a9f89afc05718c0a4ab72e9fac7d49054c0a3e05c4899b
Number of queries: 0
Instructions spent in queries: 0
Total query request payload size: 0 Bytes
Total query response payload size: 0 Bytes
Log visibility: controllers
```

## Dependencies

### Frontend canister
Expand Down
14 changes: 7 additions & 7 deletions src/dfx/src/commands/canister/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ async fn canister_status(
Canister status call result for {canister}.
Status: {status}
Controllers: {controllers}
Memory allocation: {memory_allocation}
Compute allocation: {compute_allocation}
Freezing threshold: {freezing_threshold}
Idle cycles burned per day: {idle_cycles_burned_per_day}
Memory Size: {memory_size:?}
Memory allocation: {memory_allocation} Bytes
Compute allocation: {compute_allocation} %
Freezing threshold: {freezing_threshold} Seconds
Idle cycles burned per day: {idle_cycles_burned_per_day} Cycles
Memory Size: {memory_size} Bytes
Balance: {balance} Cycles
Reserved: {reserved} Cycles
Reserved cycles limit: {reserved_cycles_limit}
Expand All @@ -94,8 +94,8 @@ Wasm memory threshold: {wasm_memory_threshold}
Module hash: {module_hash}
Number of queries: {queries_total}
Instructions spent in queries: {query_instructions_total}
Total query request payload size (bytes): {query_req_payload_total}
Total query response payload size (bytes): {query_resp_payload_total}
Total query request payload size: {query_req_payload_total} Bytes
Total query response payload size: {query_resp_payload_total} Bytes
Log visibility: {log_visibility}",
status = status.status,
controllers = controllers.join(" "),
Expand Down
Loading