Skip to content

Latest commit

 

History

History
102 lines (68 loc) · 2.5 KB

MetricsAPI.md

File metadata and controls

102 lines (68 loc) · 2.5 KB

MetricsAPI

All URIs are relative to https://cardano-mainnet.blockfrost.io/api/v0

Method HTTP request Description
getMetrics GET /metrics/ Blockfrost usage metrics
getMetricsEndpoints GET /metrics/endpoints Blockfrost endpoint usage metrics

getMetrics

    open class func getMetrics(completion: @escaping (_ data: [Metric]?, _ error: Error?) -> Void)

Blockfrost usage metrics

History of your Blockfrost usage metrics in the past 30 days.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift


// Blockfrost usage metrics
MetricsAPI.getMetrics() { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

This endpoint does not need any parameter.

Return type

[Metric]

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getMetricsEndpoints

    open class func getMetricsEndpoints(completion: @escaping (_ data: [MetricsEndpoint]?, _ error: Error?) -> Void)

Blockfrost endpoint usage metrics

History of your Blockfrost usage metrics per endpoint in the past 30 days.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import BlockfrostSwift


// Blockfrost endpoint usage metrics
MetricsAPI.getMetricsEndpoints() { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

This endpoint does not need any parameter.

Return type

[MetricsEndpoint]

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]