Skip to content

Commit 63891f5

Browse files
feat(servicecontrol): update the api
#### servicecontrol:v1 The following keys were added: - schemas.V1HttpRequest (Total Keys: 21) - schemas.V1LogEntry (Total Keys: 32) #### servicecontrol:v2 The following keys were added: - schemas.V2HttpRequest (Total Keys: 21) - schemas.V2LogEntry (Total Keys: 32)
1 parent eb9a5da commit 63891f5

File tree

2 files changed

+424
-2
lines changed

2 files changed

+424
-2
lines changed

googleapiclient/discovery_cache/documents/servicecontrol.v1.json

Lines changed: 212 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
}
198198
}
199199
},
200-
"revision": "20220214",
200+
"revision": "20220227",
201201
"rootUrl": "https://servicecontrol.googleapis.com/",
202202
"schemas": {
203203
"AllocateInfo": {
@@ -1846,6 +1846,217 @@
18461846
}
18471847
},
18481848
"type": "object"
1849+
},
1850+
"V1HttpRequest": {
1851+
"description": "A common proto for logging HTTP requests. Only contains semantics defined by the HTTP specification. Product-specific logging information MUST be defined in a separate message.",
1852+
"id": "V1HttpRequest",
1853+
"properties": {
1854+
"cacheFillBytes": {
1855+
"description": "The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.",
1856+
"format": "int64",
1857+
"type": "string"
1858+
},
1859+
"cacheHit": {
1860+
"description": "Whether or not an entity was served from cache (with or without validation).",
1861+
"type": "boolean"
1862+
},
1863+
"cacheLookup": {
1864+
"description": "Whether or not a cache lookup was attempted.",
1865+
"type": "boolean"
1866+
},
1867+
"cacheValidatedWithOriginServer": {
1868+
"description": "Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if `cache_hit` is True.",
1869+
"type": "boolean"
1870+
},
1871+
"latency": {
1872+
"description": "The request processing latency on the server, from the time the request was received until the response was sent.",
1873+
"format": "google-duration",
1874+
"type": "string"
1875+
},
1876+
"protocol": {
1877+
"description": "Protocol used for the request. Examples: \"HTTP/1.1\", \"HTTP/2\", \"websocket\"",
1878+
"type": "string"
1879+
},
1880+
"referer": {
1881+
"description": "The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).",
1882+
"type": "string"
1883+
},
1884+
"remoteIp": {
1885+
"description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: `\"192.168.1.1\"`, `\"FE80::0202:B3FF:FE1E:8329\"`.",
1886+
"type": "string"
1887+
},
1888+
"requestMethod": {
1889+
"description": "The request method. Examples: `\"GET\"`, `\"HEAD\"`, `\"PUT\"`, `\"POST\"`.",
1890+
"type": "string"
1891+
},
1892+
"requestSize": {
1893+
"description": "The size of the HTTP request message in bytes, including the request headers and the request body.",
1894+
"format": "int64",
1895+
"type": "string"
1896+
},
1897+
"requestUrl": {
1898+
"description": "The scheme (http, https), the host name, the path, and the query portion of the URL that was requested. Example: `\"http://example.com/some/info?color=red\"`.",
1899+
"type": "string"
1900+
},
1901+
"responseSize": {
1902+
"description": "The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.",
1903+
"format": "int64",
1904+
"type": "string"
1905+
},
1906+
"serverIp": {
1907+
"description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.",
1908+
"type": "string"
1909+
},
1910+
"status": {
1911+
"description": "The response code indicating the status of the response. Examples: 200, 404.",
1912+
"format": "int32",
1913+
"type": "integer"
1914+
},
1915+
"userAgent": {
1916+
"description": "The user agent sent by the client. Example: `\"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"`.",
1917+
"type": "string"
1918+
}
1919+
},
1920+
"type": "object"
1921+
},
1922+
"V1LogEntry": {
1923+
"description": "An individual log entry.",
1924+
"id": "V1LogEntry",
1925+
"properties": {
1926+
"httpRequest": {
1927+
"$ref": "V1HttpRequest",
1928+
"description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
1929+
},
1930+
"insertId": {
1931+
"description": "A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.",
1932+
"type": "string"
1933+
},
1934+
"labels": {
1935+
"additionalProperties": {
1936+
"type": "string"
1937+
},
1938+
"description": "A set of user-defined (key, value) data that provides additional information about the log entry.",
1939+
"type": "object"
1940+
},
1941+
"monitoredResourceLabels": {
1942+
"additionalProperties": {
1943+
"type": "string"
1944+
},
1945+
"description": "A set of user-defined (key, value) data that provides additional information about the moniotored resource that the log entry belongs to.",
1946+
"type": "object"
1947+
},
1948+
"name": {
1949+
"description": "Required. The log to which this log entry belongs. Examples: `\"syslog\"`, `\"book_log\"`.",
1950+
"type": "string"
1951+
},
1952+
"operation": {
1953+
"$ref": "V1LogEntryOperation",
1954+
"description": "Optional. Information about an operation associated with the log entry, if applicable."
1955+
},
1956+
"protoPayload": {
1957+
"additionalProperties": {
1958+
"description": "Properties of the object. Contains field @type with type URL.",
1959+
"type": "any"
1960+
},
1961+
"description": "The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.",
1962+
"type": "object"
1963+
},
1964+
"severity": {
1965+
"description": "The severity of the log entry. The default value is `LogSeverity.DEFAULT`.",
1966+
"enum": [
1967+
"DEFAULT",
1968+
"DEBUG",
1969+
"INFO",
1970+
"NOTICE",
1971+
"WARNING",
1972+
"ERROR",
1973+
"CRITICAL",
1974+
"ALERT",
1975+
"EMERGENCY"
1976+
],
1977+
"enumDescriptions": [
1978+
"(0) The log entry has no assigned severity level.",
1979+
"(100) Debug or trace information.",
1980+
"(200) Routine information, such as ongoing status or performance.",
1981+
"(300) Normal but significant events, such as start up, shut down, or a configuration change.",
1982+
"(400) Warning events might cause problems.",
1983+
"(500) Error events are likely to cause problems.",
1984+
"(600) Critical events cause more severe problems or outages.",
1985+
"(700) A person must take an action immediately.",
1986+
"(800) One or more systems are unusable."
1987+
],
1988+
"type": "string"
1989+
},
1990+
"sourceLocation": {
1991+
"$ref": "V1LogEntrySourceLocation",
1992+
"description": "Optional. Source code location information associated with the log entry, if any."
1993+
},
1994+
"structPayload": {
1995+
"additionalProperties": {
1996+
"description": "Properties of the object.",
1997+
"type": "any"
1998+
},
1999+
"description": "The log entry payload, represented as a structure that is expressed as a JSON object.",
2000+
"type": "object"
2001+
},
2002+
"textPayload": {
2003+
"description": "The log entry payload, represented as a Unicode string (UTF-8).",
2004+
"type": "string"
2005+
},
2006+
"timestamp": {
2007+
"description": "The time the event described by the log entry occurred. If omitted, defaults to operation start time.",
2008+
"format": "google-datetime",
2009+
"type": "string"
2010+
},
2011+
"trace": {
2012+
"description": "Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`",
2013+
"type": "string"
2014+
}
2015+
},
2016+
"type": "object"
2017+
},
2018+
"V1LogEntryOperation": {
2019+
"description": "Additional information about a potentially long-running operation with which a log entry is associated.",
2020+
"id": "V1LogEntryOperation",
2021+
"properties": {
2022+
"first": {
2023+
"description": "Optional. Set this to True if this is the first log entry in the operation.",
2024+
"type": "boolean"
2025+
},
2026+
"id": {
2027+
"description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.",
2028+
"type": "string"
2029+
},
2030+
"last": {
2031+
"description": "Optional. Set this to True if this is the last log entry in the operation.",
2032+
"type": "boolean"
2033+
},
2034+
"producer": {
2035+
"description": "Optional. An arbitrary producer identifier. The combination of `id` and `producer` must be globally unique. Examples for `producer`: `\"MyDivision.MyBigCompany.com\"`, `\"github.com/MyProject/MyApplication\"`.",
2036+
"type": "string"
2037+
}
2038+
},
2039+
"type": "object"
2040+
},
2041+
"V1LogEntrySourceLocation": {
2042+
"description": "Additional information about the source code location that produced the log entry.",
2043+
"id": "V1LogEntrySourceLocation",
2044+
"properties": {
2045+
"file": {
2046+
"description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
2047+
"type": "string"
2048+
},
2049+
"function": {
2050+
"description": "Optional. Human-readable name of the function or method being invoked, with optional context such as the class or package name. This information may be used in contexts such as the logs viewer, where a file and line number are less meaningful. The format can vary by language. For example: `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function` (Python).",
2051+
"type": "string"
2052+
},
2053+
"line": {
2054+
"description": "Optional. Line within the source file. 1-based; 0 indicates no line number available.",
2055+
"format": "int64",
2056+
"type": "string"
2057+
}
2058+
},
2059+
"type": "object"
18492060
}
18502061
},
18512062
"servicePath": "",

0 commit comments

Comments
 (0)