aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs
blob: 04d97047a1e802a4dbca9d1b0608b16d4ebe9363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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;
    }
}