Class Scaling
How a pool will be scaled dynamically
Implements
Inherited Members
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public sealed class Scaling : IEquatable<Scaling>
Constructors
Scaling(List<ScalingPolicy>)
Build a Scaling instance from a list of policies
Declaration
public Scaling(List<ScalingPolicy> policies)
Parameters
Type | Name | Description |
---|---|---|
List<ScalingPolicy> | policies |
Properties
ActivePolicy
Currencly active policy, as returned by the latest update from the API
Declaration
public ScalingPolicy ActivePolicy { get; }
Property Value
Type | Description |
---|---|
ScalingPolicy |
Remarks
This may remain empty or outdated for a few tens of seconds after submission or update, while the pool is being submitted, and the information propagated back
ActivePolicyName
Name of the currently active policy
Declaration
public string ActivePolicyName { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
This may remain empty or outdated for a few tens of seconds after submission or update, while the pool is being submitted, and the information propagated back
Policies
Ordered list of scaling policies
Declaration
public List<ScalingPolicy> Policies { get; }
Property Value
Type | Description |
---|---|
List<ScalingPolicy> |
Remarks
At a given time and date, the first policy of the list with a matching time period will be the active one. Subsequent policies are ignored.
Methods
Equals(Scaling)
Equality implementaiton
Declaration
public bool Equals(Scaling other)
Parameters
Type | Name | Description |
---|---|---|
Scaling | other |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Hash code to complement equality
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
ToString()
ToString
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |