net.unit8.metrics.mackerel.MackerelApiService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metrics-mackerel Show documentation
Show all versions of metrics-mackerel Show documentation
A reporter for Metrics which announces measurements to a Mackerel server.
package net.unit8.metrics.mackerel;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;
import java.util.List;
import java.util.Map;
public interface MackerelApiService {
/**
* Post the service metrics to a Mackerel server.
*
* @param serviceName the name of the service
* @param apiKey the key of the api
* @param serviceMetrics the list of metric objects
* @return Call object
*/
@POST("/api/v0/services/{serviceName}/tsdb")
Call
© 2015 - 2025 Weber Informatics LLC | Privacy Policy