MetricsAdvisorAdministrationClient.getDataFeedWithResponse(String dataFeedId, Context context) Method

Definition

Get a data feed by its id with REST response.

Code sample

final String dataFeedId = "r47053f1-9080-09lo-bacf-8dccf2e86f";
 final Response<DataFeed> dataFeedResponse =
     metricsAdvisorAdminClient.getDataFeedWithResponse(dataFeedId, Context.NONE);
 
 System.out.printf("Data feed get operation status: %s%n", dataFeedResponse.getStatusCode());
 DataFeed dataFeed = dataFeedResponse.getValue();
 System.out.printf("Data feed Id: %s%n", dataFeed.getId());
 System.out.printf("Data feed description: %s%n", dataFeed.getOptions().getDescription());
 System.out.printf("Data feed source type: %s%n", dataFeed.getSourceType());
 System.out.printf("Data feed creator: %s%n", dataFeed.getCreator());
public Response<DataFeed> getDataFeedWithResponse(String dataFeedId, Context context)

Parameters

dataFeedId
java.lang.String

The data feed unique id.

context
Context

Additional context that is passed through the HTTP pipeline during the service call.

Returns

The data feed for the provided id.

Applies to