Appearance
RequestTracking Class
Definition
Tracks metrics about a Request process
- Namespace:
JASE.Web - Assembly:
JASE.Web.dll
Constructors
| Name | Description |
|---|---|
RequestTracking() | RequestTracking constructor |
RequestTracking(Guid id) | RequestTracking constructor when the ID is a known value |
Fields
| Name | Description |
|---|---|
REQUESTTRACKING_RESPONSELENGTH | String value for the calculated length of a response to a request |
Properties
| Name | Description |
|---|---|
ActionExecutionMS | Time spent executing the request action in milliseconds |
ContentLength | Content length of the Response |
ContentType | ContentType of the Response |
DatabaseTransactionCount | Number of database transactions executed during the Request |
DatabaseTransactionMilliseconds | Number of Milliseconds spent executing database transactions |
Duration | Elapsed duration of the Request in Milliseconds |
EndTime | UTC timestamp when the Request was completed |
IpAddress | Remote IP Address |
MaxListSize | Returns the current max list size |
RequestContentLength | Content length of the Request payload |
RequestContentType | ContentType of the Request payload |
RequestHeaders | Request Header |
RequestMethod | Request HTTP Method |
RequestUID | Unique ID of the Request |
ResponseHeaders | Response Headers |
ResultProcessingMS | Time spent processing Controller result in Milliseconds |
Route | JSON serialization of the RouteInformation |
StartTime | UTC timestamp of when the Request was received |
StatusCode | HTTP Status Code for the Response |
Url | Request URL string |
Methods
| Name | Description |
|---|---|
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 |