Package | Description |
---|---|
foundation.greensoftware.carbonaware.webapi | |
foundation.greensoftware.carbonaware.webapi.client |
Modifier and Type | Method and Description |
---|---|
okhttp3.Call |
ApiClient.buildCall(String baseUrl,
String path,
String method,
List<Pair> queryParams,
List<Pair> collectionQueryParams,
Object body,
Map<String,String> headerParams,
Map<String,String> cookieParams,
Map<String,Object> formParams,
String[] authNames,
ApiCallback callback)
Build HTTP call with the given options.
|
okhttp3.Request |
ApiClient.buildRequest(String baseUrl,
String path,
String method,
List<Pair> queryParams,
List<Pair> collectionQueryParams,
Object body,
Map<String,String> headerParams,
Map<String,String> cookieParams,
Map<String,Object> formParams,
String[] authNames,
ApiCallback callback)
Build an HTTP request with the given options.
|
<T> void |
ApiClient.executeAsync(okhttp3.Call call,
ApiCallback<T> callback)
|
<T> void |
ApiClient.executeAsync(okhttp3.Call call,
Type returnType,
ApiCallback<T> callback)
Execute HTTP call asynchronously.
|
Constructor and Description |
---|
ProgressRequestBody(okhttp3.RequestBody requestBody,
ApiCallback callback) |
ProgressResponseBody(okhttp3.ResponseBody responseBody,
ApiCallback callback) |
Modifier and Type | Method and Description |
---|---|
okhttp3.Call |
CarbonAwareApi.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 |
CarbonAwareApi.batchForecastDataAsyncCall(List<EmissionsForecastBatchParametersDTO> emissionsForecastBatchParametersDTO,
ApiCallback _callback)
Build call for batchForecastDataAsync
|
okhttp3.Call |
LocationsApi.getAllLocationsAsync(ApiCallback<Map<String,Location>> _callback)
Get all locations instances (asynchronously)
|
okhttp3.Call |
LocationsApi.getAllLocationsCall(ApiCallback _callback)
Build call for getAllLocations
|
okhttp3.Call |
CarbonAwareApi.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.
|
okhttp3.Call |
CarbonAwareApi.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 |
CarbonAwareApi.getAverageCarbonIntensityBatchCall(List<CarbonIntensityBatchParametersDTO> carbonIntensityBatchParametersDTO,
ApiCallback _callback)
Build call for getAverageCarbonIntensityBatch
|
okhttp3.Call |
CarbonAwareApi.getAverageCarbonIntensityCall(String location,
OffsetDateTime startTime,
OffsetDateTime endTime,
ApiCallback _callback)
Build call for getAverageCarbonIntensity
|
okhttp3.Call |
CarbonAwareApi.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 |
CarbonAwareApi.getBestEmissionsDataForLocationsByTimeCall(List<String> location,
OffsetDateTime time,
OffsetDateTime toTime,
ApiCallback _callback)
Build call for getBestEmissionsDataForLocationsByTime
|
okhttp3.Call |
CarbonAwareApi.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 |
CarbonAwareApi.getCurrentForecastDataCall(List<String> location,
OffsetDateTime dataStartAt,
OffsetDateTime dataEndAt,
Integer windowSize,
ApiCallback _callback)
Build call for getCurrentForecastData
|
okhttp3.Call |
CarbonAwareApi.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 |
CarbonAwareApi.getEmissionsDataForLocationByTimeCall(String location,
OffsetDateTime time,
OffsetDateTime toTime,
ApiCallback _callback)
Build call for getEmissionsDataForLocationByTime
|
okhttp3.Call |
CarbonAwareApi.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 |
CarbonAwareApi.getEmissionsDataForLocationsByTimeCall(List<String> location,
OffsetDateTime time,
OffsetDateTime toTime,
ApiCallback _callback)
Build call for getEmissionsDataForLocationsByTime
|
Copyright © 2024. All rights reserved.