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

Unified Diff: discovery/googleapis/cloudtrace__v2.json

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « discovery/googleapis/cloudtrace__v1.json ('k') | discovery/googleapis/compute__v1.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: discovery/googleapis/cloudtrace__v2.json
diff --git a/discovery/googleapis/cloudtrace__v2.json b/discovery/googleapis/cloudtrace__v2.json
index 003ca0c1e85059a89ae8199aec8810fa57052689..e76f0935a973d1fa41e8b89d26b3276410629d14 100644
--- a/discovery/googleapis/cloudtrace__v2.json
+++ b/discovery/googleapis/cloudtrace__v2.json
@@ -2,14 +2,14 @@
"auth": {
"oauth2": {
"scopes": {
+ "https://www.googleapis.com/auth/trace.append": {
+ "description": "Write Trace data for a project or application"
+ },
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
},
"https://www.googleapis.com/auth/trace.readonly": {
"description": "Read Trace data for a project or application"
- },
- "https://www.googleapis.com/auth/trace.append": {
- "description": "Write Trace data for a project or application"
}
}
}
@@ -31,17 +31,6 @@
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
- "upload_protocol": {
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
- "location": "query",
- "type": "string"
- },
- "prettyPrint": {
- "default": "true",
- "description": "Returns response with indentations and line breaks.",
- "location": "query",
- "type": "boolean"
- },
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
@@ -86,13 +75,13 @@
"location": "query",
"type": "string"
},
- "access_token": {
- "description": "OAuth access token.",
+ "key": {
+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query",
"type": "string"
},
- "key": {
- "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
+ "access_token": {
+ "description": "OAuth access token.",
"location": "query",
"type": "string"
},
@@ -116,6 +105,17 @@
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
+ },
+ "upload_protocol": {
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
+ "location": "query",
+ "type": "string"
+ },
+ "prettyPrint": {
+ "default": "true",
+ "description": "Returns response with indentations and line breaks.",
+ "location": "query",
+ "type": "boolean"
}
},
"protocol": "rest",
@@ -132,6 +132,11 @@
"parent"
],
"parameters": {
+ "orderBy": {
+ "description": "Optional. A single field used to sort the returned traces.\nOnly the following field names can be used:\n\n* `trace_id`: the trace's ID field\n* `name`: the root span's resource name\n* `duration`: the difference between the root span's start time and end time\n* `start`: the start time of the root span\n\nSorting is in ascending order unless `desc` is appended to the sort field name.\nExample: `\"name desc\"`).",
+ "location": "query",
+ "type": "string"
+ },
"filter": {
"description": "Opional. Return only traces that match this\n[trace filter](/trace/docs/trace-filters). Example:\n\n \"label:/http/url root:/_ah/background my_label:17\"",
"location": "query",
@@ -143,14 +148,14 @@
"location": "query",
"type": "string"
},
- "startTime": {
- "description": "Optional. Do not return traces whose end time is earlier than this time.",
- "format": "google-datetime",
+ "pageToken": {
+ "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
"location": "query",
"type": "string"
},
- "pageToken": {
- "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
+ "startTime": {
+ "description": "Optional. Do not return traces whose end time is earlier than this time.",
+ "format": "google-datetime",
"location": "query",
"type": "string"
},
@@ -166,11 +171,6 @@
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
- },
- "orderBy": {
- "description": "Optional. A single field used to sort the returned traces.\nOnly the following field names can be used:\n\n* `trace_id`: the trace's ID field\n* `name`: the root span's resource name\n* `duration`: the difference between the root span's start time and end time\n* `start`: the start time of the root span\n\nSorting is in ascending order unless `desc` is appended to the sort field name.\nExample: `\"name desc\"`).",
- "location": "query",
- "type": "string"
}
},
"path": "v2/{+parent}/traces",
@@ -218,17 +218,17 @@
"parent"
],
"parameters": {
+ "pageToken": {
+ "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
+ "location": "query",
+ "type": "string"
+ },
"parent": {
"description": "Required: The resource name of the trace containing the spans to list.\nThe format is `projects/PROJECT_ID/traces/TRACE_ID`.",
"location": "path",
"pattern": "^projects/[^/]+/traces/[^/]+$",
"required": true,
"type": "string"
- },
- "pageToken": {
- "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `page_token` must be the value of\n`next_page_token` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
- "location": "query",
- "type": "string"
}
},
"path": "v2/{+parent}:listSpans",
@@ -279,9 +279,88 @@
}
}
},
- "revision": "20170802",
+ "revision": "20170905",
"rootUrl": "https://cloudtrace.googleapis.com/",
"schemas": {
+ "TimeEvent": {
+ "description": "A time-stamped annotation or network event in the Span.",
+ "id": "TimeEvent",
+ "properties": {
+ "time": {
+ "description": "The timestamp indicating the time the event occurred.",
+ "format": "google-datetime",
+ "type": "string"
+ },
+ "networkEvent": {
+ "$ref": "NetworkEvent",
+ "description": "An event describing an RPC message sent/received on the network."
+ },
+ "annotation": {
+ "$ref": "Annotation",
+ "description": "One or more key:value pairs."
+ }
+ },
+ "type": "object"
+ },
+ "NetworkEvent": {
+ "description": "An event describing an RPC message sent or received on the network.",
+ "id": "NetworkEvent",
+ "properties": {
+ "time": {
+ "description": "For sent messages, this is the time at which the first bit was sent.\nFor received messages, this is the time at which the last bit was\nreceived.",
+ "format": "google-datetime",
+ "type": "string"
+ },
+ "uncompressedMessageSize": {
+ "description": "The number of uncompressed bytes sent or received.",
+ "format": "uint64",
+ "type": "string"
+ },
+ "type": {
+ "description": "Type of NetworkEvent. Indicates whether the RPC message was sent or\nreceived.",
+ "enum": [
+ "TYPE_UNSPECIFIED",
+ "SENT",
+ "RECV"
+ ],
+ "enumDescriptions": [
+ "Unknown event type.",
+ "Indicates a sent RPC message.",
+ "Indicates a received RPC message."
+ ],
+ "type": "string"
+ },
+ "messageId": {
+ "description": "An identifier for the message, which must be unique in this span.",
+ "format": "uint64",
+ "type": "string"
+ },
+ "compressedMessageSize": {
+ "description": "The number of compressed bytes sent or received.",
+ "format": "uint64",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ListSpansResponse": {
+ "description": "The response message for the `ListSpans` method.",
+ "id": "ListSpansResponse",
+ "properties": {
+ "spans": {
+ "description": "The requested spans, if there are any in the specified trace.",
+ "items": {
+ "$ref": "Span"
+ },
+ "type": "array"
+ },
+ "nextPageToken": {
+ "description": "If defined, indicates that there might be more spans that match the\nrequest. Pass this as the value of `pageToken` in a subsequent request to\nretrieve additional spans.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"StackFrame": {
"description": "Represents a single stack frame in a stack trace.",
"id": "StackFrame",
@@ -356,13 +435,13 @@
"description": "Text annotation with a set of attributes.",
"id": "Annotation",
"properties": {
- "attributes": {
- "$ref": "Attributes",
- "description": "A set of attributes on the annotation. There is a limit of 4 attributes\nper Annotation."
- },
"description": {
"$ref": "TruncatableString",
"description": "A user-supplied message describing the event. The maximum length for\nthe description is 256 bytes."
+ },
+ "attributes": {
+ "$ref": "Attributes",
+ "description": "A set of attributes on the annotation. There is a limit of 4 attributes\nper Annotation."
}
},
"type": "object"
@@ -371,17 +450,17 @@
"description": "A collection of stack frames, which can be truncated.",
"id": "StackFrames",
"properties": {
- "droppedFramesCount": {
- "description": "The number of stack frames that were dropped because there\nwere too many stack frames.\nIf this value is 0, then no stack frames were dropped.",
- "format": "int32",
- "type": "integer"
- },
"frame": {
"description": "Stack frames in this call stack.",
"items": {
"$ref": "StackFrame"
},
"type": "array"
+ },
+ "droppedFramesCount": {
+ "description": "The number of stack frames that were dropped because there\nwere too many stack frames.\nIf this value is 0, then no stack frames were dropped.",
+ "format": "int32",
+ "type": "integer"
}
},
"type": "object"
@@ -440,6 +519,15 @@
"description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
"id": "Status",
"properties": {
+ "code": {
+ "description": "The status code, which should be an enum value of google.rpc.Code.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
+ "type": "string"
+ },
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"items": {
@@ -450,15 +538,6 @@
"type": "object"
},
"type": "array"
- },
- "code": {
- "description": "The status code, which should be an enum value of google.rpc.Code.",
- "format": "int32",
- "type": "integer"
- },
- "message": {
- "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
- "type": "string"
}
},
"type": "object"
@@ -483,24 +562,6 @@
"properties": {},
"type": "object"
},
- "ListTracesResponse": {
- "description": "The response message for the `ListTraces` method.",
- "id": "ListTracesResponse",
- "properties": {
- "nextPageToken": {
- "description": "If there might be more results than those appearing in this response, then\n`next_page_token` is included. To get the next set of results, call this\nmethod again using the value of `next_page_token` as `page_token`.",
- "type": "string"
- },
- "traces": {
- "description": "List of trace records returned.",
- "items": {
- "$ref": "Trace"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
"Span": {
"description": "A span represents a single operation within a trace. Spans can be\nnested to form a trace tree. Often, a trace contains a root span\nthat describes the end-to-end latency, and one or more subspans for\nits sub-operations. A trace can also contain multiple root spans,\nor none at all. Spans do not need to be contiguous—there may be\ngaps or overlaps between spans in a trace.",
"id": "Span",
@@ -563,15 +624,28 @@
},
"type": "object"
},
+ "ListTracesResponse": {
+ "description": "The response message for the `ListTraces` method.",
+ "id": "ListTracesResponse",
+ "properties": {
+ "nextPageToken": {
+ "description": "If there might be more results than those appearing in this response, then\n`next_page_token` is included. To get the next set of results, call this\nmethod again using the value of `next_page_token` as `page_token`.",
+ "type": "string"
+ },
+ "traces": {
+ "description": "List of trace records returned.",
+ "items": {
+ "$ref": "Trace"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"AttributeValue": {
"description": "The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.",
"id": "AttributeValue",
"properties": {
- "intValue": {
- "description": "A 64-bit signed integer.",
- "format": "int64",
- "type": "string"
- },
"boolValue": {
"description": "A Boolean value represented by `true` or `false`.",
"type": "boolean"
@@ -579,6 +653,11 @@
"stringValue": {
"$ref": "TruncatableString",
"description": "A string up to 256 bytes long."
+ },
+ "intValue": {
+ "description": "A 64-bit signed integer.",
+ "format": "int64",
+ "type": "string"
}
},
"type": "object"
@@ -587,17 +666,17 @@
"description": "A set of attributes, each in the format `[KEY]:[VALUE]`.",
"id": "Attributes",
"properties": {
+ "droppedAttributesCount": {
+ "description": "The number of attributes that were discarded. Attributes can be discarded\nbecause their keys are too long or because there are too many attributes.\nIf this value is 0 then all attributes are valid.",
+ "format": "int32",
+ "type": "integer"
+ },
"attributeMap": {
"additionalProperties": {
"$ref": "AttributeValue"
},
"description": "The set of attributes. Each attribute's key can be up to 128 bytes\nlong. The value can be a string up to 256 bytes, an integer, or the\nBoolean values `true` and `false`. For example:\n\n \"/instance_id\": \"my-instance\"\n \"/http/user_agent\": \"\"\n \"/http/request_bytes\": 300\n \"abc.com/myattribute\": true",
"type": "object"
- },
- "droppedAttributesCount": {
- "description": "The number of attributes that were discarded. Attributes can be discarded\nbecause their keys are too long or because there are too many attributes.\nIf this value is 0 then all attributes are valid.",
- "format": "int32",
- "type": "integer"
}
},
"type": "object"
@@ -621,108 +700,34 @@
},
"type": "object"
},
- "StackTrace": {
- "description": "A call stack appearing in a trace.",
- "id": "StackTrace",
- "properties": {
- "stackFrames": {
- "$ref": "StackFrames",
- "description": "Stack frames in this stack trace. A maximum of 128 frames are allowed."
- },
- "stackTraceHashId": {
- "description": "The hash ID is used to conserve network bandwidth for duplicate\nstack traces within a single trace.\n\nOften multiple spans will have identical stack traces.\nThe first occurrence of a stack trace should contain both the\n`stackFrame` content and a value in `stackTraceHashId`.\n\nSubsequent spans within the same request can refer\nto that stack trace by only setting `stackTraceHashId`.",
- "format": "uint64",
- "type": "string"
- }
- },
- "type": "object"
- },
"TruncatableString": {
"description": "Represents a string that might be shortened to a specified length.",
"id": "TruncatableString",
"properties": {
- "value": {
- "description": "The shortened string. For example, if the original string was 500\nbytes long and the limit of the string was 128 bytes, then this\nvalue contains the first 128 bytes of the 500-byte string. Note that\ntruncation always happens on the character boundary, to ensure that\ntruncated string is still valid UTF8. In case of multi-byte characters,\nsize of truncated string can be less than truncation limit.",
- "type": "string"
- },
"truncatedByteCount": {
"description": "The number of bytes removed from the original string. If this\nvalue is 0, then the string was not shortened.",
"format": "int32",
"type": "integer"
- }
- },
- "type": "object"
- },
- "TimeEvent": {
- "description": "A time-stamped annotation or network event in the Span.",
- "id": "TimeEvent",
- "properties": {
- "time": {
- "description": "The timestamp indicating the time the event occurred.",
- "format": "google-datetime",
- "type": "string"
},
- "networkEvent": {
- "$ref": "NetworkEvent",
- "description": "An event describing an RPC message sent/received on the network."
- },
- "annotation": {
- "$ref": "Annotation",
- "description": "One or more key:value pairs."
- }
- },
- "type": "object"
- },
- "NetworkEvent": {
- "description": "An event describing an RPC message sent or received on the network.",
- "id": "NetworkEvent",
- "properties": {
- "time": {
- "description": "For sent messages, this is the time at which the first bit was sent.\nFor received messages, this is the time at which the last bit was\nreceived.",
- "format": "google-datetime",
- "type": "string"
- },
- "type": {
- "description": "Type of NetworkEvent. Indicates whether the RPC message was sent or\nreceived.",
- "enum": [
- "TYPE_UNSPECIFIED",
- "SENT",
- "RECV"
- ],
- "enumDescriptions": [
- "Unknown event type.",
- "Indicates a sent RPC message.",
- "Indicates a received RPC message."
- ],
- "type": "string"
- },
- "messageId": {
- "description": "An identifier for the message, which must be unique in this span.",
- "format": "uint64",
- "type": "string"
- },
- "messageSize": {
- "description": "The number of bytes sent or received.",
- "format": "uint64",
+ "value": {
+ "description": "The shortened string. For example, if the original string was 500\nbytes long and the limit of the string was 128 bytes, then this\nvalue contains the first 128 bytes of the 500-byte string. Note that\ntruncation always happens on the character boundary, to ensure that\ntruncated string is still valid UTF8. In case of multi-byte characters,\nsize of truncated string can be less than truncation limit.",
"type": "string"
}
},
"type": "object"
},
- "ListSpansResponse": {
- "description": "The response message for the `ListSpans` method.",
- "id": "ListSpansResponse",
+ "StackTrace": {
+ "description": "A call stack appearing in a trace.",
+ "id": "StackTrace",
"properties": {
- "nextPageToken": {
- "description": "If defined, indicates that there might be more spans that match the\nrequest. Pass this as the value of `pageToken` in a subsequent request to\nretrieve additional spans.",
+ "stackTraceHashId": {
+ "description": "The hash ID is used to conserve network bandwidth for duplicate\nstack traces within a single trace.\n\nOften multiple spans will have identical stack traces.\nThe first occurrence of a stack trace should contain both the\n`stackFrame` content and a value in `stackTraceHashId`.\n\nSubsequent spans within the same request can refer\nto that stack trace by only setting `stackTraceHashId`.",
+ "format": "uint64",
"type": "string"
},
- "spans": {
- "description": "The requested spans, if there are any in the specified trace.",
- "items": {
- "$ref": "Span"
- },
- "type": "array"
+ "stackFrames": {
+ "$ref": "StackFrames",
+ "description": "Stack frames in this stack trace. A maximum of 128 frames are allowed."
}
},
"type": "object"
« no previous file with comments | « discovery/googleapis/cloudtrace__v1.json ('k') | discovery/googleapis/compute__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698