You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Period attribute to logging https endpoint. (#1097)
* Add Period attribute to logging https endpoint.
* Change the logging HTTPS endpoint `Period` default to 5.
* Changes based on review feedback.
* Update tests.
* Remove duplicate code.
* Adding more variety to Period Values in Tests and Removed state updates
---------
Co-authored-by: Richard Carillo <[email protected]>
Co-authored-by: Richard Carillo <[email protected]>
Copy file name to clipboardExpand all lines: docs/resources/service_compute.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -513,6 +513,7 @@ Optional:
513
513
-`json_format` (String) Formats log entries as JSON. Can be either disabled (`0`), array of json (`1`), or newline delimited json (`2`)
514
514
-`message_type` (String) How the message should be formatted. Can be either `classic`, `loggly`, `logplex` or `blank`. Default is `classic`
515
515
-`method` (String) HTTP method used for request. Can be either `POST` or `PUT`. Default `POST`
516
+
-`period` (Number) How frequently, in seconds, batches of log data are sent to the HTTPS endpoint. A value of 0 sends logs at the same interval as the default, which is 5 seconds.
516
517
-`processing_region` (String) Region where logs will be processed before streaming to BigQuery. Valid values are 'none', 'us' and 'eu'.
517
518
-`request_max_bytes` (Number) The maximum number of bytes sent in one request
518
519
-`request_max_entries` (Number) The maximum number of logs sent in one request
Copy file name to clipboardExpand all lines: docs/resources/service_vcl.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -814,6 +814,7 @@ Optional:
814
814
-`json_format` (String) Formats log entries as JSON. Can be either disabled (`0`), array of json (`1`), or newline delimited json (`2`)
815
815
-`message_type` (String) How the message should be formatted. Can be either `classic`, `loggly`, `logplex` or `blank`. Default is `classic`
816
816
-`method` (String) HTTP method used for request. Can be either `POST` or `PUT`. Default `POST`
817
+
-`period` (Number) How frequently, in seconds, batches of log data are sent to the HTTPS endpoint. A value of 0 sends logs at the same interval as the default, which is 5 seconds.
817
818
-`placement` (String) Where in the generated VCL the logging call should be placed
818
819
-`processing_region` (String) Region where logs will be processed before streaming to BigQuery. Valid values are 'none', 'us' and 'eu'.
819
820
-`request_max_bytes` (Number) The maximum number of bytes sent in one request
Description: "The unique name of the HTTPS logging endpoint. It is important to note that changing this attribute will delete and recreate the resource",
94
94
},
95
+
"period": {
96
+
Type: schema.TypeInt,
97
+
Optional: true,
98
+
Default: 5,
99
+
Description: "How frequently, in seconds, batches of log data are sent to the HTTPS endpoint. A value of 0 sends logs at the same interval as the default, which is 5 seconds.",
0 commit comments