Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: discovery/googleapis/cloudtrace__v1.json

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 {
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/trace.readonly": {
6 "description": "Read Trace data for a project or application "
7 },
8 "https://www.googleapis.com/auth/trace.append": {
9 "description": "Write Trace data for a project or applicatio n"
10 },
11 "https://www.googleapis.com/auth/cloud-platform": {
12 "description": "View and manage your data across Google Clou d Platform services"
13 }
14 }
15 }
16 },
17 "basePath": "",
18 "baseUrl": "https://cloudtrace.googleapis.com/",
19 "batchPath": "batch",
20 "canonicalName": "Cloud Trace",
21 "description": "Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from o ther applications can be written to Stackdriver Trace for display, reporting, an d analysis.\n",
22 "discoveryVersion": "v1",
23 "documentationLink": "https://cloud.google.com/trace",
24 "icons": {
25 "x16": "http://www.google.com/images/icons/product/search-16.gif",
26 "x32": "http://www.google.com/images/icons/product/search-32.gif"
27 },
28 "id": "cloudtrace:v1",
29 "kind": "discovery#restDescription",
30 "name": "cloudtrace",
31 "ownerDomain": "google.com",
32 "ownerName": "Google",
33 "parameters": {
34 "quotaUser": {
35 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
36 "location": "query",
37 "type": "string"
38 },
39 "pp": {
40 "default": "true",
41 "description": "Pretty-print response.",
42 "location": "query",
43 "type": "boolean"
44 },
45 "bearer_token": {
46 "description": "OAuth bearer token.",
47 "location": "query",
48 "type": "string"
49 },
50 "oauth_token": {
51 "description": "OAuth 2.0 token for the current user.",
52 "location": "query",
53 "type": "string"
54 },
55 "upload_protocol": {
56 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
57 "location": "query",
58 "type": "string"
59 },
60 "prettyPrint": {
61 "default": "true",
62 "description": "Returns response with indentations and line breaks." ,
63 "location": "query",
64 "type": "boolean"
65 },
66 "uploadType": {
67 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
68 "location": "query",
69 "type": "string"
70 },
71 "fields": {
72 "description": "Selector specifying which fields to include in a par tial response.",
73 "location": "query",
74 "type": "string"
75 },
76 "callback": {
77 "description": "JSONP",
78 "location": "query",
79 "type": "string"
80 },
81 "$.xgafv": {
82 "description": "V1 error format.",
83 "enum": [
84 "1",
85 "2"
86 ],
87 "enumDescriptions": [
88 "v1 error format",
89 "v2 error format"
90 ],
91 "location": "query",
92 "type": "string"
93 },
94 "alt": {
95 "default": "json",
96 "description": "Data format for response.",
97 "enum": [
98 "json",
99 "media",
100 "proto"
101 ],
102 "enumDescriptions": [
103 "Responses with Content-Type of application/json",
104 "Media download with context-dependent Content-Type",
105 "Responses with Content-Type of application/x-protobuf"
106 ],
107 "location": "query",
108 "type": "string"
109 },
110 "access_token": {
111 "description": "OAuth access token.",
112 "location": "query",
113 "type": "string"
114 },
115 "key": {
116 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
117 "location": "query",
118 "type": "string"
119 }
120 },
121 "protocol": "rest",
122 "resources": {
123 "projects": {
124 "methods": {
125 "patchTraces": {
126 "description": "Sends new traces to Stackdriver Trace or upd ates existing traces. If the ID\nof a trace that you send matches that of an exi sting trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing t race data. If the\nID does not match, a new trace is created.",
127 "httpMethod": "PATCH",
128 "id": "cloudtrace.projects.patchTraces",
129 "parameterOrder": [
130 "projectId"
131 ],
132 "parameters": {
133 "projectId": {
134 "description": "ID of the Cloud project where the tr ace data is stored.",
135 "location": "path",
136 "required": true,
137 "type": "string"
138 }
139 },
140 "path": "v1/projects/{projectId}/traces",
141 "request": {
142 "$ref": "Traces"
143 },
144 "response": {
145 "$ref": "Empty"
146 },
147 "scopes": [
148 "https://www.googleapis.com/auth/cloud-platform",
149 "https://www.googleapis.com/auth/trace.append"
150 ]
151 }
152 },
153 "resources": {
154 "traces": {
155 "methods": {
156 "get": {
157 "description": "Gets a single trace by its ID.",
158 "httpMethod": "GET",
159 "id": "cloudtrace.projects.traces.get",
160 "parameterOrder": [
161 "projectId",
162 "traceId"
163 ],
164 "parameters": {
165 "projectId": {
166 "description": "ID of the Cloud project wher e the trace data is stored.",
167 "location": "path",
168 "required": true,
169 "type": "string"
170 },
171 "traceId": {
172 "description": "ID of the trace to return.",
173 "location": "path",
174 "required": true,
175 "type": "string"
176 }
177 },
178 "path": "v1/projects/{projectId}/traces/{traceId}",
179 "response": {
180 "$ref": "Trace"
181 },
182 "scopes": [
183 "https://www.googleapis.com/auth/cloud-platform" ,
184 "https://www.googleapis.com/auth/trace.readonly"
185 ]
186 },
187 "list": {
188 "description": "Returns of a list of traces that mat ch the specified filter conditions.",
189 "httpMethod": "GET",
190 "id": "cloudtrace.projects.traces.list",
191 "parameterOrder": [
192 "projectId"
193 ],
194 "parameters": {
195 "orderBy": {
196 "description": "Field used to sort the retur ned traces. Optional.\nCan be one of the following:\n\n* `trace_id`\n* `name ` (`name` field of root span in the trace)\n* `duration` (difference between ` end_time` and `start_time` fields of\n the root span)\n* `start` (`start_t ime` field of the root span)\n\nDescending order can be specified by appending ` desc` to the sort field\n(for example, `name desc`).\n\nOnly one sort field is p ermitted.",
197 "location": "query",
198 "type": "string"
199 },
200 "projectId": {
201 "description": "ID of the Cloud project wher e the trace data is stored.",
202 "location": "path",
203 "required": true,
204 "type": "string"
205 },
206 "filter": {
207 "description": "An optional filter against l abels for the request.\n\nBy default, searches use prefix matching. To specify e xact match, prepend\na plus symbol (`+`) to the search term.\nMultiple terms are ANDed. Syntax:\n\n* `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root\n span starts with `NAME_PREFIX`.\n* `+root:NAME` or `+NAME`: Retu rn traces where any root span's name is\n exactly `NAME`.\n* `span:NAME_PRE FIX`: Return traces where any span starts with\n `NAME_PREFIX`.\n* `+span:N AME`: Return traces where any span's name is exactly\n `NAME`.\n* `latency: DURATION`: Return traces whose overall latency is\n greater or equal to than `DURATION`. Accepted units are nanoseconds\n (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For\n example, `latency:24ms` returns traces whose overall latency\n is greater than or equal to 24 milliseconds.\n* `l abel:LABEL_KEY`: Return all traces containing the specified\n label key (exac t match, case-sensitive) regardless of the key:value\n pair's value (includin g empty values).\n* `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified\n label key (exact match, case-sensitive) whose value starts with\ n `VALUE_PREFIX`. Both a key and a value must be specified.\n* `+LABEL_KEY: VALUE`: Return all traces containing a key:value pair\n exactly matching the specified text. Both a key and a value must be\n specified.\n* `method:VALU E`: Equivalent to `/http/method:VALUE`.\n* `url:VALUE`: Equivalent to `/http/u rl:VALUE`.",
208 "location": "query",
209 "type": "string"
210 },
211 "endTime": {
212 "description": "End of the time interval (in clusive) during which the trace data was\ncollected from the application.",
213 "format": "google-datetime",
214 "location": "query",
215 "type": "string"
216 },
217 "pageToken": {
218 "description": "Token identifying the page o f results to return. If provided, use the\nvalue of the `next_page_token` field from a previous request. Optional.",
219 "location": "query",
220 "type": "string"
221 },
222 "startTime": {
223 "description": "Start of the time interval ( inclusive) during which the trace data was\ncollected from the application.",
224 "format": "google-datetime",
225 "location": "query",
226 "type": "string"
227 },
228 "pageSize": {
229 "description": "Maximum number of traces to return. If not specified or <= 0, the\nimplementation selects a reasonable value . The implementation may\nreturn fewer traces than the requested page size. Opt ional.",
230 "format": "int32",
231 "location": "query",
232 "type": "integer"
233 },
234 "view": {
235 "description": "Type of data returned for tr aces in the list. Optional. Default is\n`MINIMAL`.",
236 "enum": [
237 "VIEW_TYPE_UNSPECIFIED",
238 "MINIMAL",
239 "ROOTSPAN",
240 "COMPLETE"
241 ],
242 "location": "query",
243 "type": "string"
244 }
245 },
246 "path": "v1/projects/{projectId}/traces",
247 "response": {
248 "$ref": "ListTracesResponse"
249 },
250 "scopes": [
251 "https://www.googleapis.com/auth/cloud-platform" ,
252 "https://www.googleapis.com/auth/trace.readonly"
253 ]
254 }
255 }
256 }
257 }
258 }
259 },
260 "revision": "20170718",
261 "rootUrl": "https://cloudtrace.googleapis.com/",
262 "schemas": {
263 "Trace": {
264 "description": "A trace describes how long it takes for an applicati on to perform an\noperation. It consists of a set of spans, each of which repres ent a single\ntimed event within the operation.",
265 "id": "Trace",
266 "properties": {
267 "spans": {
268 "description": "Collection of spans in the trace.",
269 "items": {
270 "$ref": "TraceSpan"
271 },
272 "type": "array"
273 },
274 "projectId": {
275 "description": "Project ID of the Cloud project where the tr ace data is stored.",
276 "type": "string"
277 },
278 "traceId": {
279 "description": "Globally unique identifier for the trace. Th is identifier is a 128-bit\nnumeric value formatted as a 32-byte hex string.",
280 "type": "string"
281 }
282 },
283 "type": "object"
284 },
285 "Traces": {
286 "description": "List of new or updated traces.",
287 "id": "Traces",
288 "properties": {
289 "traces": {
290 "description": "List of traces.",
291 "items": {
292 "$ref": "Trace"
293 },
294 "type": "array"
295 }
296 },
297 "type": "object"
298 },
299 "TraceSpan": {
300 "description": "A span represents a single timed event within a trac e. Spans can be nested\nand form a trace tree. Often, a trace contains a root sp an that describes the\nend-to-end latency of an operation and, optionally, one o r more subspans for\nits suboperations. Spans do not need to be contiguous. Ther e may be gaps\nbetween spans in a trace.",
301 "id": "TraceSpan",
302 "properties": {
303 "spanId": {
304 "description": "Identifier for the span. Must be a 64-bit in teger other than 0 and\nunique within a trace.",
305 "format": "uint64",
306 "type": "string"
307 },
308 "parentSpanId": {
309 "description": "ID of the parent span, if any. Optional.",
310 "format": "uint64",
311 "type": "string"
312 },
313 "endTime": {
314 "description": "End time of the span in nanoseconds from the UNIX epoch.",
315 "format": "google-datetime",
316 "type": "string"
317 },
318 "startTime": {
319 "description": "Start time of the span in nanoseconds from t he UNIX epoch.",
320 "format": "google-datetime",
321 "type": "string"
322 },
323 "kind": {
324 "description": "Distinguishes between spans generated in a p articular context. For example,\ntwo spans with the same name may be distinguish ed using `RPC_CLIENT`\nand `RPC_SERVER` to identify queueing latency associated with the span.",
325 "enum": [
326 "SPAN_KIND_UNSPECIFIED",
327 "RPC_SERVER",
328 "RPC_CLIENT"
329 ],
330 "enumDescriptions": [
331 "Unspecified.",
332 "Indicates that the span covers server-side handling of an RPC or other\nremote network request.",
333 "Indicates that the span covers the client-side wrapper around an RPC or\nother remote request."
334 ],
335 "type": "string"
336 },
337 "labels": {
338 "additionalProperties": {
339 "type": "string"
340 },
341 "description": "Collection of labels associated with the spa n. Label keys must be less than\n128 bytes. Label values must be less than 16 ki lobytes (10MB for\n`/stacktrace` values).\n\nSome predefined label keys exist, o r you may create your own. When creating\nyour own, we recommend the following f ormats:\n\n* `/category/product/key` for agents of well-known products (e.g.\n `/db/mongodb/read_size`).\n* `short_host/path/key` for domain-specific keys (e.g .\n `foo.com/myproduct/bar`)\n\nPredefined labels include:\n\n* `/agent`\n* `/component`\n* `/error/message`\n* `/error/name`\n* `/http/client_city`\ n* `/http/client_country`\n* `/http/client_protocol`\n* `/http/client_regi on`\n* `/http/host`\n* `/http/method`\n* `/http/redirected_url`\n* `/htt p/request/size`\n* `/http/response/size`\n* `/http/status_code`\n* `/http/ url`\n* `/http/user_agent`\n* `/pid`\n* `/stacktrace`\n* `/tid`",
342 "type": "object"
343 },
344 "name": {
345 "description": "Name of the span. Must be less than 128 byte s. The span name is sanitized\nand displayed in the Stackdriver Trace tool in th e\n{% dynamic print site_values.console_name %}.\nThe name may be a method name or some other per-call site name.\nFor the same executable and the same call poi nt, a best practice is\nto use a consistent name, which makes it easier to corre late\ncross-trace spans.",
346 "type": "string"
347 }
348 },
349 "type": "object"
350 },
351 "Empty": {
352 "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use i t as the request\nor the response type of an API method. For instance:\n\n se rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty );\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
353 "id": "Empty",
354 "properties": {},
355 "type": "object"
356 },
357 "ListTracesResponse": {
358 "description": "The response message for the `ListTraces` method.",
359 "id": "ListTracesResponse",
360 "properties": {
361 "nextPageToken": {
362 "description": "If defined, indicates that there are more tr aces that match the request\nand that this value should be passed to the next re quest to continue\nretrieving additional traces.",
363 "type": "string"
364 },
365 "traces": {
366 "description": "List of trace records returned.",
367 "items": {
368 "$ref": "Trace"
369 },
370 "type": "array"
371 }
372 },
373 "type": "object"
374 }
375 },
376 "servicePath": "",
377 "title": "Stackdriver Trace API",
378 "version": "v1"
379 }
OLDNEW
« no previous file with comments | « discovery/googleapis/cloudresourcemanager__v2beta1.json ('k') | discovery/googleapis/cloudtrace__v2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698