Created
September 10, 2022 08:35
-
-
Save Rajdeep-Das/6e739da5194dcd860cdfb2789c241342 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Redis.OM.Modeling; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace WatchLogger.Models | |
{ | |
[Document(StorageType = StorageType.Json, Prefixes = new[] { "WLog" })] | |
public class WLog | |
{ | |
[RedisIdField] | |
[Indexed] | |
public string Id { get; set; } | |
[Indexed] | |
public string ResponseBody { get; set; } | |
[Indexed] | |
public int ResponseStatus { get; set; } | |
[Indexed] | |
public string RequestBody { get; set; } | |
[Indexed] | |
public string QueryString { get; set; } | |
[Indexed] | |
public string Path { get; set; } | |
[Indexed] | |
public string RequestHeaders { get; set; } | |
[Indexed] | |
public string ResponseHeaders { get; set; } | |
[Indexed] | |
public string Method { get; set; } | |
[Indexed] | |
public string Host { get; set; } | |
[Indexed] | |
public string IpAddress { get; set; } | |
[Indexed] | |
public string TimeSpent { get; set; } | |
[Indexed] | |
public DateTime StartTime { get; set; } | |
[Indexed] | |
public DateTime EndTime { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment