-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ActiveConnectionsNotInAllowedRange.cs
45 lines (39 loc) · 2.53 KB
/
ActiveConnectionsNotInAllowedRange.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.ResourceManager.SecurityCenter.Models
{
/// <summary> Number of active connections is not in allowed range. </summary>
public partial class ActiveConnectionsNotInAllowedRange : TimeWindowCustomAlertRule
{
/// <summary> Initializes a new instance of <see cref="ActiveConnectionsNotInAllowedRange"/>. </summary>
/// <param name="isEnabled"> Status of the custom alert. </param>
/// <param name="minThreshold"> The minimum threshold. </param>
/// <param name="maxThreshold"> The maximum threshold. </param>
/// <param name="timeWindowSize"> The time window size in iso8601 format. </param>
public ActiveConnectionsNotInAllowedRange(bool isEnabled, int minThreshold, int maxThreshold, TimeSpan timeWindowSize) : base(isEnabled, minThreshold, maxThreshold, timeWindowSize)
{
RuleType = "ActiveConnectionsNotInAllowedRange";
}
/// <summary> Initializes a new instance of <see cref="ActiveConnectionsNotInAllowedRange"/>. </summary>
/// <param name="displayName"> The display name of the custom alert. </param>
/// <param name="description"> The description of the custom alert. </param>
/// <param name="isEnabled"> Status of the custom alert. </param>
/// <param name="ruleType"> The type of the custom alert rule. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="minThreshold"> The minimum threshold. </param>
/// <param name="maxThreshold"> The maximum threshold. </param>
/// <param name="timeWindowSize"> The time window size in iso8601 format. </param>
internal ActiveConnectionsNotInAllowedRange(string displayName, string description, bool isEnabled, string ruleType, IDictionary<string, BinaryData> serializedAdditionalRawData, int minThreshold, int maxThreshold, TimeSpan timeWindowSize) : base(displayName, description, isEnabled, ruleType, serializedAdditionalRawData, minThreshold, maxThreshold, timeWindowSize)
{
RuleType = ruleType ?? "ActiveConnectionsNotInAllowedRange";
}
/// <summary> Initializes a new instance of <see cref="ActiveConnectionsNotInAllowedRange"/> for deserialization. </summary>
internal ActiveConnectionsNotInAllowedRange()
{
}
}
}