Class ProtoReportItem
A normalized item that can be rendered by any report sink. Kind is an open string so integrations can define their own; ProtoReportItemKinds names the values Core itself uses.
public sealed record ProtoReportItem : IEquatable<ProtoReportItem>
- Inheritance
-
ProtoReportItem
- Implements
- Inherited Members
- Extension Methods
Constructors
ProtoReportItem(string, string, string, string, ProtoReportStatus, int, bool?, double?, string?, string?, IReadOnlyList<string>?, IReadOnlyList<ProtoReportItem>?, IReadOnlyDictionary<string, object>?, string?, string?)
A normalized item that can be rendered by any report sink. Kind is an open string so integrations can define their own; ProtoReportItemKinds names the values Core itself uses.
public ProtoReportItem(string TargetName, string Category, string Identifier, string Kind = "observation", ProtoReportStatus Status = ProtoReportStatus.Neutral, int Count = 0, bool? IsCovered = null, double? Value = null, string? Unit = null, string? Message = null, IReadOnlyList<string>? Tags = null, IReadOnlyList<ProtoReportItem>? Children = null, IReadOnlyDictionary<string, object>? Metadata = null, string? DisplayName = null, string? DisplayGroup = null)
Parameters
TargetNamestringCategorystringIdentifierstringKindstringStatusProtoReportStatusCountintIsCoveredbool?Valuedouble?UnitstringMessagestringTagsIReadOnlyList<string>ChildrenIReadOnlyList<ProtoReportItem>MetadataIReadOnlyDictionary<string, object>DisplayNamestringDisplayGroupstring
Properties
Category
public string Category { get; init; }
Property Value
Children
public IReadOnlyList<ProtoReportItem>? Children { get; init; }
Property Value
Count
public int Count { get; init; }
Property Value
DisplayGroup
public string? DisplayGroup { get; init; }
Property Value
DisplayName
public string? DisplayName { get; init; }
Property Value
Identifier
public string Identifier { get; init; }
Property Value
IsCovered
public bool? IsCovered { get; init; }
Property Value
- bool?
Kind
public string Kind { get; init; }
Property Value
Message
public string? Message { get; init; }
Property Value
Metadata
public IReadOnlyDictionary<string, object>? Metadata { get; init; }
Property Value
Status
public ProtoReportStatus Status { get; init; }
Property Value
Tags
public IReadOnlyList<string>? Tags { get; init; }
Property Value
TargetName
public string TargetName { get; init; }
Property Value
Unit
public string? Unit { get; init; }
Property Value
Value
public double? Value { get; init; }