Context

This block is typically configured as the source of a GET method in Oracle APEX RESTful services. It bridges the backend metric data with the frontend visual tile.

DECLARE
  l_json CLOB;
BEGIN
  l_json := get_rh_cpu_utilization_json;

  owa_util.mime_header('application/json', FALSE);
  htp.p('Cache-Control: no-cache');
  owa_util.http_header_close;

  htp.prn(l_json);
END;