|
8 | 8 |
|
9 | 9 | namespace Discord.API.Status.Models |
10 | 10 | { |
| 11 | + /// <summary> |
| 12 | + /// An incident in the Discord API. |
| 13 | + /// </summary> |
11 | 14 | public partial class Incident |
12 | 15 | { |
| 16 | + /// <summary> |
| 17 | + /// Gets the name of the incident. |
| 18 | + /// </summary> |
13 | 19 | [JsonPropertyName("name")] |
14 | 20 | public string Name { get; set; } |
15 | 21 |
|
| 22 | + /// <summary> |
| 23 | + /// Gets the status of the api. |
| 24 | + /// </summary> |
16 | 25 | [JsonPropertyName("status")] |
17 | 26 | public string Status { get; set; } |
18 | 27 |
|
| 28 | + /// <summary> |
| 29 | + /// Gets the time the incident began. |
| 30 | + /// </summary> |
19 | 31 | [JsonPropertyName("created_at")] |
20 | 32 | public DateTimeOffset? CreatedAt { get; set; } |
21 | 33 |
|
| 34 | + /// <summary> |
| 35 | + /// Gets the time of the last incident update. |
| 36 | + /// </summary> |
22 | 37 | [JsonPropertyName("updated_at")] |
23 | 38 | public DateTimeOffset? UpdatedAt { get; set; } |
24 | 39 |
|
| 40 | + /// <summary> |
| 41 | + /// Gets the time monitoring began. |
| 42 | + /// </summary> |
25 | 43 | [JsonPropertyName("monitoring_at")] |
26 | 44 | public DateTimeOffset? MonitoringAt { get; set; } |
27 | 45 |
|
| 46 | + /// <summary> |
| 47 | + /// Gets the time the incident was resolved at. |
| 48 | + /// </summary> |
28 | 49 | [JsonPropertyName("resolved_at")] |
29 | 50 | public DateTimeOffset? ResolvedAt { get; set; } |
30 | 51 |
|
| 52 | + /// <summary> |
| 53 | + /// Gets the impact of the incident. |
| 54 | + /// </summary> |
31 | 55 | [JsonPropertyName("impact")] |
32 | 56 | public string Impact { get; set; } |
33 | 57 |
|
| 58 | + /// <summary> |
| 59 | + /// Gets the short link url to the incident. |
| 60 | + /// </summary> |
34 | 61 | [JsonPropertyName("shortlink")] |
35 | 62 | public string Shortlink { get; set; } |
36 | 63 |
|
| 64 | + /// <summary> |
| 65 | + /// Gets a value indicating whether or not the post mortem of the incident is ignored. |
| 66 | + /// </summary> |
37 | 67 | [JsonPropertyName("postmortem_ignored")] |
38 | 68 | public bool PostmortemIgnored { get; set; } |
39 | 69 |
|
| 70 | + /// <summary> |
| 71 | + /// Gets the post mortem of the incident. |
| 72 | + /// </summary> |
40 | 73 | [JsonPropertyName("postmortem_body")] |
41 | 74 | public object PostmortemBody { get; set; } |
42 | 75 |
|
| 76 | + /// <summary> |
| 77 | + /// Gets the time the post mortem body was last updated. |
| 78 | + /// </summary> |
43 | 79 | [JsonPropertyName("postmortem_body_last_updated_at")] |
44 | 80 | public object PostmortemBodyLastUpdatedAt { get; set; } |
45 | 81 |
|
| 82 | + /// <summary> |
| 83 | + /// Gets the time when the post mortem was published. |
| 84 | + /// </summary> |
46 | 85 | [JsonPropertyName("postmortem_published_at")] |
47 | 86 | public object PostmortemPublishedAt { get; set; } |
48 | 87 |
|
| 88 | + /// <summary> |
| 89 | + /// Gets a value indicating whether or not post mortem subscribers are notified. |
| 90 | + /// </summary> |
49 | 91 | [JsonPropertyName("postmortem_notified_subscribers")] |
50 | 92 | public bool PostmortemNotifiedSubscribers { get; set; } |
51 | 93 |
|
| 94 | + /// <summary> |
| 95 | + /// Gets a value indicating whether or not the post mortem was posted on Twitter. |
| 96 | + /// </summary> |
52 | 97 | [JsonPropertyName("postmortem_notified_twitter")] |
53 | 98 | public bool PostmortemNotifiedTwitter { get; set; } |
54 | 99 |
|
| 100 | + /// <summary> |
| 101 | + /// TODO: Investigate. |
| 102 | + /// </summary> |
55 | 103 | [JsonPropertyName("scheduled_for")] |
56 | 104 | public object ScheduledFor { get; set; } |
57 | 105 |
|
| 106 | + /// <summary> |
| 107 | + /// TODO: Investigate. |
| 108 | + /// </summary> |
58 | 109 | [JsonPropertyName("scheduled_until")] |
59 | 110 | public object ScheduledUntil { get; set; } |
60 | 111 |
|
| 112 | + /// <summary> |
| 113 | + /// TODO: Investigate. |
| 114 | + /// </summary> |
61 | 115 | [JsonPropertyName("scheduled_remind_prior")] |
62 | 116 | public bool ScheduledRemindPrior { get; set; } |
63 | 117 |
|
| 118 | + /// <summary> |
| 119 | + /// TODO: Investigate. |
| 120 | + /// </summary> |
64 | 121 | [JsonPropertyName("scheduled_reminded_at")] |
65 | 122 | public object ScheduledRemindedAt { get; set; } |
66 | 123 |
|
| 124 | + /// <summary> |
| 125 | + /// TODO: Investigate. |
| 126 | + /// </summary> |
67 | 127 | [JsonPropertyName("impact_override")] |
68 | 128 | public string ImpactOverride { get; set; } |
69 | 129 |
|
| 130 | + /// <summary> |
| 131 | + /// TODO: Investigate. |
| 132 | + /// </summary> |
70 | 133 | [JsonPropertyName("scheduled_auto_in_progress")] |
71 | 134 | public bool ScheduledAutoInProgress { get; set; } |
72 | 135 |
|
| 136 | + /// <summary> |
| 137 | + /// Gets a value indicating whether or not the incident is scheduled for auto complete. |
| 138 | + /// </summary> |
73 | 139 | [JsonPropertyName("scheduled_auto_completed")] |
74 | 140 | public bool ScheduledAutoCompleted { get; set; } |
75 | 141 |
|
| 142 | + /// <summary> |
| 143 | + /// Gets the incident id. |
| 144 | + /// </summary> |
76 | 145 | [JsonPropertyName("id")] |
77 | 146 | public string Id { get; set; } |
78 | 147 |
|
| 148 | + /// <summary> |
| 149 | + /// Gets the page id for the incident. |
| 150 | + /// </summary> |
79 | 151 | [JsonPropertyName("page_id")] |
80 | 152 | public string PageId { get; set; } |
81 | 153 |
|
| 154 | + /// <summary> |
| 155 | + /// Gets a list of updates to the incident. |
| 156 | + /// </summary> |
82 | 157 | [JsonPropertyName("incident_updates")] |
83 | 158 | public IncidentUpdate[] IncidentUpdates { get; set; } |
84 | 159 | } |
|
0 commit comments