com.cloudesire.platform.apiclient.api.ApplicationMetricApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.ApplicationMetricDTO;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.Query;
import java.util.List;
public interface ApplicationMetricApi
{
@POST( "applicationMetric" )
Call create( @Body ApplicationMetricDTO input );
@GET( "applicationMetric" )
Call> getAllByProduct( @Query( "productId" ) int productId );
@GET( "applicationMetric" )
Call> getAllByVMC( @Query( "virtualMachineConfiguration" ) int vmcId );
@GET( "applicationMetric/{id}" )
Call get( @Path( "id" ) int id );
@PUT( "applicationMetric/{id}" )
Call update( @Path( "id" ) int id, @Body ApplicationMetricDTO input );
@DELETE( "applicationMetric/{id}" )
Call delete( @Path( "id" ) int id );
}