Module: MetricsEndpoints

Extended by:
Request
Included in:
Blockfrostruby::CardanoMainNet
Defined in:
lib/blockfrostruby/endpoints/cardano/metrics_endpoints.rb

Constant Summary

Constants included from Blockfrostruby

Blockfrostruby::VERSION

Instance Method Summary collapse

Methods included from Request

get_response, post_file, post_request_cbor, post_request_raw

Instance Method Details

#get_metrics ⇒ Hash

Calls get request on (@url)/metrics.

Returns:

  • (Hash) —

    formatted result with status and body keys.



11
12
13
# File 'lib/blockfrostruby/endpoints/cardano/metrics_endpoints.rb', line 11

def get_metrics
  Request.get_response("#{@url}/metrics", @project_id)
end

#get_metrics_endpoints ⇒ Hash

Calls get request on (@url)/metrics.

Returns:

  • (Hash) —

    formatted result with status and body keys.



18
19
20
# File 'lib/blockfrostruby/endpoints/cardano/metrics_endpoints.rb', line 18

def get_metrics_endpoints
  Request.get_response("#{@url}/metrics/endpoints", @project_id)
end