ComplianceInvocation
Record in Oadm.Sdk.Compliance · Oadm.Sdk.dll
One check run on one device: the check and its settings as the user set them.
public sealed record ComplianceInvocation(Guid CheckId, string CheckName, JsonElement Settings)Parameters
CheckId: The check.CheckName: Its name (“Object Analytics running”).Settings: The settings of the check (the type’sIComplianceCheckType.Fields).
Properties
Section titled “Properties”CheckId
Section titled “CheckId”Guid CheckId { get; init; }The check.
CheckName
Section titled “CheckName”string CheckName { get; init; }Its name (“Object Analytics running”).
Settings
Section titled “Settings”JsonElement Settings { get; init; }The settings of the check (the type’s IComplianceCheckType.Fields).
Methods
Section titled “Methods”string? Get(string key)A setting as text (null when missing or null).
GetBool
Section titled “GetBool”bool GetBool(string key)A check box setting.
GetFile
Section titled “GetFile”ActionFile? GetFile(string key)The content of a ActionFieldType.File setting; null when none was chosen or it cannot be read.
GetInt
Section titled “GetInt”int? GetInt(string key)A number setting; null when missing or not a number.