silk.Request
Request(id, path, query_params, raw_body, body, method, start_time, view_name, end_time, time_taken, encoded_headers, meta_time, meta_num_queries, meta_time_spent_queries, pyprofile, prof_file, num_sql_queries)
Fields
| Field | Type | Description |
|---|---|---|
| body | Text | body |
| content_type | ||
| encoded_headers | Text | encoded headers |
| end_time | Date (with time) | end time |
| headers | ||
| id | String (up to 36) | id |
| meta_num_queries | Integer | meta num queries |
| meta_time | Floating point number | meta time |
| meta_time_spent_queries | Floating point number | meta time spent queries |
| method | String (up to 10) | method |
| num_sql_queries | Integer | num sql queries |
| path | String (up to 190) | path |
| prof_file | File | prof file |
| profile_set.all | List | all related silk.Profile objects |
| profile_set.count | Integer | number of related silk.Profile objects |
| profile_table | ||
| pyprofile | Text | pyprofile |
| queries.all | List | all related silk.SQLQuery objects |
| queries.count | Integer | number of related silk.SQLQuery objects |
| query_params | Text | query params |
| raw_body | Text | raw body |
| response.all | List | all related silk.Response objects |
| response.count | Integer | number of related silk.Response objects |
| start_time | Date (with time) | start time |
| time_spent_on_sql_queries | TODO: Perhaps there is a nicer way to do this with Django aggregates? My initial thought was to perform: SQLQuery.objects.filter.aggregate(Sum(F('end_time')) - Sum(F('start_time'))) However this feature isnt available yet, however there has been talk for use of F objects within aggregates for four years here: https://code.djangoproject.com/ticket/14030. It looks like this will go in soon at which point this should be changed. |
|
| time_taken | Floating point number | time taken |
| total_meta_time | ||
| view_name | String (up to 190) | view name |