# README

Go API client for Carbon Aware Sustainability

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen

Installation

Put the package under your project folder and add the following in import:

import "github.com/Azure/kubernetes-carbon-intensity-exporter/pkg/sdk/client"

Documentation for API Endpoints

All URIs are relative to https://virtserver.swaggerhub.com/Microsoft-hela/carbonaware/1.0.0

ClassMethodHTTP requestDescription
CarbonAwareApiBatchForecastDataAsyncPost /emissions/forecasts/batchGiven 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.
CarbonAwareApiGetAverageCarbonIntensityGet /emissions/average-carbon-intensityRetrieves the measured carbon intensity data between the time boundaries and calculates the average carbon intensity during that period.
CarbonAwareApiGetAverageCarbonIntensityBatchPost /emissions/average-carbon-intensity/batchGiven 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.
CarbonAwareApiGetBestEmissionsDataForLocationsByTimeGet /emissions/bylocations/bestCalculate the best emission data by list of locations for a specified time period.
CarbonAwareApiGetCurrentForecastDataGet /emissions/forecasts/currentRetrieves the most recent forecasted data and calculates the optimal marginal carbon intensity window.
CarbonAwareApiGetEmissionsDataForLocationByTimeGet /emissions/bylocationCalculate the best emission data by location for a specified time period.
CarbonAwareApiGetEmissionsDataForLocationsByTimeGet /emissions/bylocationsCalculate the observed emission data by list of locations for a specified time period.
LocationsApiGetAllLocationsGet /locationsGet all locations instances

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author