Class ScalingPolicy
Abstract base class for scaling policies
Implements
Inherited Members
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public abstract class ScalingPolicy : IEquatable<ScalingPolicy>
Constructors
ScalingPolicy(string, List<TimePeriodSpecification>)
Base constructor
Declaration
protected ScalingPolicy(string name, List<TimePeriodSpecification> enabledPeriods)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
List<TimePeriodSpecification> | enabledPeriods |
Properties
EnabledPeriods
Periods of time during which the policy is enabled
Declaration
public List<TimePeriodSpecification> EnabledPeriods { get; }
Property Value
Type | Description |
---|---|
List<TimePeriodSpecification> |
Name
Human friendly name for the policy
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Remarks
Must be unique in a policies list
Type
Type hint for the remote API
Declaration
public abstract string Type { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Equals(ScalingPolicy)
Equals
Declaration
public abstract bool Equals(ScalingPolicy other)
Parameters
Type | Name | Description |
---|---|---|
ScalingPolicy | other |
Returns
Type | Description |
---|---|
bool |