Skip to content

RequestTracking Class ​

Definition ​

Tracks metrics about a Request process

  • Namespace: JASE.Web
  • Assembly: JASE.Web.dll

Constructors ​

NameDescription
RequestTracking()RequestTracking constructor
RequestTracking(Guid id)RequestTracking constructor when the ID is a known value

Fields ​

NameDescription
REQUESTTRACKING_RESPONSELENGTHString value for the calculated length of a response to a request

Properties ​

NameDescription
ActionExecutionMSTime spent executing the request action in milliseconds
ContentLengthContent length of the Response
ContentTypeContentType of the Response
DatabaseTransactionCountNumber of database transactions executed during the Request
DatabaseTransactionMillisecondsNumber of Milliseconds spent executing database transactions
DurationElapsed duration of the Request in Milliseconds
EndTimeUTC timestamp when the Request was completed
IpAddressRemote IP Address
MaxListSizeReturns the current max list size
RequestContentLengthContent length of the Request payload
RequestContentTypeContentType of the Request payload
RequestHeadersRequest Header
RequestMethodRequest HTTP Method
RequestUIDUnique ID of the Request
ResponseHeadersResponse Headers
ResultProcessingMSTime spent processing Controller result in Milliseconds
RouteJSON serialization of the RouteInformation
StartTimeUTC timestamp of when the Request was received
StatusCodeHTTP Status Code for the Response
UrlRequest URL string

Methods ​

NameDescription
bool Add(RequestTracking item)Add an item to the list if it is not already contained
bool AddOrUpdate(RequestTracking item)Add an item to the list if it is not already contained, replace/update if it does
bool AddOrUpdateRange(List<RequestTracking> items)Add a List of item entries to the list, replacing items where RequestUID entries that already exist
bool AddRange(List<RequestTracking> items)Add a List of item entries to the list, skipping item RequestUID entries that already exist
bool Contains(Guid requestUID)Returns if the input requestUID is contained withint the current List
List<RequestTracking> GetAndClearList()Returns a list of the items currently tracked in the list and clears internal list
RequestTracking GetCopy(Guid uuid)Returns a copy of a tracked request by it's UUID
int GetListSize()Returns the current size of the tracked list
int SetMaxListSize(int size)Sets the value for th max number of items in the tracked list