Skip to content

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’s IComplianceCheckType.Fields).
Guid CheckId { get; init; }

The check.

string CheckName { get; init; }

Its name (“Object Analytics running”).

JsonElement Settings { get; init; }

The settings of the check (the type’s IComplianceCheckType.Fields).

string? Get(string key)

A setting as text (null when missing or null).

bool GetBool(string key)

A check box setting.

ActionFile? GetFile(string key)

The content of a ActionFieldType.File setting; null when none was chosen or it cannot be read.

int? GetInt(string key)

A number setting; null when missing or not a number.