@GET("/jokes/random/10") Observable<Response> getItems(@Query("firstName") String firstName, @Query("lastName") String lastName, @Header("pageNumber") int pageNumberIgnored);
@Headers("Accept: application/json") @GET("/v1/accounts/{application_key}/query") NewRelicTimeSeries getTimeSeries(@Header("X-Query-Key") String apiKey, @Path("application_key") String applicationKey, @Query("nrql") String query); }
/** * Executes a signal flow program. * * @param accessToken The SignalFx API Access token associated with the organization that you are querying. * @param startEpochMilli (Optional) start timestamp in milliseconds since epoch * @param endEpochMilli (Optional) stop timestamp in milliseconds since epoch * @param resolution (Optional) the minimum desired data resolution, in milliseconds * @param maxDelay (Optional) desired maximum data delay, in milliseconds between 0 (for automatic maximum delay) and 900000 * @param immediate (Optional) whether to adjust the stop timestamp so that the computation doesn't wait for future data to be available * @param program The signal flow program to execute * @return The list of channel messages from the signal flow output */ @POST("/v2/signalflow/execute") SignalFlowExecutionResult executeSignalFlowProgram(@Header("X-SF-TOKEN") String accessToken, @Query("start") long startEpochMilli, @Query("stop") long endEpochMilli, @Query("resolution") long resolution, @Query("maxDelay") long maxDelay, @Query("immediate") boolean immediate, @Body String program); }
@GET(COMBINED_PATH) Response authenticateCombinedGet( @Header("cmb_sso_tkn") AuthenticationToken<EntityType.CombinedSso, TokenType.Simple> combinedSsoToken, @Header("token") String signature, @Header("origin") String origin, @Query(ALLOWED_ORIGINS_PARAMETER) String allowedOrigin, @Query(NONCE_PARAMETER) String nonce ) throws HodErrorException;
@GET(GET_TOKEN_INFORMATION_PATH) Response getTokenInformation( @Header("token") String token ) throws HodErrorException;
@POST("/playbacklogEntries") Response postPlaybackLogEntries( @Header("Authorization") String accesstoken, @Body TypedInput rawBody );
/** * Extract content from a CSV file into a JSON format using HP Haven on Demand using a token proxy * @param token The authentication token * @param reference The object store reference containing the data to be extracted. * @return {@link List} of JSON objects stored as a {@link LinkedHashMap} with column names as keys and cell values as values. */ @GET(URL) Response extractFromReference(@Header("token") AuthenticationToken<?, ?> token, @Query("reference") String reference) throws HodErrorException;
@GET("/2/api/sync/domain/{domain_name}/application/v1") ListApplicationsResponse list( @Header("token") String signature, @Path("domain_name") String domain ) throws HodErrorException;
@POST("/playlistEntries") HatchetPlaylistEntries postPlaylistsPlaylistEntries( @Header("Authorization") String accesstoken, @Body TypedInput rawBody );
@GET("/tokens/fetch/{tokentype}") HatchetAuthResponse getAccessToken( @Header("Authorization") String bearerAccessToken, @Path("tokentype") String tokentype );
@POST("/relationships") HatchetPlaylistEntries postRelationship( @Header("Authorization") String accesstoken, @Body TypedInput rawBody );
@POST("/playlists") HatchetPlaylistEntries postPlaylists( @Header("Authorization") String accesstoken, @Body TypedInput rawBody );
@DELETE("/playlists/{playlist-id}") Response deletePlaylists( @Header("Authorization") String accesstoken, @Path("playlist-id") String playlist_id );
@DELETE("/relationships/{relationship-id}") Response deleteRelationShip( @Header("Authorization") String accesstoken, @Path("relationship-id") String relationship_id );
/** * Deletes all the documents from the given text index using the given API key * @param token The token to use to authenticate the request * @param index The index to delete from * @return The job ID of the request * @throws HodErrorException If an error occurs with the request */ @DELETE(URL + "?delete_all_documents=true") Response deleteAllDocumentsFromTextIndex( @Header("token") final AuthenticationToken<?, ?> token, @Path("indexName") final ResourceIdentifier index ) throws HodErrorException;
@GET(URL + V1) Response retrieveQueryProfile( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(PROFILE_VARIABLE) ResourceIdentifier queryProfile ) throws HodErrorException;
@GET(BASE_PATH + V1) Response list( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore ) throws HodErrorException;
/** * Query HP Haven OnDemand for the list of resources with the given token * @param token The authentication token * @param parameters Request parameters (can be built using {@link ListResourcesRequestBuilder} * @return Public and private resources */ @GET(URL) Response list(@Header("token") AuthenticationToken<?, ?> token, @QueryMap Map<String, Object> parameters) throws HodErrorException;
/** * Get the result of an AddToTextIndex job using the given token * @param token The API key to use to authenticate the request * @param jobId The id of the job * @return An object containing the result of the job * @throws HodErrorException If an error occurred retrieving the result */ @GET("/2/job/{jobId}/result") Response getJobResult( @Header("token") AuthenticationToken<?, ?> token, @Path("jobId") JobId jobId ) throws HodErrorException;
/** * Get the result of a job using the given token * @param token The token to use to authenticate the request * @param jobId The id of the job * @return An object containing the result of the job * @throws HodErrorException If an error occurred retrieving the result */ @GET("/2/job/{jobId}/result") Response getJobResult( @Header("token") AuthenticationToken<?, ?> token, @Path("jobId") JobId jobId ) throws HodErrorException;