-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MonitorEventHubReceiver.cs
65 lines (58 loc) · 3.54 KB
/
MonitorEventHubReceiver.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.Monitor.Models
{
/// <summary> An Event hub receiver. </summary>
public partial class MonitorEventHubReceiver
{
/// <summary> Initializes a new instance of MonitorEventHubReceiver. </summary>
/// <param name="name"> The name of the Event hub receiver. Names must be unique across all receivers within an action group. </param>
/// <param name="eventHubNameSpace"> The Event Hub namespace. </param>
/// <param name="eventHubName"> The name of the specific Event Hub queue. </param>
/// <param name="subscriptionId"> The Id for the subscription containing this event hub. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/>, <paramref name="eventHubNameSpace"/>, <paramref name="eventHubName"/> or <paramref name="subscriptionId"/> is null. </exception>
public MonitorEventHubReceiver(string name, string eventHubNameSpace, string eventHubName, string subscriptionId)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(eventHubNameSpace, nameof(eventHubNameSpace));
Argument.AssertNotNull(eventHubName, nameof(eventHubName));
Argument.AssertNotNull(subscriptionId, nameof(subscriptionId));
Name = name;
EventHubNameSpace = eventHubNameSpace;
EventHubName = eventHubName;
SubscriptionId = subscriptionId;
}
/// <summary> Initializes a new instance of MonitorEventHubReceiver. </summary>
/// <param name="name"> The name of the Event hub receiver. Names must be unique across all receivers within an action group. </param>
/// <param name="eventHubNameSpace"> The Event Hub namespace. </param>
/// <param name="eventHubName"> The name of the specific Event Hub queue. </param>
/// <param name="useCommonAlertSchema"> Indicates whether to use common alert schema. </param>
/// <param name="tenantId"> The tenant Id for the subscription containing this event hub. </param>
/// <param name="subscriptionId"> The Id for the subscription containing this event hub. </param>
internal MonitorEventHubReceiver(string name, string eventHubNameSpace, string eventHubName, bool? useCommonAlertSchema, Guid? tenantId, string subscriptionId)
{
Name = name;
EventHubNameSpace = eventHubNameSpace;
EventHubName = eventHubName;
UseCommonAlertSchema = useCommonAlertSchema;
TenantId = tenantId;
SubscriptionId = subscriptionId;
}
/// <summary> The name of the Event hub receiver. Names must be unique across all receivers within an action group. </summary>
public string Name { get; set; }
/// <summary> The Event Hub namespace. </summary>
public string EventHubNameSpace { get; set; }
/// <summary> The name of the specific Event Hub queue. </summary>
public string EventHubName { get; set; }
/// <summary> Indicates whether to use common alert schema. </summary>
public bool? UseCommonAlertSchema { get; set; }
/// <summary> The tenant Id for the subscription containing this event hub. </summary>
public Guid? TenantId { get; set; }
/// <summary> The Id for the subscription containing this event hub. </summary>
public string SubscriptionId { get; set; }
}
}