All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.blockfrost.sdk.impl.retrofit.MetricsApi Maven / Gradle / Ivy

package io.blockfrost.sdk.impl.retrofit;

import io.blockfrost.sdk.api.model.EndpointUsageMetric;
import io.blockfrost.sdk.api.model.UsageMetric;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;

import java.util.List;

public interface MetricsApi {
    /**
     * Blockfrost endpoint usage metrics
     * History of your Blockfrost usage metrics per endpoint in the past 30 days.
     *
     * @return Call<List<EndpointUsageMetric>>
     */
    @GET("metrics/endpoints")
    Call> metricsEndpointsGet(@Header("project_id") String projectId);


    /**
     * Blockfrost usage metrics
     * History of your Blockfrost usage metrics in the past 30 days.
     *
     * @return Call<List<UsageMetric>>
     */
    @GET("metrics/")
    Call> metricsGet(@Header("project_id") String projectId);


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy