public class CarbonAwareApi extends Object
Constructor and Description |
---|
CarbonAwareApi() |
CarbonAwareApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
List<EmissionsForecastDTO> |
batchForecastDataAsync(List<EmissionsForecastBatchParametersDTO> emissionsForecastBatchParametersDTO)
Given an array of historical forecasts, retrieves the data that contains forecasts metadata, the optimal forecast and a range of forecasts filtered by the attributes [start...end] if provided.
|
okhttp3.Call |
batchForecastDataAsyncAsync(List<EmissionsForecastBatchParametersDTO> emissionsForecastBatchParametersDTO,
ApiCallback<List<EmissionsForecastDTO>> _callback)
Given an array of historical forecasts, retrieves the data that contains forecasts metadata, the optimal forecast and a range of forecasts filtered by the attributes [start...end] if provided.
|
okhttp3.Call |
batchForecastDataAsyncCall(List<EmissionsForecastBatchParametersDTO> emissionsForecastBatchParametersDTO,
ApiCallback _callback)
Build call for batchForecastDataAsync
|
ApiResponse<List<EmissionsForecastDTO>> |
batchForecastDataAsyncWithHttpInfo(List<EmissionsForecastBatchParametersDTO> emissionsForecastBatchParametersDTO)
Given an array of historical forecasts, retrieves the data that contains forecasts metadata, the optimal forecast and a range of forecasts filtered by the attributes [start...end] if provided.
|
ApiClient |
getApiClient() |
CarbonIntensityDTO |
getAverageCarbonIntensity(String location,
OffsetDateTime startTime,
OffsetDateTime endTime)
Retrieves the measured carbon intensity data between the time boundaries and calculates the average carbon intensity during that period.
|
okhttp3.Call |
getAverageCarbonIntensityAsync(String location,
OffsetDateTime startTime,
OffsetDateTime endTime,
ApiCallback<CarbonIntensityDTO> _callback)
Retrieves the measured carbon intensity data between the time boundaries and calculates the average carbon intensity during that period.
|
List<CarbonIntensityDTO> |
getAverageCarbonIntensityBatch(List<CarbonIntensityBatchParametersDTO> carbonIntensityBatchParametersDTO)
Given an array of request objects, each with their own location and time boundaries, calculate the average carbon intensity for that location and time period and return an array of carbon intensity objects.
|
okhttp3.Call |
getAverageCarbonIntensityBatchAsync(List<CarbonIntensityBatchParametersDTO> carbonIntensityBatchParametersDTO,
ApiCallback<List<CarbonIntensityDTO>> _callback)
Given an array of request objects, each with their own location and time boundaries, calculate the average carbon intensity for that location and time period and return an array of carbon intensity objects.
|
okhttp3.Call |
getAverageCarbonIntensityBatchCall(List<CarbonIntensityBatchParametersDTO> carbonIntensityBatchParametersDTO,
ApiCallback _callback)
Build call for getAverageCarbonIntensityBatch
|
ApiResponse<List<CarbonIntensityDTO>> |
getAverageCarbonIntensityBatchWithHttpInfo(List<CarbonIntensityBatchParametersDTO> carbonIntensityBatchParametersDTO)
Given an array of request objects, each with their own location and time boundaries, calculate the average carbon intensity for that location and time period and return an array of carbon intensity objects.
|
okhttp3.Call |
getAverageCarbonIntensityCall(String location,
OffsetDateTime startTime,
OffsetDateTime endTime,
ApiCallback _callback)
Build call for getAverageCarbonIntensity
|
ApiResponse<CarbonIntensityDTO> |
getAverageCarbonIntensityWithHttpInfo(String location,
OffsetDateTime startTime,
OffsetDateTime endTime)
Retrieves the measured carbon intensity data between the time boundaries and calculates the average carbon intensity during that period.
|
List<EmissionsData> |
getBestEmissionsDataForLocationsByTime(List<String> location,
OffsetDateTime time,
OffsetDateTime toTime)
Calculate the best emission data by list of locations for a specified time period.
|
okhttp3.Call |
getBestEmissionsDataForLocationsByTimeAsync(List<String> location,
OffsetDateTime time,
OffsetDateTime toTime,
ApiCallback<List<EmissionsData>> _callback)
Calculate the best emission data by list of locations for a specified time period.
|
okhttp3.Call |
getBestEmissionsDataForLocationsByTimeCall(List<String> location,
OffsetDateTime time,
OffsetDateTime toTime,
ApiCallback _callback)
Build call for getBestEmissionsDataForLocationsByTime
|
ApiResponse<List<EmissionsData>> |
getBestEmissionsDataForLocationsByTimeWithHttpInfo(List<String> location,
OffsetDateTime time,
OffsetDateTime toTime)
Calculate the best emission data by list of locations for a specified time period.
|
List<EmissionsForecastDTO> |
getCurrentForecastData(List<String> location,
OffsetDateTime dataStartAt,
OffsetDateTime dataEndAt,
Integer windowSize)
Retrieves the most recent forecasted data and calculates the optimal marginal carbon intensity window.
|
okhttp3.Call |
getCurrentForecastDataAsync(List<String> location,
OffsetDateTime dataStartAt,
OffsetDateTime dataEndAt,
Integer windowSize,
ApiCallback<List<EmissionsForecastDTO>> _callback)
Retrieves the most recent forecasted data and calculates the optimal marginal carbon intensity window.
|
okhttp3.Call |
getCurrentForecastDataCall(List<String> location,
OffsetDateTime dataStartAt,
OffsetDateTime dataEndAt,
Integer windowSize,
ApiCallback _callback)
Build call for getCurrentForecastData
|
ApiResponse<List<EmissionsForecastDTO>> |
getCurrentForecastDataWithHttpInfo(List<String> location,
OffsetDateTime dataStartAt,
OffsetDateTime dataEndAt,
Integer windowSize)
Retrieves the most recent forecasted data and calculates the optimal marginal carbon intensity window.
|
String |
getCustomBaseUrl() |
List<EmissionsData> |
getEmissionsDataForLocationByTime(String location,
OffsetDateTime time,
OffsetDateTime toTime)
Calculate the best emission data by location for a specified time period.
|
okhttp3.Call |
getEmissionsDataForLocationByTimeAsync(String location,
OffsetDateTime time,
OffsetDateTime toTime,
ApiCallback<List<EmissionsData>> _callback)
Calculate the best emission data by location for a specified time period.
|
okhttp3.Call |
getEmissionsDataForLocationByTimeCall(String location,
OffsetDateTime time,
OffsetDateTime toTime,
ApiCallback _callback)
Build call for getEmissionsDataForLocationByTime
|
ApiResponse<List<EmissionsData>> |
getEmissionsDataForLocationByTimeWithHttpInfo(String location,
OffsetDateTime time,
OffsetDateTime toTime)
Calculate the best emission data by location for a specified time period.
|
List<EmissionsData> |
getEmissionsDataForLocationsByTime(List<String> location,
OffsetDateTime time,
OffsetDateTime toTime)
Calculate the observed emission data by list of locations for a specified time period.
|
okhttp3.Call |
getEmissionsDataForLocationsByTimeAsync(List<String> location,
OffsetDateTime time,
OffsetDateTime toTime,
ApiCallback<List<EmissionsData>> _callback)
Calculate the observed emission data by list of locations for a specified time period.
|
okhttp3.Call |
getEmissionsDataForLocationsByTimeCall(List<String> location,
OffsetDateTime time,
OffsetDateTime toTime,
ApiCallback _callback)
Build call for getEmissionsDataForLocationsByTime
|
ApiResponse<List<EmissionsData>> |
getEmissionsDataForLocationsByTimeWithHttpInfo(List<String> location,
OffsetDateTime time,
OffsetDateTime toTime)
Calculate the observed emission data by list of locations for a specified time period.
|
int |
getHostIndex() |
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
public CarbonAwareApi()
public CarbonAwareApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public String getCustomBaseUrl()
public void setCustomBaseUrl(String customBaseUrl)
public okhttp3.Call batchForecastDataAsyncCall(List<EmissionsForecastBatchParametersDTO> emissionsForecastBatchParametersDTO, ApiCallback _callback) throws ApiException
emissionsForecastBatchParametersDTO
- Array of requested forecasts. (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | Returns the requested forecast objects | - |
400 | Returned if any of the input parameters are invalid | - |
500 | Internal server error | - |
501 | Returned if the underlying data source does not support forecasting | - |
public List<EmissionsForecastDTO> batchForecastDataAsync(List<EmissionsForecastBatchParametersDTO> emissionsForecastBatchParametersDTO) throws ApiException
emissionsForecastBatchParametersDTO
- Array of requested forecasts. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Returns the requested forecast objects | - |
400 | Returned if any of the input parameters are invalid | - |
500 | Internal server error | - |
501 | Returned if the underlying data source does not support forecasting | - |
public ApiResponse<List<EmissionsForecastDTO>> batchForecastDataAsyncWithHttpInfo(List<EmissionsForecastBatchParametersDTO> emissionsForecastBatchParametersDTO) throws ApiException
emissionsForecastBatchParametersDTO
- Array of requested forecasts. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Returns the requested forecast objects | - |
400 | Returned if any of the input parameters are invalid | - |
500 | Internal server error | - |
501 | Returned if the underlying data source does not support forecasting | - |
public okhttp3.Call batchForecastDataAsyncAsync(List<EmissionsForecastBatchParametersDTO> emissionsForecastBatchParametersDTO, ApiCallback<List<EmissionsForecastDTO>> _callback) throws ApiException
emissionsForecastBatchParametersDTO
- Array of requested forecasts. (optional)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | Returns the requested forecast objects | - |
400 | Returned if any of the input parameters are invalid | - |
500 | Internal server error | - |
501 | Returned if the underlying data source does not support forecasting | - |
public okhttp3.Call getAverageCarbonIntensityCall(String location, OffsetDateTime startTime, OffsetDateTime endTime, ApiCallback _callback) throws ApiException
location
- The location name where workflow is run (required)startTime
- The time at which the workflow we are measuring carbon intensity for started (required)endTime
- The time at which the workflow we are measuring carbon intensity for ended (required)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | Returns a single object that contains the information about the request and the average marginal carbon intensity | - |
400 | Returned if any of the requested items are invalid | - |
500 | Internal server error | - |
public CarbonIntensityDTO getAverageCarbonIntensity(String location, OffsetDateTime startTime, OffsetDateTime endTime) throws ApiException
location
- The location name where workflow is run (required)startTime
- The time at which the workflow we are measuring carbon intensity for started (required)endTime
- The time at which the workflow we are measuring carbon intensity for ended (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Returns a single object that contains the information about the request and the average marginal carbon intensity | - |
400 | Returned if any of the requested items are invalid | - |
500 | Internal server error | - |
public ApiResponse<CarbonIntensityDTO> getAverageCarbonIntensityWithHttpInfo(String location, OffsetDateTime startTime, OffsetDateTime endTime) throws ApiException
location
- The location name where workflow is run (required)startTime
- The time at which the workflow we are measuring carbon intensity for started (required)endTime
- The time at which the workflow we are measuring carbon intensity for ended (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Returns a single object that contains the information about the request and the average marginal carbon intensity | - |
400 | Returned if any of the requested items are invalid | - |
500 | Internal server error | - |
public okhttp3.Call getAverageCarbonIntensityAsync(String location, OffsetDateTime startTime, OffsetDateTime endTime, ApiCallback<CarbonIntensityDTO> _callback) throws ApiException
location
- The location name where workflow is run (required)startTime
- The time at which the workflow we are measuring carbon intensity for started (required)endTime
- The time at which the workflow we are measuring carbon intensity for ended (required)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | Returns a single object that contains the information about the request and the average marginal carbon intensity | - |
400 | Returned if any of the requested items are invalid | - |
500 | Internal server error | - |
public okhttp3.Call getAverageCarbonIntensityBatchCall(List<CarbonIntensityBatchParametersDTO> carbonIntensityBatchParametersDTO, ApiCallback _callback) throws ApiException
carbonIntensityBatchParametersDTO
- Array of inputs where each contains a \"location\", \"startDate\", and \"endDate\" for which to calculate average marginal carbon intensity. (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | Returns an array of objects where each contains location, time boundaries and the corresponding average marginal carbon intensity | - |
400 | Returned if any of the requested items are invalid | - |
500 | Internal server error | - |
public List<CarbonIntensityDTO> getAverageCarbonIntensityBatch(List<CarbonIntensityBatchParametersDTO> carbonIntensityBatchParametersDTO) throws ApiException
carbonIntensityBatchParametersDTO
- Array of inputs where each contains a \"location\", \"startDate\", and \"endDate\" for which to calculate average marginal carbon intensity. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Returns an array of objects where each contains location, time boundaries and the corresponding average marginal carbon intensity | - |
400 | Returned if any of the requested items are invalid | - |
500 | Internal server error | - |
public ApiResponse<List<CarbonIntensityDTO>> getAverageCarbonIntensityBatchWithHttpInfo(List<CarbonIntensityBatchParametersDTO> carbonIntensityBatchParametersDTO) throws ApiException
carbonIntensityBatchParametersDTO
- Array of inputs where each contains a \"location\", \"startDate\", and \"endDate\" for which to calculate average marginal carbon intensity. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Returns an array of objects where each contains location, time boundaries and the corresponding average marginal carbon intensity | - |
400 | Returned if any of the requested items are invalid | - |
500 | Internal server error | - |
public okhttp3.Call getAverageCarbonIntensityBatchAsync(List<CarbonIntensityBatchParametersDTO> carbonIntensityBatchParametersDTO, ApiCallback<List<CarbonIntensityDTO>> _callback) throws ApiException
carbonIntensityBatchParametersDTO
- Array of inputs where each contains a \"location\", \"startDate\", and \"endDate\" for which to calculate average marginal carbon intensity. (optional)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | Returns an array of objects where each contains location, time boundaries and the corresponding average marginal carbon intensity | - |
400 | Returned if any of the requested items are invalid | - |
500 | Internal server error | - |
public okhttp3.Call getBestEmissionsDataForLocationsByTimeCall(List<String> location, OffsetDateTime time, OffsetDateTime toTime, ApiCallback _callback) throws ApiException
location
- String array of named locations (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public List<EmissionsData> getBestEmissionsDataForLocationsByTime(List<String> location, OffsetDateTime time, OffsetDateTime toTime) throws ApiException
location
- String array of named locations (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public ApiResponse<List<EmissionsData>> getBestEmissionsDataForLocationsByTimeWithHttpInfo(List<String> location, OffsetDateTime time, OffsetDateTime toTime) throws ApiException
location
- String array of named locations (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public okhttp3.Call getBestEmissionsDataForLocationsByTimeAsync(List<String> location, OffsetDateTime time, OffsetDateTime toTime, ApiCallback<List<EmissionsData>> _callback) throws ApiException
location
- String array of named locations (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public okhttp3.Call getCurrentForecastDataCall(List<String> location, OffsetDateTime dataStartAt, OffsetDateTime dataEndAt, Integer windowSize, ApiCallback _callback) throws ApiException
location
- String array of named locations (required)dataStartAt
- Start time boundary of forecasted data points.Ignores current forecast data points before this time. Defaults to the earliest time in the forecast data. (optional)dataEndAt
- End time boundary of forecasted data points. Ignores current forecast data points after this time. Defaults to the latest time in the forecast data. (optional)windowSize
- The estimated duration (in minutes) of the workload. Defaults to the duration of a single forecast data point. (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | Returns the requested forecast objects | - |
400 | Returned if any of the input parameters are invalid | - |
500 | Internal server error | - |
501 | Returned if the underlying data source does not support forecasting | - |
public List<EmissionsForecastDTO> getCurrentForecastData(List<String> location, OffsetDateTime dataStartAt, OffsetDateTime dataEndAt, Integer windowSize) throws ApiException
location
- String array of named locations (required)dataStartAt
- Start time boundary of forecasted data points.Ignores current forecast data points before this time. Defaults to the earliest time in the forecast data. (optional)dataEndAt
- End time boundary of forecasted data points. Ignores current forecast data points after this time. Defaults to the latest time in the forecast data. (optional)windowSize
- The estimated duration (in minutes) of the workload. Defaults to the duration of a single forecast data point. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Returns the requested forecast objects | - |
400 | Returned if any of the input parameters are invalid | - |
500 | Internal server error | - |
501 | Returned if the underlying data source does not support forecasting | - |
public ApiResponse<List<EmissionsForecastDTO>> getCurrentForecastDataWithHttpInfo(List<String> location, OffsetDateTime dataStartAt, OffsetDateTime dataEndAt, Integer windowSize) throws ApiException
location
- String array of named locations (required)dataStartAt
- Start time boundary of forecasted data points.Ignores current forecast data points before this time. Defaults to the earliest time in the forecast data. (optional)dataEndAt
- End time boundary of forecasted data points. Ignores current forecast data points after this time. Defaults to the latest time in the forecast data. (optional)windowSize
- The estimated duration (in minutes) of the workload. Defaults to the duration of a single forecast data point. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Returns the requested forecast objects | - |
400 | Returned if any of the input parameters are invalid | - |
500 | Internal server error | - |
501 | Returned if the underlying data source does not support forecasting | - |
public okhttp3.Call getCurrentForecastDataAsync(List<String> location, OffsetDateTime dataStartAt, OffsetDateTime dataEndAt, Integer windowSize, ApiCallback<List<EmissionsForecastDTO>> _callback) throws ApiException
location
- String array of named locations (required)dataStartAt
- Start time boundary of forecasted data points.Ignores current forecast data points before this time. Defaults to the earliest time in the forecast data. (optional)dataEndAt
- End time boundary of forecasted data points. Ignores current forecast data points after this time. Defaults to the latest time in the forecast data. (optional)windowSize
- The estimated duration (in minutes) of the workload. Defaults to the duration of a single forecast data point. (optional)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | Returns the requested forecast objects | - |
400 | Returned if any of the input parameters are invalid | - |
500 | Internal server error | - |
501 | Returned if the underlying data source does not support forecasting | - |
public okhttp3.Call getEmissionsDataForLocationByTimeCall(String location, OffsetDateTime time, OffsetDateTime toTime, ApiCallback _callback) throws ApiException
location
- String named location. (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public List<EmissionsData> getEmissionsDataForLocationByTime(String location, OffsetDateTime time, OffsetDateTime toTime) throws ApiException
location
- String named location. (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public ApiResponse<List<EmissionsData>> getEmissionsDataForLocationByTimeWithHttpInfo(String location, OffsetDateTime time, OffsetDateTime toTime) throws ApiException
location
- String named location. (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public okhttp3.Call getEmissionsDataForLocationByTimeAsync(String location, OffsetDateTime time, OffsetDateTime toTime, ApiCallback<List<EmissionsData>> _callback) throws ApiException
location
- String named location. (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public okhttp3.Call getEmissionsDataForLocationsByTimeCall(List<String> location, OffsetDateTime time, OffsetDateTime toTime, ApiCallback _callback) throws ApiException
location
- String array of named locations (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)_callback
- Callback for upload/download progressApiException
- If fail to serialize the request body objectStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public List<EmissionsData> getEmissionsDataForLocationsByTime(List<String> location, OffsetDateTime time, OffsetDateTime toTime) throws ApiException
location
- String array of named locations (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public ApiResponse<List<EmissionsData>> getEmissionsDataForLocationsByTimeWithHttpInfo(List<String> location, OffsetDateTime time, OffsetDateTime toTime) throws ApiException
location
- String array of named locations (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
public okhttp3.Call getEmissionsDataForLocationsByTimeAsync(List<String> location, OffsetDateTime time, OffsetDateTime toTime, ApiCallback<List<EmissionsData>> _callback) throws ApiException
location
- String array of named locations (required)time
- [Optional] Start time for the data query. (optional)toTime
- [Optional] End time for the data query. (optional)_callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectStatus Code | Description | Response Headers |
200 | Success | - |
204 | No Content | - |
400 | Bad Request | - |
Copyright © 2024. All rights reserved.