Functions

  • 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.
  • Transforms an ic_metrics_encoder::MetricsEncoder into an HttpResponse that can be served via a Canister’s http_request query method.