mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-07 03:56:42 +01:00
chore(json): update all apis
And bring in 5 new ones, including cloudkms. Also update dependencies to make things compile again.
This commit is contained in:
@@ -1,362 +1,383 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/avS4leRd3oaImhwLi14P2pt74p0\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "cloudtrace:v1",
|
||||
"name": "cloudtrace",
|
||||
"canonicalName": "Cloud Trace",
|
||||
"version": "v1",
|
||||
"revision": "20160518",
|
||||
"title": "Google Cloud Trace API",
|
||||
"description": "Send and retrieve trace data from Google Cloud Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Cloud Trace for display, reporting, and analysis.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"documentationLink": "https://cloud.google.com/tools/cloud-trace",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://cloudtrace.googleapis.com/",
|
||||
"basePath": "",
|
||||
"rootUrl": "https://cloudtrace.googleapis.com/",
|
||||
"servicePath": "",
|
||||
"batchPath": "batch",
|
||||
"version_module": true,
|
||||
"parameters": {
|
||||
"access_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth access token.",
|
||||
"location": "query"
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"bearer_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"type": "string",
|
||||
"description": "JSONP",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"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"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"pp": {
|
||||
"type": "boolean",
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"location": "query"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"type": "string",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"type": "string",
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"location": "query"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"type": "string",
|
||||
"description": "V1 error format.",
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
"basePath": "",
|
||||
"revision": "20170516",
|
||||
"documentationLink": "https://cloud.google.com/trace",
|
||||
"id": "cloudtrace:v1",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": "True",
|
||||
"schemas": {
|
||||
"Traces": {
|
||||
"description": "List of new or updated traces.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"traces": {
|
||||
"description": "List of traces.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "Traces"
|
||||
},
|
||||
"https://www.googleapis.com/auth/trace.append": {
|
||||
"description": "Write Trace data for a project or application"
|
||||
},
|
||||
"https://www.googleapis.com/auth/trace.readonly": {
|
||||
"description": "Read Trace data for a project or application"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"ListTracesResponse": {
|
||||
"id": "ListTracesResponse",
|
||||
"type": "object",
|
||||
"description": "The response message for the `ListTraces` method.",
|
||||
"properties": {
|
||||
"traces": {
|
||||
"type": "array",
|
||||
"description": "List of trace records returned.",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
}
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "If defined, indicates that there are more traces that match the request and that this value should be passed to the next request to continue retrieving additional traces."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Trace": {
|
||||
"id": "Trace",
|
||||
"type": "object",
|
||||
"description": "A trace describes how long it takes for an application to perform an operation. It consists of a set of spans, each of which represent a single timed event within the operation.",
|
||||
"properties": {
|
||||
"projectId": {
|
||||
"type": "string",
|
||||
"description": "Project ID of the Cloud project where the trace data is stored."
|
||||
},
|
||||
"traceId": {
|
||||
"type": "string",
|
||||
"description": "Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string."
|
||||
},
|
||||
"spans": {
|
||||
"type": "array",
|
||||
"description": "Collection of spans in the trace.",
|
||||
"items": {
|
||||
"$ref": "TraceSpan"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"TraceSpan": {
|
||||
"id": "TraceSpan",
|
||||
"type": "object",
|
||||
"description": "A span represents a single timed event within a trace. Spans can be nested and form a trace tree. Often, a trace contains a root span that describes the end-to-end latency of an operation and, optionally, one or more subspans for its suboperations. Spans do not need to be contiguous. There may be gaps between spans in a trace.",
|
||||
"properties": {
|
||||
"spanId": {
|
||||
"type": "string",
|
||||
"description": "Identifier for the span. This identifier must be unique within a trace.",
|
||||
"format": "uint64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.",
|
||||
"enum": [
|
||||
"SPAN_KIND_UNSPECIFIED",
|
||||
"RPC_SERVER",
|
||||
"RPC_CLIENT"
|
||||
]
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of the trace. The trace name is sanitized and displayed in the Stackdriver Trace tool in the {% dynamic print site_values.console_name %}. The name may be a method name or some other per-call site name. For the same executable and the same call point, a best practice is to use a consistent name, which makes it easier to correlate cross-trace spans."
|
||||
},
|
||||
"startTime": {
|
||||
"type": "string",
|
||||
"description": "Start time of the span in nanoseconds from the UNIX epoch."
|
||||
},
|
||||
"endTime": {
|
||||
"type": "string",
|
||||
"description": "End time of the span in nanoseconds from the UNIX epoch."
|
||||
},
|
||||
"parentSpanId": {
|
||||
"type": "string",
|
||||
"description": "ID of the parent span, if any. Optional.",
|
||||
"format": "uint64"
|
||||
},
|
||||
"labels": {
|
||||
"type": "object",
|
||||
"description": "Collection of labels associated with the span.",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Traces": {
|
||||
"id": "Traces",
|
||||
"type": "object",
|
||||
"description": "List of new or updated traces.",
|
||||
"properties": {
|
||||
"traces": {
|
||||
"type": "array",
|
||||
"description": "List of traces.",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Empty": {
|
||||
"id": "Empty",
|
||||
"type": "object",
|
||||
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`."
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"projects": {
|
||||
"methods": {
|
||||
"patchTraces": {
|
||||
"id": "cloudtrace.projects.patchTraces",
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"httpMethod": "PATCH",
|
||||
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.",
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"type": "string",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Traces"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.append"
|
||||
]
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"traces": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "cloudtrace.projects.traces.list",
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"httpMethod": "GET",
|
||||
"description": "Returns of a list of traces that match the specified filter conditions.",
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"type": "string",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
"TraceSpan": {
|
||||
"description": "A span represents a single timed event within a trace. Spans can be nested\nand form a trace tree. Often, a trace contains a root span that describes the\nend-to-end latency of an operation and, optionally, one or more subspans for\nits suboperations. Spans do not need to be contiguous. There may be gaps\nbetween spans in a trace.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Collection of labels associated with the span. Label keys must be less than\n128 bytes. Label values must be less than 16 kilobytes (10MB for\n`/stacktrace` values).\n\nSome predefined label keys exist, or you may create your own. When creating\nyour own, we recommend the following formats:\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_region`\n* `/http/host`\n* `/http/method`\n* `/http/redirected_url`\n* `/http/request/size`\n* `/http/response/size`\n* `/http/status_code`\n* `/http/url`\n* `/http/user_agent`\n* `/pid`\n* `/stacktrace`\n* `/tid`",
|
||||
"type": "object"
|
||||
},
|
||||
"view": {
|
||||
"type": "string",
|
||||
"description": "Type of data returned for traces in the list. Optional. Default is `MINIMAL`.",
|
||||
"enum": [
|
||||
"VIEW_TYPE_UNSPECIFIED",
|
||||
"MINIMAL",
|
||||
"ROOTSPAN",
|
||||
"COMPLETE"
|
||||
],
|
||||
"location": "query"
|
||||
"name": {
|
||||
"description": "Name of the span. Must be less than 128 bytes. The span name is sanitized\nand displayed in the Stackdriver Trace tool in the\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 point, a best practice is\nto use a consistent name, which makes it easier to correlate\ncross-trace spans.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of traces to return. If not specified or \u003c= 0, the implementation selects a reasonable value. The implementation may return fewer traces than the requested page size. Optional.",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
"spanId": {
|
||||
"description": "Identifier for the span. Must be a 64-bit integer other than 0 and\nunique within a trace.",
|
||||
"format": "uint64",
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token identifying the page of results to return. If provided, use the value of the `next_page_token` field from a previous request. Optional.",
|
||||
"location": "query"
|
||||
},
|
||||
"startTime": {
|
||||
"type": "string",
|
||||
"description": "End of the time interval (inclusive) during which the trace data was collected from the application.",
|
||||
"location": "query"
|
||||
"parentSpanId": {
|
||||
"description": "ID of the parent span, if any. Optional.",
|
||||
"format": "uint64",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"type": "string",
|
||||
"description": "Start of the time interval (inclusive) during which the trace data was collected from the application.",
|
||||
"location": "query"
|
||||
"description": "End time of the span in nanoseconds from the UNIX epoch.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"filter": {
|
||||
"type": "string",
|
||||
"description": "An optional filter for the request.",
|
||||
"location": "query"
|
||||
"startTime": {
|
||||
"description": "Start time of the span in nanoseconds from the UNIX epoch.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"orderBy": {
|
||||
"type": "string",
|
||||
"description": "Field used to sort the returned traces. Optional. Can be one of the following: * `trace_id` * `name` (`name` field of root span in the trace) * `duration` (difference between `end_time` and `start_time` fields of the root span) * `start` (`start_time` field of the root span) Descending order can be specified by appending `desc` to the sort field (for example, `name desc`). Only one sort field is permitted.",
|
||||
"location": "query"
|
||||
"kind": {
|
||||
"description": "Distinguishes between spans generated in a particular context. For example,\ntwo spans with the same name may be distinguished using `RPC_CLIENT`\nand `RPC_SERVER` to identify queueing latency associated with the span.",
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Unspecified.",
|
||||
"Indicates that the span covers server-side handling of an RPC or other\nremote network request.",
|
||||
"Indicates that the span covers the client-side wrapper around an RPC or\nother remote request."
|
||||
],
|
||||
"enum": [
|
||||
"SPAN_KIND_UNSPECIFIED",
|
||||
"RPC_SERVER",
|
||||
"RPC_CLIENT"
|
||||
]
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "ListTracesResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "cloudtrace.projects.traces.get",
|
||||
"path": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets a single trace by its ID.",
|
||||
"parameters": {
|
||||
"id": "TraceSpan"
|
||||
},
|
||||
"ListTracesResponse": {
|
||||
"description": "The response message for the `ListTraces` method.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"traces": {
|
||||
"description": "List of trace records returned.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
}
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "If defined, indicates that there are more traces that match the request\nand that this value should be passed to the next request to continue\nretrieving additional traces.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": "ListTracesResponse"
|
||||
},
|
||||
"Empty": {
|
||||
"properties": {},
|
||||
"id": "Empty",
|
||||
"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 it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
|
||||
"type": "object"
|
||||
},
|
||||
"Trace": {
|
||||
"id": "Trace",
|
||||
"description": "A trace describes how long it takes for an application to perform an\noperation. It consists of a set of spans, each of which represent a single\ntimed event within the operation.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"projectId": {
|
||||
"type": "string",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
"description": "Project ID of the Cloud project where the trace data is stored.",
|
||||
"type": "string"
|
||||
},
|
||||
"spans": {
|
||||
"description": "Collection of spans in the trace.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "TraceSpan"
|
||||
}
|
||||
},
|
||||
"traceId": {
|
||||
"type": "string",
|
||||
"description": "ID of the trace to return.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
"description": "Globally unique identifier for the trace. This identifier is a 128-bit\nnumeric value formatted as a 32-byte hex string.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId",
|
||||
"traceId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"icons": {
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif",
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif"
|
||||
},
|
||||
"canonicalName": "Cloud Trace",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"rootUrl": "https://cloudtrace.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "cloudtrace",
|
||||
"batchPath": "batch",
|
||||
"title": "Stackdriver Trace API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"projects": {
|
||||
"resources": {
|
||||
"traces": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Returns of a list of traces that match the specified filter conditions.",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "ListTracesResponse"
|
||||
},
|
||||
"parameters": {
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"description": "Token identifying the page of results to return. If provided, use the\nvalue of the `next_page_token` field from a previous request. Optional."
|
||||
},
|
||||
"startTime": {
|
||||
"location": "query",
|
||||
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"type": "integer",
|
||||
"location": "query",
|
||||
"description": "Maximum number of traces to return. If not specified or \u003c= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size. Optional.",
|
||||
"format": "int32"
|
||||
},
|
||||
"view": {
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"VIEW_TYPE_UNSPECIFIED",
|
||||
"MINIMAL",
|
||||
"ROOTSPAN",
|
||||
"COMPLETE"
|
||||
],
|
||||
"description": "Type of data returned for traces in the list. Optional. Default is\n`MINIMAL`.",
|
||||
"type": "string"
|
||||
},
|
||||
"orderBy": {
|
||||
"description": "Field used to sort the returned 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_time` 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 permitted.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"projectId": {
|
||||
"location": "path",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"filter": {
|
||||
"description": "An optional filter against labels for the request.\n\nBy default, searches use prefix matching. To specify exact 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`: Return traces where any root span's name is\n exactly `NAME`.\n* `span:NAME_PREFIX`: Return traces where any span starts with\n `NAME_PREFIX`.\n* `+span:NAME`: 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* `label:LABEL_KEY`: Return all traces containing the specified\n label key (exact match, case-sensitive) regardless of the key:value\n pair's value (including 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:VALUE`: Equivalent to `/http/method:VALUE`.\n* `url:VALUE`: Equivalent to `/http/url:VALUE`.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"endTime": {
|
||||
"location": "query",
|
||||
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"flatPath": "v1/projects/{projectId}/traces",
|
||||
"id": "cloudtrace.projects.traces.list",
|
||||
"path": "v1/projects/{projectId}/traces"
|
||||
},
|
||||
"get": {
|
||||
"description": "Gets a single trace by its ID.",
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [
|
||||
"projectId",
|
||||
"traceId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"location": "path",
|
||||
"description": "ID of the Cloud project where the trace data is stored."
|
||||
},
|
||||
"traceId": {
|
||||
"location": "path",
|
||||
"description": "ID of the trace to return.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"id": "cloudtrace.projects.traces.get",
|
||||
"path": "v1/projects/{projectId}/traces/{traceId}"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"methods": {
|
||||
"patchTraces": {
|
||||
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing 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 trace data. If the\nID does not match, a new trace is created.",
|
||||
"request": {
|
||||
"$ref": "Traces"
|
||||
},
|
||||
"httpMethod": "PATCH",
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.append"
|
||||
],
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/projects/{projectId}/traces",
|
||||
"id": "cloudtrace.projects.patchTraces",
|
||||
"path": "v1/projects/{projectId}/traces"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"location": "query",
|
||||
"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.",
|
||||
"type": "string"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pp": {
|
||||
"description": "Pretty-print response.",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"location": "query",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
"description": "JSONP",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string",
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json",
|
||||
"Media download with context-dependent Content-Type",
|
||||
"Responses with Content-Type of application/x-protobuf"
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://cloudtrace.googleapis.com/",
|
||||
"description": "Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Stackdriver Trace for display, reporting, and analysis.\n",
|
||||
"kind": "discovery#restDescription",
|
||||
"servicePath": ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user