Skip to content

ComplianceResult

Record in Oadm.Sdk.Compliance · Oadm.Sdk.dll

What a check type found on one device, with a short text for the page (“Object Analytics is stopped”).

public sealed record ComplianceResult(ComplianceOutcome Outcome, string Detail)

Parameters

  • Outcome: Passed, failed, not applicable or could not check.
  • Detail: One short line; the tooltip of the result. At most 1,000 characters are kept.
string Detail { get; init; }

One short line; the tooltip of the result. At most 1,000 characters are kept.

ComplianceOutcome Outcome { get; init; }

Passed, failed, not applicable or could not check.

static ComplianceResult CouldNotCheck(string reason)

A read failed; the reason is shown.

static ComplianceResult Failed(string detail)

The device does not meet the check.

static ComplianceResult NotApplicable(string reason)

The check does not apply to the device.

static ComplianceResult Passed(string detail = "")

The device meets the check.