mirror of
https://github.com/restic/restic.git
synced 2025-12-08 06:09:56 +00:00
Update dependenciess
Exclude minio-go for now (pin to 3.x.y).
This commit is contained in:
parent
9d0f13c4c0
commit
946c8399e2
2985 changed files with 1008107 additions and 118934 deletions
596
vendor/google.golang.org/api/cloudtrace/v1/cloudtrace-api.json
generated
vendored
596
vendor/google.golang.org/api/cloudtrace/v1/cloudtrace-api.json
generated
vendored
|
|
@ -1,288 +1,31 @@
|
|||
{
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"title": "Stackdriver Trace API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"projects": {
|
||||
"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"
|
||||
},
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"location": "path",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"type": "string",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.append"
|
||||
],
|
||||
"flatPath": "v1/projects/{projectId}/traces",
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"id": "cloudtrace.projects.patchTraces"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"traces": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Gets a single trace by its ID.",
|
||||
"httpMethod": "GET",
|
||||
"response": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId",
|
||||
"traceId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"parameters": {
|
||||
"projectId": {
|
||||
"location": "path",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"traceId": {
|
||||
"description": "ID of the trace to return.",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"path": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"id": "cloudtrace.projects.traces.get"
|
||||
},
|
||||
"list": {
|
||||
"httpMethod": "GET",
|
||||
"response": {
|
||||
"$ref": "ListTracesResponse"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"parameters": {
|
||||
"orderBy": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"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."
|
||||
},
|
||||
"projectId": {
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"filter": {
|
||||
"location": "query",
|
||||
"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"
|
||||
},
|
||||
"endTime": {
|
||||
"location": "query",
|
||||
"format": "google-datetime",
|
||||
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"location": "query",
|
||||
"format": "google-datetime",
|
||||
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
"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.",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"location": "query",
|
||||
"format": "int32",
|
||||
"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.",
|
||||
"type": "integer"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/projects/{projectId}/traces",
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"id": "cloudtrace.projects.traces.list",
|
||||
"description": "Returns of a list of traces that match the specified filter conditions."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"upload_protocol": {
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"type": "boolean",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"callback": {
|
||||
"location": "query",
|
||||
"description": "JSONP",
|
||||
"type": "string"
|
||||
},
|
||||
"$.xgafv": {
|
||||
"enumDescriptions": [
|
||||
"v1 error format",
|
||||
"v2 error format"
|
||||
],
|
||||
"location": "query",
|
||||
"enum": [
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"description": "V1 error format.",
|
||||
"type": "string"
|
||||
},
|
||||
"alt": {
|
||||
"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",
|
||||
"description": "Data format for response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json",
|
||||
"media",
|
||||
"proto"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"location": "query",
|
||||
"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."
|
||||
},
|
||||
"pp": {
|
||||
"location": "query",
|
||||
"description": "Pretty-print response.",
|
||||
"default": "true",
|
||||
"type": "boolean"
|
||||
},
|
||||
"oauth_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://cloudtrace.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"servicePath": "",
|
||||
"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",
|
||||
"basePath": "",
|
||||
"documentationLink": "https://cloud.google.com/trace",
|
||||
"id": "cloudtrace:v1",
|
||||
"revision": "20171016",
|
||||
"documentationLink": "https://cloud.google.com/trace",
|
||||
"revision": "20171124",
|
||||
"discoveryVersion": "v1",
|
||||
"version_module": true,
|
||||
"schemas": {
|
||||
"Traces": {
|
||||
"description": "List of new or updated traces.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"traces": {
|
||||
"description": "List of traces.",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"id": "Traces"
|
||||
},
|
||||
"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": {
|
||||
"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"
|
||||
},
|
||||
"spanId": {
|
||||
"format": "uint64",
|
||||
"description": "Identifier for the span. Must be a 64-bit integer other than 0 and\nunique within a trace.",
|
||||
"format": "uint64",
|
||||
"type": "string"
|
||||
},
|
||||
"parentSpanId": {
|
||||
"format": "uint64",
|
||||
"description": "ID of the parent span, if any. Optional.",
|
||||
"format": "uint64",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"format": "google-datetime",
|
||||
"description": "End time of the span in nanoseconds from the UNIX epoch.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"format": "google-datetime",
|
||||
"description": "Start time of the span in nanoseconds from the UNIX epoch.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
|
|
@ -300,79 +43,99 @@
|
|||
]
|
||||
},
|
||||
"labels": {
|
||||
"type": "object",
|
||||
"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`"
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "TraceSpan"
|
||||
},
|
||||
"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",
|
||||
"properties": {},
|
||||
"id": "Empty"
|
||||
"id": "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"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"traces": {
|
||||
"description": "List of trace records returned.",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"id": "ListTracesResponse"
|
||||
"id": "ListTracesResponse",
|
||||
"description": "The response message for the `ListTraces` method.",
|
||||
"type": "object"
|
||||
},
|
||||
"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": {
|
||||
"spans": {
|
||||
"description": "Collection of spans in the trace.",
|
||||
"items": {
|
||||
"$ref": "TraceSpan"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"projectId": {
|
||||
"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": {
|
||||
"description": "Globally unique identifier for the trace. This identifier is a 128-bit\nnumeric value formatted as a 32-byte hex string.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"Traces": {
|
||||
"properties": {
|
||||
"traces": {
|
||||
"description": "List of traces.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "Trace"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "Traces",
|
||||
"description": "List of new or updated traces.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"icons": {
|
||||
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
||||
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
||||
},
|
||||
"protocol": "rest",
|
||||
"canonicalName": "Cloud Trace",
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -380,5 +143,242 @@
|
|||
"rootUrl": "https://cloudtrace.googleapis.com/",
|
||||
"ownerDomain": "google.com",
|
||||
"name": "cloudtrace",
|
||||
"batchPath": "batch"
|
||||
"batchPath": "batch",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
"title": "Stackdriver Trace API",
|
||||
"ownerName": "Google",
|
||||
"resources": {
|
||||
"projects": {
|
||||
"methods": {
|
||||
"patchTraces": {
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"httpMethod": "PATCH",
|
||||
"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",
|
||||
"path": "v1/projects/{projectId}/traces",
|
||||
"id": "cloudtrace.projects.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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"traces": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"httpMethod": "GET",
|
||||
"parameterOrder": [
|
||||
"projectId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "ListTracesResponse"
|
||||
},
|
||||
"parameters": {
|
||||
"pageToken": {
|
||||
"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.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"startTime": {
|
||||
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"format": "google-datetime",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"pageSize": {
|
||||
"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",
|
||||
"type": "integer"
|
||||
},
|
||||
"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": {
|
||||
"location": "query",
|
||||
"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"
|
||||
},
|
||||
"projectId": {
|
||||
"location": "path",
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"filter": {
|
||||
"location": "query",
|
||||
"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"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
|
||||
"format": "google-datetime",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"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",
|
||||
"description": "Returns of a list of traces that match the specified filter conditions."
|
||||
},
|
||||
"get": {
|
||||
"description": "Gets a single trace by its ID.",
|
||||
"response": {
|
||||
"$ref": "Trace"
|
||||
},
|
||||
"parameterOrder": [
|
||||
"projectId",
|
||||
"traceId"
|
||||
],
|
||||
"httpMethod": "GET",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.readonly"
|
||||
],
|
||||
"parameters": {
|
||||
"traceId": {
|
||||
"description": "ID of the trace to return.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"location": "path"
|
||||
},
|
||||
"projectId": {
|
||||
"description": "ID of the Cloud project where the trace data is stored.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"path": "v1/projects/{projectId}/traces/{traceId}",
|
||||
"id": "cloudtrace.projects.traces.get"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"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.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"access_token": {
|
||||
"description": "OAuth access token.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"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": {
|
||||
"location": "query",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"location": "query",
|
||||
"description": "OAuth bearer token.",
|
||||
"type": "string"
|
||||
},
|
||||
"upload_protocol": {
|
||||
"location": "query",
|
||||
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"location": "query",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"type": "boolean",
|
||||
"default": "true"
|
||||
},
|
||||
"uploadType": {
|
||||
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"type": "string",
|
||||
"location": "query"
|
||||
},
|
||||
"$.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": {
|
||||
"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"
|
||||
],
|
||||
"location": "query",
|
||||
"description": "Data format for response.",
|
||||
"default": "json"
|
||||
}
|
||||
},
|
||||
"version": "v1",
|
||||
"baseUrl": "https://cloudtrace.googleapis.com/",
|
||||
"kind": "discovery#restDescription",
|
||||
"description": "Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API.\n",
|
||||
"servicePath": ""
|
||||
}
|
||||
|
|
|
|||
22
vendor/google.golang.org/api/cloudtrace/v1/cloudtrace-gen.go
generated
vendored
22
vendor/google.golang.org/api/cloudtrace/v1/cloudtrace-gen.go
generated
vendored
|
|
@ -154,8 +154,8 @@ type ListTracesResponse struct {
|
|||
}
|
||||
|
||||
func (s *ListTracesResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListTracesResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListTracesResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -199,8 +199,8 @@ type Trace struct {
|
|||
}
|
||||
|
||||
func (s *Trace) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Trace
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Trace
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -313,8 +313,8 @@ type TraceSpan struct {
|
|||
}
|
||||
|
||||
func (s *TraceSpan) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TraceSpan
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TraceSpan
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -341,8 +341,8 @@ type Traces struct {
|
|||
}
|
||||
|
||||
func (s *Traces) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Traces
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Traces
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -454,7 +454,7 @@ func (c *ProjectsPatchTracesCall) Do(opts ...googleapi.CallOption) (*Empty, erro
|
|||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
|
|
@ -599,7 +599,7 @@ func (c *ProjectsTracesGetCall) Do(opts ...googleapi.CallOption) (*Trace, error)
|
|||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
|
|
@ -860,7 +860,7 @@ func (c *ProjectsTracesListCall) Do(opts ...googleapi.CallOption) (*ListTracesRe
|
|||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
|
|
|
|||
924
vendor/google.golang.org/api/cloudtrace/v2/cloudtrace-api.json
generated
vendored
924
vendor/google.golang.org/api/cloudtrace/v2/cloudtrace-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
164
vendor/google.golang.org/api/cloudtrace/v2/cloudtrace-gen.go
generated
vendored
164
vendor/google.golang.org/api/cloudtrace/v2/cloudtrace-gen.go
generated
vendored
|
|
@ -113,8 +113,8 @@ type ProjectsTracesSpansService struct {
|
|||
|
||||
// Annotation: Text annotation with a set of attributes.
|
||||
type Annotation struct {
|
||||
// Attributes: A set of attributes on the annotation. There is a limit
|
||||
// of 4 attributes
|
||||
// Attributes: A set of attributes on the annotation. You can have up to
|
||||
// 4 attributes
|
||||
// per Annotation.
|
||||
Attributes *Attributes `json:"attributes,omitempty"`
|
||||
|
||||
|
|
@ -141,8 +141,8 @@ type Annotation struct {
|
|||
}
|
||||
|
||||
func (s *Annotation) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Annotation
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Annotation
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -176,8 +176,8 @@ type AttributeValue struct {
|
|||
}
|
||||
|
||||
func (s *AttributeValue) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AttributeValue
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AttributeValue
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -220,15 +220,17 @@ type Attributes struct {
|
|||
}
|
||||
|
||||
func (s *Attributes) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Attributes
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Attributes
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// BatchWriteSpansRequest: The request message for the `BatchWriteSpans`
|
||||
// method.
|
||||
type BatchWriteSpansRequest struct {
|
||||
// Spans: A collection of spans.
|
||||
// Spans: A list of new spans. The span names must not match
|
||||
// existing
|
||||
// spans, or the results are undefined.
|
||||
Spans []*Span `json:"spans,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Spans") to
|
||||
|
|
@ -249,8 +251,8 @@ type BatchWriteSpansRequest struct {
|
|||
}
|
||||
|
||||
func (s *BatchWriteSpansRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BatchWriteSpansRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod BatchWriteSpansRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -281,15 +283,15 @@ type Empty struct {
|
|||
// traces or when the handler receives a request from a different
|
||||
// project.
|
||||
type Link struct {
|
||||
// Attributes: A set of attributes on the link. There is a limit of 32
|
||||
// Attributes: A set of attributes on the link. You have have up to 32
|
||||
// attributes per
|
||||
// link.
|
||||
Attributes *Attributes `json:"attributes,omitempty"`
|
||||
|
||||
// SpanId: `SPAN_ID` identifies a span within a trace.
|
||||
// SpanId: The [SPAN_ID] for a span within a trace.
|
||||
SpanId string `json:"spanId,omitempty"`
|
||||
|
||||
// TraceId: `TRACE_ID` identifies a trace within a project.
|
||||
// TraceId: The [TRACE_ID] for a trace within a project.
|
||||
TraceId string `json:"traceId,omitempty"`
|
||||
|
||||
// Type: The relationship of the current span relative to the linked
|
||||
|
|
@ -321,8 +323,8 @@ type Link struct {
|
|||
}
|
||||
|
||||
func (s *Link) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Link
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Link
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -357,8 +359,8 @@ type Links struct {
|
|||
}
|
||||
|
||||
func (s *Links) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Links
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Links
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -410,8 +412,8 @@ type MessageEvent struct {
|
|||
}
|
||||
|
||||
func (s *MessageEvent) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MessageEvent
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MessageEvent
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -445,8 +447,8 @@ type Module struct {
|
|||
}
|
||||
|
||||
func (s *Module) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Module
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Module
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -460,7 +462,7 @@ func (s *Module) MarshalJSON() ([]byte, error) {
|
|||
// be
|
||||
// gaps or overlaps between spans in a trace.
|
||||
type Span struct {
|
||||
// Attributes: A set of attributes on the span. There is a limit of 32
|
||||
// Attributes: A set of attributes on the span. You can have up to 32
|
||||
// attributes per
|
||||
// span.
|
||||
Attributes *Attributes `json:"attributes,omitempty"`
|
||||
|
|
@ -491,15 +493,19 @@ type Span struct {
|
|||
// is the time when the server application handler stops running.
|
||||
EndTime string `json:"endTime,omitempty"`
|
||||
|
||||
// Links: A maximum of 128 links are allowed per Span.
|
||||
// Links: Links associated with the span. You can have up to 128 links
|
||||
// per Span.
|
||||
Links *Links `json:"links,omitempty"`
|
||||
|
||||
// Name: The resource name of the span in the following format:
|
||||
//
|
||||
// projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique
|
||||
// identifier for a trace within a project.
|
||||
// [SPAN_ID] is a unique identifier for a span within a trace,
|
||||
// assigned when the span is created.
|
||||
// identifier for a trace within a project;
|
||||
// it is a 32-character hexadecimal encoding of a 16-byte
|
||||
// array.
|
||||
//
|
||||
// [SPAN_ID] is a unique identifier for a span within a trace; it
|
||||
// is a 16-character hexadecimal encoding of an 8-byte array.
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// ParentSpanId: The [SPAN_ID] of this span's parent span. If this is a
|
||||
|
|
@ -507,11 +513,13 @@ type Span struct {
|
|||
// then this field must be empty.
|
||||
ParentSpanId string `json:"parentSpanId,omitempty"`
|
||||
|
||||
// SameProcessAsParentSpan: A highly recommended but not required flag
|
||||
// that identifies when a trace
|
||||
// crosses a process boundary. True when the parent_span belongs to
|
||||
// the
|
||||
// same process as the current span.
|
||||
// SameProcessAsParentSpan: (Optional) Set this parameter to indicate
|
||||
// whether this span is in
|
||||
// the same process as its parent. If you do not set this
|
||||
// parameter,
|
||||
// Stackdriver Trace is unable to take advantage of this
|
||||
// helpful
|
||||
// information.
|
||||
SameProcessAsParentSpan bool `json:"sameProcessAsParentSpan,omitempty"`
|
||||
|
||||
// SpanId: The [SPAN_ID] portion of the span's resource name.
|
||||
|
|
@ -530,8 +538,8 @@ type Span struct {
|
|||
// Status: An optional final status for this span.
|
||||
Status *Status `json:"status,omitempty"`
|
||||
|
||||
// TimeEvents: The included time events. There can be up to 32
|
||||
// annotations and 128 message
|
||||
// TimeEvents: A set of time events. You can have up to 32 annotations
|
||||
// and 128 message
|
||||
// events per span.
|
||||
TimeEvents *TimeEvents `json:"timeEvents,omitempty"`
|
||||
|
||||
|
|
@ -557,8 +565,8 @@ type Span struct {
|
|||
}
|
||||
|
||||
func (s *Span) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Span
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Span
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -615,8 +623,8 @@ type StackFrame struct {
|
|||
}
|
||||
|
||||
func (s *StackFrame) MarshalJSON() ([]byte, error) {
|
||||
type noMethod StackFrame
|
||||
raw := noMethod(*s)
|
||||
type NoMethod StackFrame
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -650,8 +658,8 @@ type StackFrames struct {
|
|||
}
|
||||
|
||||
func (s *StackFrames) MarshalJSON() ([]byte, error) {
|
||||
type noMethod StackFrames
|
||||
raw := noMethod(*s)
|
||||
type NoMethod StackFrames
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -692,8 +700,8 @@ type StackTrace struct {
|
|||
}
|
||||
|
||||
func (s *StackTrace) MarshalJSON() ([]byte, error) {
|
||||
type noMethod StackTrace
|
||||
raw := noMethod(*s)
|
||||
type NoMethod StackTrace
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -811,8 +819,8 @@ type Status struct {
|
|||
}
|
||||
|
||||
func (s *Status) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Status
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Status
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -846,8 +854,8 @@ type TimeEvent struct {
|
|||
}
|
||||
|
||||
func (s *TimeEvent) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TimeEvent
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TimeEvent
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -890,8 +898,8 @@ type TimeEvents struct {
|
|||
}
|
||||
|
||||
func (s *TimeEvents) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TimeEvents
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TimeEvents
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -903,16 +911,16 @@ type TruncatableString struct {
|
|||
// value is 0, then the string was not shortened.
|
||||
TruncatedByteCount int64 `json:"truncatedByteCount,omitempty"`
|
||||
|
||||
// Value: The shortened string. For example, if the original string was
|
||||
// Value: The shortened string. For example, if the original string is
|
||||
// 500
|
||||
// bytes long and the limit of the string was 128 bytes, then this
|
||||
// value contains the first 128 bytes of the 500-byte string. Note
|
||||
// that
|
||||
// truncation always happens on the character boundary, to ensure
|
||||
// that
|
||||
// truncated string is still valid UTF8. In case of multi-byte
|
||||
// characters,
|
||||
// size of truncated string can be less than truncation limit.
|
||||
// bytes long and the limit of the string is 128 bytes, then
|
||||
// `value` contains the first 128 bytes of the 500-byte
|
||||
// string.
|
||||
//
|
||||
// Truncation always happens on a UTF8 character boundary. If there
|
||||
// are multi-byte characters in the string, then the length of
|
||||
// the
|
||||
// shortened string might be less than the size limit.
|
||||
Value string `json:"value,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "TruncatedByteCount")
|
||||
|
|
@ -934,8 +942,8 @@ type TruncatableString struct {
|
|||
}
|
||||
|
||||
func (s *TruncatableString) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TruncatableString
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TruncatableString
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
|
|
@ -950,15 +958,9 @@ type ProjectsTracesBatchWriteCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// BatchWrite: Sends new spans to Stackdriver Trace or updates existing
|
||||
// traces. If the
|
||||
// name of a trace that you send matches that of an existing trace, new
|
||||
// spans
|
||||
// are added to the existing trace. Attempt to update existing spans
|
||||
// results
|
||||
// undefined behavior. If the name does not match, a new trace is
|
||||
// created
|
||||
// with given set of spans.
|
||||
// BatchWrite: Sends new spans to new or existing traces. You cannot
|
||||
// update
|
||||
// existing spans.
|
||||
func (r *ProjectsTracesService) BatchWrite(name string, batchwritespansrequest *BatchWriteSpansRequest) *ProjectsTracesBatchWriteCall {
|
||||
c := &ProjectsTracesBatchWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -1047,12 +1049,12 @@ func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty,
|
|||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Sends new spans to Stackdriver Trace or updates existing traces. If the\nname of a trace that you send matches that of an existing trace, new spans\nare added to the existing trace. Attempt to update existing spans results\nundefined behavior. If the name does not match, a new trace is created\nwith given set of spans.",
|
||||
// "description": "Sends new spans to new or existing traces. You cannot update\nexisting spans.",
|
||||
// "flatPath": "v2/projects/{projectsId}/traces:batchWrite",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudtrace.projects.traces.batchWrite",
|
||||
|
|
@ -1061,7 +1063,7 @@ func (c *ProjectsTracesBatchWriteCall) Do(opts ...googleapi.CallOption) (*Empty,
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "name": {
|
||||
// "description": "Required. Name of the project where the spans belong. The format is\n`projects/PROJECT_ID`.",
|
||||
// "description": "Required. The name of the project where the spans belong. The format is\n`projects/[PROJECT_ID]`.",
|
||||
// "location": "path",
|
||||
// "pattern": "^projects/[^/]+$",
|
||||
// "required": true,
|
||||
|
|
@ -1094,7 +1096,7 @@ type ProjectsTracesSpansCreateCall struct {
|
|||
header_ http.Header
|
||||
}
|
||||
|
||||
// Create: Creates a new Span.
|
||||
// Create: Creates a new span.
|
||||
func (r *ProjectsTracesSpansService) Create(nameid string, span *Span) *ProjectsTracesSpansCreateCall {
|
||||
c := &ProjectsTracesSpansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.nameid = nameid
|
||||
|
|
@ -1140,9 +1142,9 @@ func (c *ProjectsTracesSpansCreateCall) doRequest(alt string) (*http.Response, e
|
|||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/spans")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("PUT", urls, body)
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.nameid,
|
||||
|
|
@ -1183,28 +1185,28 @@ func (c *ProjectsTracesSpansCreateCall) Do(opts ...googleapi.CallOption) (*Span,
|
|||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Creates a new Span.",
|
||||
// "flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}",
|
||||
// "httpMethod": "PUT",
|
||||
// "description": "Creates a new span.",
|
||||
// "flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudtrace.projects.traces.spans.create",
|
||||
// "parameterOrder": [
|
||||
// "name"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "name": {
|
||||
// "description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project.\n[SPAN_ID] is a unique identifier for a span within a trace,\nassigned when the span is created.",
|
||||
// "description": "The resource name of the span in the following format:\n\n projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project;\nit is a 32-character hexadecimal encoding of a 16-byte array.\n\n[SPAN_ID] is a unique identifier for a span within a trace; it\nis a 16-character hexadecimal encoding of an 8-byte array.",
|
||||
// "location": "path",
|
||||
// "pattern": "^projects/[^/]+/traces/[^/]+/spans/[^/]+$",
|
||||
// "pattern": "^projects/[^/]+/traces/[^/]+$",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "v2/{+name}",
|
||||
// "path": "v2/{+name}/spans",
|
||||
// "request": {
|
||||
// "$ref": "Span"
|
||||
// },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue