diff options
| author | crobibero <cody@robibe.ro> | 2021-04-26 07:02:26 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2021-04-26 07:02:26 -0600 |
| commit | 1d6224c9c66b31c9df602b4281c870a9c400767c (patch) | |
| tree | 91e65f2c5aa0de89a9782a3036a9fc62777ea929 /Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs | |
| parent | 5df87b3e0da0ef3010ec9929939ef3084bff42be (diff) | |
Add endpoint to log client events
Diffstat (limited to 'Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs')
| -rw-r--r-- | Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs b/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs new file mode 100644 index 000000000..8ee1eab72 --- /dev/null +++ b/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs @@ -0,0 +1,54 @@ +using System; +using System.ComponentModel.DataAnnotations; +using Microsoft.Extensions.Logging; + +namespace Jellyfin.Api.Models.ClientLogDtos +{ + /// <summary> + /// The client log dto. + /// </summary> + public class ClientLogEventDto + { + /// <summary> + /// Gets or sets the event timestamp. + /// </summary> + [Required] + public DateTime Timestamp { get; set; } + + /// <summary> + /// Gets or sets the log level. + /// </summary> + [Required] + public LogLevel Level { get; set; } + + /// <summary> + /// Gets or sets the user id. + /// </summary> + public Guid? UserId { get; set; } + + /// <summary> + /// Gets or sets the client name. + /// </summary> + [Required] + public string ClientName { get; set; } = string.Empty; + + /// <summary> + /// Gets or sets the client version. + /// </summary> + [Required] + public string ClientVersion { get; set; } = string.Empty; + + /// + /// <summary> + /// Gets or sets the device id. + /// </summary> + [Required] + public string DeviceId { get; set; } = string.Empty; + + /// <summary> + /// Gets or sets the log message. + /// </summary> + [Required] + public string Message { get; set; } = string.Empty; + } +}
\ No newline at end of file |
