Condividi tramite


EventGridModelFactory.PolicyInsightsPolicyStateChangedEventData Method

Definition

Initializes a new instance of PolicyInsightsPolicyStateChangedEventData.

public static Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateChangedEventData PolicyInsightsPolicyStateChangedEventData (DateTimeOffset? timestamp = default, string policyAssignmentId = default, string policyDefinitionId = default, string policyDefinitionReferenceId = default, string complianceState = default, string subscriptionId = default, string complianceReasonCode = default);
static member PolicyInsightsPolicyStateChangedEventData : Nullable<DateTimeOffset> * string * string * string * string * string * string -> Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateChangedEventData
Public Shared Function PolicyInsightsPolicyStateChangedEventData (Optional timestamp As Nullable(Of DateTimeOffset) = Nothing, Optional policyAssignmentId As String = Nothing, Optional policyDefinitionId As String = Nothing, Optional policyDefinitionReferenceId As String = Nothing, Optional complianceState As String = Nothing, Optional subscriptionId As String = Nothing, Optional complianceReasonCode As String = Nothing) As PolicyInsightsPolicyStateChangedEventData

Parameters

timestamp
Nullable<DateTimeOffset>

The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ.

policyAssignmentId
String

The resource ID of the policy assignment.

policyDefinitionId
String

The resource ID of the policy definition.

policyDefinitionReferenceId
String

The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty.

complianceState
String

The compliance state of the resource with respect to the policy assignment.

subscriptionId
String

The subscription ID of the resource.

complianceReasonCode
String

The compliance reason code. May be empty.

Returns

A new PolicyInsightsPolicyStateChangedEventData instance for mocking.

Applies to