Class CarbonCalculator
Client used to interact with the Qarnot carbon API.
Inheritance
CarbonCalculator
Assembly: QarnotSDK.dll
Syntax
public class CarbonCalculator
Methods
GetCarbonFactsAsync(string, string, string, CancellationToken)
Generate and retrieve the carbon facts of the compute element with uuid uuid
Declaration
public Task<CarbonFacts> GetCarbonFactsAsync(string prefix, string uuid, string referenceDatacenter = null, CancellationToken ct = default)
Parameters
Returns
GetPoolCarbonFactsAsync(Guid, string, CancellationToken)
Generate and retrieve the carbon facts of the pool with uuid uuid
and
deserialize it from JSON to an instance of CarbonFacts
Declaration
public Task<CarbonFacts> GetPoolCarbonFactsAsync(Guid uuid, string referenceDatacenter = null, CancellationToken ct = default)
Parameters
Returns
GetTaskCarbonFactsAsync(Guid, string, CancellationToken)
Generate and retrieve the carbon facts of the task with uuid uuid
and
deserialize it from JSON to an instance of CarbonFacts
Declaration
public Task<CarbonFacts> GetTaskCarbonFactsAsync(Guid uuid, string referenceDatacenter = null, CancellationToken ct = default)
Parameters
Returns