File: RequestData.bond

package info (click to toggle)
python-applicationinsights 0.11.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 876 kB
  • sloc: python: 5,948; makefile: 151; sh: 77
file content (48 lines) | stat: -rw-r--r-- 1,854 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import "Domain.bond"

namespace AI

[Description("An instance of Request represents completion of an external request to the application to do work and contains a summary of that request execution and the results.")]
struct RequestData
    : Domain
{
    [Description("Schema version")]
    10: required int32 	 ver = 2;
    
    [MaxStringLength("128")]
    [Description("Identifier of a request call instance. Used for correlation between request and other telemetry items.")]
    20: required string 	 id;
    
    [CSType("TimeSpan")]
    [Description("Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.")]
    50: required string 	 duration;
    
    [MaxStringLength("1024")]
    [Description("Result of a request execution. HTTP status code for HTTP requests.")]
    60: required string 	 responseCode;
    
    [Description("Indication of successfull or unsuccessfull call.")]
    70: required bool 	 success;
    
    [MaxStringLength("1024")]
    [Description("Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller.")]
    29: string 	 source;
    
    [MaxStringLength("1024")]
    [Description("Name of the request. Represents code path taken to process request. Low cardinality value to allow better grouping of requests. For HTTP requests it represents the HTTP method and URL path template like 'GET /values/{id}'.")]
    30: string 	 name;
    
    [MaxStringLength("2048")]
    [Description("Request URL with all query string parameters.")]
    90: string 	 url;
    
    [Description("Collection of custom properties.")]
    [MaxKeyLength("150")]
    [MaxValueLength("8192")]
    100: map<string, string> 	 properties;
    
    [Description("Collection of custom measurements.")]
    [MaxKeyLength("150")]
    200: map<string, double> 	 measurements;
    
}