Interface OpenTSDB


public interface OpenTSDB
Client for API requests to openTSDB
  • Method Summary

    Modifier and Type
    Method
    Description
    retrofit2.Call<Set<String>>
    Used for getting all metrics names from openTSDB
    retrofit2.Call<Set<MetricDTO>>
    Overloaded getTables for POST request to DB
  • Method Details

    • getAllTablesName

      @GET("api/suggest?type=metrics&max=2147483647") retrofit2.Call<Set<String>> getAllTablesName()
      Used for getting all metrics names from openTSDB
      Returns:
      Set with all tables names
    • getTables

      @POST("api/query") retrofit2.Call<Set<MetricDTO>> getTables(@Body DBQuery query)
      Overloaded getTables for POST request to DB
      Parameters:
      query - Query for for selecting data
      Returns:
      Set with metrics from openTSDB