Crate ic_canister_serve

Crate ic_canister_serve 

Source

Functions§

serve_logs
Given an INFO and ERROR GlobalBuffer, render the buffers into a json encoded body of an HttpResponse that can be served via a Canister’s http_request query method. The method’s CanisterHttpRequestArgument allows selecting the logs based on severity (INFO/ERROR) and timestamp.
serve_metrics
Transforms an ic_metrics_encoder::MetricsEncoder into an HttpResponse that can be served via a Canister’s http_request query method.