-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathKcOperationResponse.cs
More file actions
23 lines (21 loc) · 1005 Bytes
/
KcOperationResponse.cs
File metadata and controls
23 lines (21 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using NETCore.Keycloak.Client.Models.Common;
using Newtonsoft.Json;
namespace NETCore.Keycloak.Client.Models;
/// <summary>
/// Represents a Keycloak operation response, extending <see cref="KcBaseResponse{T}"/> to handle
/// additional monitoring metrics for multiple API calls in a single operation.
/// </summary>
/// <typeparam name="T">The type of the response data.</typeparam>
public class KcOperationResponse<T> : KcBaseResponse<T>
{
/// <summary>
/// Gets or sets the collection of monitoring metrics associated with the API operation.
/// </summary>
/// <value>
/// A collection of <see cref="KcHttpApiMonitoringMetrics"/> instances containing monitoring data
/// such as execution time, HTTP methods, and status codes for individual API requests involved in the operation,
/// or <c>null</c> if no metrics are available.
/// </value>
[JsonProperty("monitoringMetrics")]
public ICollection<KcHttpApiMonitoringMetrics> MonitoringMetrics { get; } = [];
}