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 |
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.
// 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)
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
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.
// 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)
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]