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

Commit

Permalink
add fetch_logs to ic.did
Browse files Browse the repository at this point in the history
  • Loading branch information
maksymar committed Dec 14, 2023
1 parent 125ca12 commit a0e70ea
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/_attachments/ic.did
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ type node_metrics = record {
num_block_failures_total : nat64;
};

type log_record = record {
idx: nat;
timestamp: nat;
contents: blob;
};

type fetch_logs_response = record {
log_records: vec log_record;
};

service ic : {
create_canister : (record {
settings : opt canister_settings;
Expand Down Expand Up @@ -242,4 +252,8 @@ service ic : {
}) -> (record {canister_id : canister_id});
provisional_top_up_canister :
(record { canister_id: canister_id; amount: nat }) -> ();

// canister loging
fetch_logs : (record { canister_id }) -> (fetch_logs_response);
fetch_logs_query : (record { canister_id }) -> (fetch_logs_response) query;
}

0 comments on commit a0e70ea

Please sign in to comment.