Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 90d6c6d

Browse files
committedMar 18, 2025
feat(logging): update the api
#### logging:v2 The following keys were added: - schemas.AppHub (Total Keys: 20) - schemas.LogEntry.properties.apphub (Total Keys: 2)
1 parent 58b9bcb commit 90d6c6d

File tree

2 files changed

+133
-1
lines changed

2 files changed

+133
-1
lines changed
 

‎docs/dyn/logging_v2.entries.html

+51
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,23 @@ <h3>Method Details</h3>
173173
{ # Result returned from ListLogEntries.
174174
&quot;entries&quot;: [ # A list of log entries. If entries is empty, nextPageToken may still be returned, indicating that more entries may exist. See nextPageToken for more information.
175175
{ # An individual entry in a log.
176+
&quot;apphub&quot;: { # Metadata associated with App Hub. # Output only. AppHub application metadata associated with this LogEntry. May be empty if there is no associated AppHub application or multiple associated applications (such as for VPC flow logs)
177+
&quot;application&quot;: { # Resource identifiers associated with an AppHub application AppHub resources are of the form projects//locations//applications/ projects//locations//applications//services/ projects//locations//applications//workloads/ These resources can be reconstructed from the components below. # Metadata associated with the application.
178+
&quot;container&quot;: &quot;A String&quot;, # Resource container that owns the application. Example: &quot;projects/management_project&quot;
179+
&quot;id&quot;: &quot;A String&quot;, # Application Id. Example: &quot;my-app&quot;
180+
&quot;location&quot;: &quot;A String&quot;, # Location associated with the Application. Example: &quot;us-east1&quot;
181+
},
182+
&quot;service&quot;: { # Metadata associated with an App Hub service. # Metadata associated with the service.
183+
&quot;criticalityType&quot;: &quot;A String&quot;, # Service criticality type Example: &quot;CRITICAL&quot;
184+
&quot;environmentType&quot;: &quot;A String&quot;, # Service environment type Example: &quot;DEV&quot;
185+
&quot;id&quot;: &quot;A String&quot;, # Service Id. Example: &quot;my-service&quot;
186+
},
187+
&quot;workload&quot;: { # Metadata associated with an App Hub workload. # Metadata associated with the workload.
188+
&quot;criticalityType&quot;: &quot;A String&quot;, # Workload criticality type Example: &quot;CRITICAL&quot;
189+
&quot;environmentType&quot;: &quot;A String&quot;, # Workload environment type Example: &quot;DEV&quot;
190+
&quot;id&quot;: &quot;A String&quot;, # Workload Id. Example: &quot;my-workload&quot;
191+
},
192+
},
176193
&quot;errorGroups&quot;: [ # Output only. The Error Reporting (https://cloud.google.com/error-reporting) error groups associated with this LogEntry. Error Reporting sets the values for this field during error group creation.For more information, see View error details( https://cloud.google.com/error-reporting/docs/viewing-errors#view_error_details)This field isn&#x27;t available during log routing (https://cloud.google.com/logging/docs/routing/overview)
177194
{ # Contains metadata that associates the LogEntry to Error Reporting error groups.
178195
&quot;id&quot;: &quot;A String&quot;, # The id is a unique identifier for a particular error group; it is the last part of the error group resource name: /project/[PROJECT_ID]/errors/[ERROR_GROUP_ID]. Example: COShysOX0r_51QE. The id is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see Google Cloud Privacy Notice (https://cloud.google.com/terms/cloud-privacy-notice).
@@ -290,6 +307,23 @@ <h3>Method Details</h3>
290307
{ # Result returned from TailLogEntries.
291308
&quot;entries&quot;: [ # A list of log entries. Each response in the stream will order entries with increasing values of LogEntry.timestamp. Ordering is not guaranteed between separate responses.
292309
{ # An individual entry in a log.
310+
&quot;apphub&quot;: { # Metadata associated with App Hub. # Output only. AppHub application metadata associated with this LogEntry. May be empty if there is no associated AppHub application or multiple associated applications (such as for VPC flow logs)
311+
&quot;application&quot;: { # Resource identifiers associated with an AppHub application AppHub resources are of the form projects//locations//applications/ projects//locations//applications//services/ projects//locations//applications//workloads/ These resources can be reconstructed from the components below. # Metadata associated with the application.
312+
&quot;container&quot;: &quot;A String&quot;, # Resource container that owns the application. Example: &quot;projects/management_project&quot;
313+
&quot;id&quot;: &quot;A String&quot;, # Application Id. Example: &quot;my-app&quot;
314+
&quot;location&quot;: &quot;A String&quot;, # Location associated with the Application. Example: &quot;us-east1&quot;
315+
},
316+
&quot;service&quot;: { # Metadata associated with an App Hub service. # Metadata associated with the service.
317+
&quot;criticalityType&quot;: &quot;A String&quot;, # Service criticality type Example: &quot;CRITICAL&quot;
318+
&quot;environmentType&quot;: &quot;A String&quot;, # Service environment type Example: &quot;DEV&quot;
319+
&quot;id&quot;: &quot;A String&quot;, # Service Id. Example: &quot;my-service&quot;
320+
},
321+
&quot;workload&quot;: { # Metadata associated with an App Hub workload. # Metadata associated with the workload.
322+
&quot;criticalityType&quot;: &quot;A String&quot;, # Workload criticality type Example: &quot;CRITICAL&quot;
323+
&quot;environmentType&quot;: &quot;A String&quot;, # Workload environment type Example: &quot;DEV&quot;
324+
&quot;id&quot;: &quot;A String&quot;, # Workload Id. Example: &quot;my-workload&quot;
325+
},
326+
},
293327
&quot;errorGroups&quot;: [ # Output only. The Error Reporting (https://cloud.google.com/error-reporting) error groups associated with this LogEntry. Error Reporting sets the values for this field during error group creation.For more information, see View error details( https://cloud.google.com/error-reporting/docs/viewing-errors#view_error_details)This field isn&#x27;t available during log routing (https://cloud.google.com/logging/docs/routing/overview)
294328
{ # Contains metadata that associates the LogEntry to Error Reporting error groups.
295329
&quot;id&quot;: &quot;A String&quot;, # The id is a unique identifier for a particular error group; it is the last part of the error group resource name: /project/[PROJECT_ID]/errors/[ERROR_GROUP_ID]. Example: COShysOX0r_51QE. The id is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see Google Cloud Privacy Notice (https://cloud.google.com/terms/cloud-privacy-notice).
@@ -383,6 +417,23 @@ <h3>Method Details</h3>
383417
&quot;dryRun&quot;: True or False, # Optional. If true, the request should expect normal response, but the entries won&#x27;t be persisted nor exported. Useful for checking whether the logging API endpoints are working properly before sending valuable data.
384418
&quot;entries&quot;: [ # Required. The log entries to send to Logging. The order of log entries in this list does not matter. Values supplied in this method&#x27;s log_name, resource, and labels fields are copied into those log entries in this list that do not include values for their corresponding fields. For more information, see the LogEntry type.If the timestamp or insert_id fields are missing in log entries, then this method supplies the current time or a unique identifier, respectively. The supplied values are chosen so that, among the log entries that did not supply their own values, the entries earlier in the list will sort before the entries later in the list. See the entries.list method.Log entries with timestamps that are more than the logs retention period (https://cloud.google.com/logging/quotas) in the past or more than 24 hours in the future will not be available when calling entries.list. However, those log entries can still be exported with LogSinks (https://cloud.google.com/logging/docs/api/tasks/exporting-logs).To improve throughput and to avoid exceeding the quota limit (https://cloud.google.com/logging/quotas) for calls to entries.write, you should try to include several log entries in this list, rather than calling this method for each individual log entry.
385419
{ # An individual entry in a log.
420+
&quot;apphub&quot;: { # Metadata associated with App Hub. # Output only. AppHub application metadata associated with this LogEntry. May be empty if there is no associated AppHub application or multiple associated applications (such as for VPC flow logs)
421+
&quot;application&quot;: { # Resource identifiers associated with an AppHub application AppHub resources are of the form projects//locations//applications/ projects//locations//applications//services/ projects//locations//applications//workloads/ These resources can be reconstructed from the components below. # Metadata associated with the application.
422+
&quot;container&quot;: &quot;A String&quot;, # Resource container that owns the application. Example: &quot;projects/management_project&quot;
423+
&quot;id&quot;: &quot;A String&quot;, # Application Id. Example: &quot;my-app&quot;
424+
&quot;location&quot;: &quot;A String&quot;, # Location associated with the Application. Example: &quot;us-east1&quot;
425+
},
426+
&quot;service&quot;: { # Metadata associated with an App Hub service. # Metadata associated with the service.
427+
&quot;criticalityType&quot;: &quot;A String&quot;, # Service criticality type Example: &quot;CRITICAL&quot;
428+
&quot;environmentType&quot;: &quot;A String&quot;, # Service environment type Example: &quot;DEV&quot;
429+
&quot;id&quot;: &quot;A String&quot;, # Service Id. Example: &quot;my-service&quot;
430+
},
431+
&quot;workload&quot;: { # Metadata associated with an App Hub workload. # Metadata associated with the workload.
432+
&quot;criticalityType&quot;: &quot;A String&quot;, # Workload criticality type Example: &quot;CRITICAL&quot;
433+
&quot;environmentType&quot;: &quot;A String&quot;, # Workload environment type Example: &quot;DEV&quot;
434+
&quot;id&quot;: &quot;A String&quot;, # Workload Id. Example: &quot;my-workload&quot;
435+
},
436+
},
386437
&quot;errorGroups&quot;: [ # Output only. The Error Reporting (https://cloud.google.com/error-reporting) error groups associated with this LogEntry. Error Reporting sets the values for this field during error group creation.For more information, see View error details( https://cloud.google.com/error-reporting/docs/viewing-errors#view_error_details)This field isn&#x27;t available during log routing (https://cloud.google.com/logging/docs/routing/overview)
387438
{ # Contains metadata that associates the LogEntry to Error Reporting error groups.
388439
&quot;id&quot;: &quot;A String&quot;, # The id is a unique identifier for a particular error group; it is the last part of the error group resource name: /project/[PROJECT_ID]/errors/[ERROR_GROUP_ID]. Example: COShysOX0r_51QE. The id is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see Google Cloud Privacy Notice (https://cloud.google.com/terms/cloud-privacy-notice).

‎googleapiclient/discovery_cache/documents/logging.v2.json

+82-1
Original file line numberDiff line numberDiff line change
@@ -8922,9 +8922,85 @@
89228922
}
89238923
}
89248924
},
8925-
"revision": "20250207",
8925+
"revision": "20250307",
89268926
"rootUrl": "https://logging.googleapis.com/",
89278927
"schemas": {
8928+
"AppHub": {
8929+
"description": "Metadata associated with App Hub.",
8930+
"id": "AppHub",
8931+
"properties": {
8932+
"application": {
8933+
"$ref": "AppHubApplication",
8934+
"description": "Metadata associated with the application."
8935+
},
8936+
"service": {
8937+
"$ref": "AppHubService",
8938+
"description": "Metadata associated with the service."
8939+
},
8940+
"workload": {
8941+
"$ref": "AppHubWorkload",
8942+
"description": "Metadata associated with the workload."
8943+
}
8944+
},
8945+
"type": "object"
8946+
},
8947+
"AppHubApplication": {
8948+
"description": "Resource identifiers associated with an AppHub application AppHub resources are of the form projects//locations//applications/ projects//locations//applications//services/ projects//locations//applications//workloads/ These resources can be reconstructed from the components below.",
8949+
"id": "AppHubApplication",
8950+
"properties": {
8951+
"container": {
8952+
"description": "Resource container that owns the application. Example: \"projects/management_project\"",
8953+
"type": "string"
8954+
},
8955+
"id": {
8956+
"description": "Application Id. Example: \"my-app\"",
8957+
"type": "string"
8958+
},
8959+
"location": {
8960+
"description": "Location associated with the Application. Example: \"us-east1\"",
8961+
"type": "string"
8962+
}
8963+
},
8964+
"type": "object"
8965+
},
8966+
"AppHubService": {
8967+
"description": "Metadata associated with an App Hub service.",
8968+
"id": "AppHubService",
8969+
"properties": {
8970+
"criticalityType": {
8971+
"description": "Service criticality type Example: \"CRITICAL\"",
8972+
"type": "string"
8973+
},
8974+
"environmentType": {
8975+
"description": "Service environment type Example: \"DEV\"",
8976+
"type": "string"
8977+
},
8978+
"id": {
8979+
"description": "Service Id. Example: \"my-service\"",
8980+
"type": "string"
8981+
}
8982+
},
8983+
"type": "object"
8984+
},
8985+
"AppHubWorkload": {
8986+
"description": "Metadata associated with an App Hub workload.",
8987+
"id": "AppHubWorkload",
8988+
"properties": {
8989+
"criticalityType": {
8990+
"description": "Workload criticality type Example: \"CRITICAL\"",
8991+
"type": "string"
8992+
},
8993+
"environmentType": {
8994+
"description": "Workload environment type Example: \"DEV\"",
8995+
"type": "string"
8996+
},
8997+
"id": {
8998+
"description": "Workload Id. Example: \"my-workload\"",
8999+
"type": "string"
9000+
}
9001+
},
9002+
"type": "object"
9003+
},
89289004
"BigQueryDataset": {
89299005
"description": "Describes a BigQuery dataset that was created by a link.",
89309006
"id": "BigQueryDataset",
@@ -10034,6 +10110,11 @@
1003410110
"description": "An individual entry in a log.",
1003510111
"id": "LogEntry",
1003610112
"properties": {
10113+
"apphub": {
10114+
"$ref": "AppHub",
10115+
"description": "Output only. AppHub application metadata associated with this LogEntry. May be empty if there is no associated AppHub application or multiple associated applications (such as for VPC flow logs)",
10116+
"readOnly": true
10117+
},
1003710118
"errorGroups": {
1003810119
"description": "Output only. The Error Reporting (https://cloud.google.com/error-reporting) error groups associated with this LogEntry. Error Reporting sets the values for this field during error group creation.For more information, see View error details( https://cloud.google.com/error-reporting/docs/viewing-errors#view_error_details)This field isn't available during log routing (https://cloud.google.com/logging/docs/routing/overview)",
1003910120
"items": {

0 commit comments

Comments
 (0)
Please sign in to comment.