Partilhar via


ArmPolicyInsightsModelFactory.PolicySummaryResults Method

Definition

Initializes a new instance of PolicySummaryResults.

public static Azure.ResourceManager.PolicyInsights.Models.PolicySummaryResults PolicySummaryResults (Uri queryResultsUri = default, int? nonCompliantResources = default, int? nonCompliantPolicies = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.PolicyInsights.Models.ComplianceDetail> resourceDetails = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.PolicyInsights.Models.ComplianceDetail> policyDetails = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.PolicyInsights.Models.ComplianceDetail> policyGroupDetails = default);
static member PolicySummaryResults : Uri * Nullable<int> * Nullable<int> * seq<Azure.ResourceManager.PolicyInsights.Models.ComplianceDetail> * seq<Azure.ResourceManager.PolicyInsights.Models.ComplianceDetail> * seq<Azure.ResourceManager.PolicyInsights.Models.ComplianceDetail> -> Azure.ResourceManager.PolicyInsights.Models.PolicySummaryResults
Public Shared Function PolicySummaryResults (Optional queryResultsUri As Uri = Nothing, Optional nonCompliantResources As Nullable(Of Integer) = Nothing, Optional nonCompliantPolicies As Nullable(Of Integer) = Nothing, Optional resourceDetails As IEnumerable(Of ComplianceDetail) = Nothing, Optional policyDetails As IEnumerable(Of ComplianceDetail) = Nothing, Optional policyGroupDetails As IEnumerable(Of ComplianceDetail) = Nothing) As PolicySummaryResults

Parameters

queryResultsUri
Uri

HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the compliance summary. This property will not be available by default in future API versions, but could be queried explicitly.

nonCompliantResources
Nullable<Int32>

Number of non-compliant resources.

nonCompliantPolicies
Nullable<Int32>

Number of non-compliant policies.

resourceDetails
IEnumerable<ComplianceDetail>

The resources summary at this level.

policyDetails
IEnumerable<ComplianceDetail>

The policy artifact summary at this level. For query scope level, it represents policy assignment summary. For policy assignment level, it represents policy definitions summary.

policyGroupDetails
IEnumerable<ComplianceDetail>

The policy definition group summary at this level.

Returns

A new PolicySummaryResults instance for mocking.

Applies to