Freigeben über


ArmMonitorModelFactory.LogProfileData Methode

Definition

Initialisiert eine neue instance von LogProfileData.

public static Azure.ResourceManager.Monitor.LogProfileData LogProfileData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.Core.ResourceIdentifier storageAccountId = default, Azure.Core.ResourceIdentifier serviceBusRuleId = default, System.Collections.Generic.IEnumerable<Azure.Core.AzureLocation> locations = default, System.Collections.Generic.IEnumerable<string> categories = default, Azure.ResourceManager.Monitor.Models.RetentionPolicy retentionPolicy = default);
static member LogProfileData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.Core.AzureLocation> * seq<string> * Azure.ResourceManager.Monitor.Models.RetentionPolicy -> Azure.ResourceManager.Monitor.LogProfileData
Public Shared Function LogProfileData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional storageAccountId As ResourceIdentifier = Nothing, Optional serviceBusRuleId As ResourceIdentifier = Nothing, Optional locations As IEnumerable(Of AzureLocation) = Nothing, Optional categories As IEnumerable(Of String) = Nothing, Optional retentionPolicy As RetentionPolicy = Nothing) As LogProfileData

Parameter

id
ResourceIdentifier

Die ID.

name
String

Der Name.

resourceType
ResourceType

Der resourceType.

systemData
SystemData

SystemDaten.

tags
IDictionary<String,String>

Die Tags.

location
AzureLocation

Der Speicherort.

storageAccountId
ResourceIdentifier

die Ressourcen-ID des Speicherkontos, an das Sie das Aktivitätsprotokoll senden möchten.

serviceBusRuleId
ResourceIdentifier

Die Service Bus-Regel-ID des Service Bus-Namespace, in dem Event Hubs für das Streaming des Aktivitätsprotokolls erstellt werden sollen. Die Regel-ID hat das Format "{service bus resource ID}/authorizationrules/{key name}".

locations
IEnumerable<AzureLocation>

Liste der Regionen, für die Aktivitätsprotokollereignisse gespeichert oder gestreamt werden sollen. Dabei handelt es sich um eine durch Kommage getrennte Liste gültiger ARM-Standorte, einschließlich des "globalen" Standorts.

categories
IEnumerable<String>

die Kategorien der Protokolle. Diese Kategorien werden so erstellt, wie es für den Benutzer bequem ist. Einige Werte sind: "Write", "Delete" und/oder "Action".

retentionPolicy
RetentionPolicy

die Aufbewahrungsrichtlinie für die Ereignisse im Protokoll.

Gibt zurück

Eine neue LogProfileData instance zum Mocking.

Gilt für: