Show / Hide Table of Contents

Class CarbonCalculator

Client used to interact with the Qarnot carbon API.

Inheritance
object
CarbonCalculator
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: QarnotSDK
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
Type Name Description
string prefix
string uuid
string referenceDatacenter
CancellationToken ct
Returns
Type Description
Task<CarbonFacts>

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
Type Name Description
Guid uuid
string referenceDatacenter
CancellationToken ct
Returns
Type Description
Task<CarbonFacts>

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
Type Name Description
Guid uuid
string referenceDatacenter
CancellationToken ct
Returns
Type Description
Task<CarbonFacts>
In this article
Back to top Generated by DocFX