API Reference
CmdletGetCertificateInventoryCtHealth
Builds CT diagnostics health timeline from persisted certificate inventory snapshots.
Inheritance
- PSCmdlet
- CmdletGetCertificateInventoryCtHealth
Examples
Get CT health for the last 30 days
Get-DDCertificateInventoryCtHealth -SinceUtc (Get-Date).ToUniversalTime().AddDays(-30) -MaxSnapshots 60
Apply thresholds and fail when latest snapshot is breached
Get-DDCertificateInventoryCtHealth -LatestOnly -MaxFailed 0 -MaxCircuitOpen 0 -MaxLagAfter 5000 -FailOnThresholdBreach
Fail when any returned snapshot is breached
Get-DDCertificateInventoryCtHealth -SinceUtc (Get-Date).ToUniversalTime().AddDays(-7) -FailOnAnyBreach -MaxFailed 0 -FailOnThresholdBreach
Constructors
public CmdletGetCertificateInventoryCtHealth() #Methods
ProcessRecord() #Executes the cmdlet.
Inherited Methods
public PathInfo CurrentProviderLocation(String providerId) #PathInfoParameters
- providerId String
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
public Collection<String> GetResolvedProviderPathFromPSPath(String path, out ProviderInfo provider) #Collection<String>Parameters
- path String
- provider ProviderInfo
public override String GetResourceString(String baseName, String resourceId) #StringParameters
- baseName String
- resourceId String
public String GetUnresolvedProviderPathFromPSPath(String path) #StringParameters
- path String
public Object GetVariableValue(String name, Object defaultValue) #ObjectParameters
- name String
public Boolean ShouldContinue(String query, String caption) #BooleanParameters
- query String
- caption String
- hasSecurityImpact Boolean
- yesToAll Boolean
- noToAll Boolean
public Boolean ShouldProcess(String verboseDescription, String verboseWarning, String caption) #BooleanParameters
- verboseDescription String
- verboseWarning String
- caption String
- shouldProcessReason ShouldProcessReason
public Void ThrowTerminatingError(ErrorRecord errorRecord) #VoidParameters
- errorRecord ErrorRecord
public Void WriteCommandDetail(String text) #VoidParameters
- text String
public Void WriteError(ErrorRecord errorRecord) #VoidParameters
- errorRecord ErrorRecord
public Void WriteInformation(InformationRecord informationRecord) #VoidParameters
- messageData Object
- tags String[]
public Void WriteObject(Object sendToPipeline) #VoidParameters
- sendToPipeline Object
- enumerateCollection Boolean
public Void WriteProgress(ProgressRecord progressRecord) #VoidParameters
- progressRecord ProgressRecord
Properties
public String CacheDirectory { get; set; } #Parameter(Mandatory = false)Certificate monitor cache directory containing the inventory folder.
public Nullable<DateTime> SinceUtc { get; set; } #Parameter(Mandatory = false)Only include snapshots captured since this UTC date/time.
public Nullable<DateTime> UntilUtc { get; set; } #Parameter(Mandatory = false)Only include snapshots captured up to this UTC date/time.
public SwitchParameter LatestOnly { get; set; } #Parameter(Mandatory = false)Only evaluate the latest snapshot after date filtering.
public Int32 MaxSnapshots { get; set; } #Parameter(Mandatory = false) ValidateRange(0, 2147483647)Maximum timeline rows returned.
public Nullable<Int32> MaxFailed { get; set; } #Parameter(Mandatory = false) ValidateRange(0, 2147483647)Alert threshold: maximum allowed diagnostics in Failed state.
public Nullable<Int32> MaxCircuitOpen { get; set; } #Parameter(Mandatory = false) ValidateRange(0, 2147483647)Alert threshold: maximum allowed diagnostics in CircuitOpen state.
public Nullable<Int64> MaxLagAfter { get; set; } #Parameter(Mandatory = false) ValidateRange(0, 9223372036854775807)Alert threshold: maximum allowed LagAfter value across diagnostics.
public SwitchParameter FailOnAnyBreach { get; set; } #Parameter(Mandatory = false)When set, fail if any returned snapshot breaches thresholds (otherwise latest snapshot only).
public SwitchParameter FailOnThresholdBreach { get; set; } #Parameter(Mandatory = false)When set, throw a terminating error when threshold breach condition is met.
Inherited Properties
public PSEventManager Events { get; } #public PSHost Host { get; } #public CommandInvocationIntrinsics InvokeCommand { get; } #public ProviderIntrinsics InvokeProvider { get; } #public JobManager JobManager { get; } #public JobRepository JobRepository { get; } #public InvocationInfo MyInvocation { get; } #public PagingParameters PagingParameters { get; } #public String ParameterSetName { get; } #public SessionState SessionState { get; } #public ICommandRuntime CommandRuntime { get; set; } #public Boolean Stopping { get; } #public CommandOrigin CommandOrigin { get; } #