-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MonitorScaleAction.cs
48 lines (42 loc) · 2.75 KB
/
MonitorScaleAction.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.ResourceManager.Monitor.Models
{
/// <summary> The parameters for the scaling action. </summary>
public partial class MonitorScaleAction
{
/// <summary> Initializes a new instance of MonitorScaleAction. </summary>
/// <param name="direction"> the scale direction. Whether the scaling action increases or decreases the number of instances. </param>
/// <param name="scaleType"> the type of action that should occur when the scale rule fires. </param>
/// <param name="cooldown"> the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format. </param>
public MonitorScaleAction(MonitorScaleDirection direction, MonitorScaleType scaleType, TimeSpan cooldown)
{
Direction = direction;
ScaleType = scaleType;
Cooldown = cooldown;
}
/// <summary> Initializes a new instance of MonitorScaleAction. </summary>
/// <param name="direction"> the scale direction. Whether the scaling action increases or decreases the number of instances. </param>
/// <param name="scaleType"> the type of action that should occur when the scale rule fires. </param>
/// <param name="value"> the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1. </param>
/// <param name="cooldown"> the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format. </param>
internal MonitorScaleAction(MonitorScaleDirection direction, MonitorScaleType scaleType, string value, TimeSpan cooldown)
{
Direction = direction;
ScaleType = scaleType;
Value = value;
Cooldown = cooldown;
}
/// <summary> the scale direction. Whether the scaling action increases or decreases the number of instances. </summary>
public MonitorScaleDirection Direction { get; set; }
/// <summary> the type of action that should occur when the scale rule fires. </summary>
public MonitorScaleType ScaleType { get; set; }
/// <summary> the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1. </summary>
public string Value { get; set; }
/// <summary> the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format. </summary>
public TimeSpan Cooldown { get; set; }
}
}