25 lines
653 B
C#
25 lines
653 B
C#
using System.Collections.Generic;
|
|
using System.Text.Json.Nodes;
|
|
|
|
namespace StellaOps.Notifier.WebService.Contracts;
|
|
|
|
public sealed record RiskEventRequest
|
|
{
|
|
public Guid EventId { get; init; }
|
|
|
|
/// <summary>
|
|
/// risk.profile.severity.changed | risk.profile.published | risk.profile.deprecated | risk.profile.thresholds.changed
|
|
/// </summary>
|
|
public string? Kind { get; init; }
|
|
|
|
public string? Actor { get; init; }
|
|
|
|
public DateTimeOffset? Timestamp { get; init; }
|
|
|
|
public JsonObject? Payload { get; init; }
|
|
|
|
public IDictionary<string, string>? Attributes { get; init; }
|
|
|
|
public string? ResumeToken { get; init; }
|
|
}
|