Skip to content

Instantly share code, notes, and snippets.

@Rajdeep-Das
Created September 10, 2022 08:35
Show Gist options
  • Save Rajdeep-Das/6e739da5194dcd860cdfb2789c241342 to your computer and use it in GitHub Desktop.
Save Rajdeep-Das/6e739da5194dcd860cdfb2789c241342 to your computer and use it in GitHub Desktop.
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