다음을 통해 공유


SubscriptionDiagnosticSettingsResource Class

Definition

The subscription diagnostic setting resource.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.SubscriptionDiagnosticSettingsResourceTypeConverter))]
public class SubscriptionDiagnosticSettingsResource : Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.ISubscriptionDiagnosticSettingsResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.SubscriptionDiagnosticSettingsResourceTypeConverter))>]
type SubscriptionDiagnosticSettingsResource = class
    interface ISubscriptionDiagnosticSettingsResource
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class SubscriptionDiagnosticSettingsResource
Implements ISubscriptionDiagnosticSettingsResource, IValidates
Inheritance
SubscriptionDiagnosticSettingsResource
Attributes
Implements

Constructors

SubscriptionDiagnosticSettingsResource()

Creates an new SubscriptionDiagnosticSettingsResource instance.

Properties

EventHubAuthorizationRuleId

The resource Id for the event hub authorization rule.

EventHubName

The name of the event hub. If none is specified, the default event hub will be selected.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

Log

The list of logs settings.

MarketplacePartnerId

The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.

Name

The name of the resource

ServiceBusRuleId

The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.

StorageAccountId

The resource ID of the storage account to which you would like to send Diagnostic Logs.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

WorkspaceId

The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of SubscriptionDiagnosticSettingsResource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of SubscriptionDiagnosticSettingsResource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.ISubscriptionDiagnosticSettingsResource.

FromJsonString(String)

Creates a new instance of SubscriptionDiagnosticSettingsResource, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of SubscriptionDiagnosticSettingsResource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to