File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- # [START eventarc_gcs_dockerfile ]
15
+ # [START eventarc_audit_storage_dockerfile ]
16
16
17
17
# Use the official Python image.
18
18
# https://hub.docker.com/_/python
@@ -38,4 +38,4 @@ COPY . ./
38
38
# For environments with multiple CPU cores, increase the number of workers
39
39
# to be equal to the cores available.
40
40
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
41
- # [END eventarc_gcs_dockerfile ]
41
+ # [END eventarc_audit_storage_dockerfile ]
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- # [START eventarc_gcs_server ]
15
+ # [START eventarc_audit_storage_server ]
16
16
import os
17
17
18
18
from flask import Flask , request
19
19
20
20
21
21
app = Flask (__name__ )
22
- # [END eventarc_gcs_server ]
22
+ # [END eventarc_audit_storage_server ]
23
23
24
24
25
- # [START eventarc_gcs_handler ]
25
+ # [START eventarc_audit_storage_handler ]
26
26
@app .route ('/' , methods = ['POST' ])
27
27
def index ():
28
28
# Gets the GCS bucket name from the CloudEvent header
@@ -31,10 +31,10 @@ def index():
31
31
32
32
print (f"Detected change in Cloud Storage bucket: { bucket } " )
33
33
return (f"Detected change in Cloud Storage bucket: { bucket } " , 200 )
34
- # [END eventarc_gcs_handler ]
34
+ # [END eventarc_audit_storage_handler ]
35
35
36
36
37
- # [START eventarc_gcs_server ]
37
+ # [START eventarc_audit_storage_server ]
38
38
if __name__ == "__main__" :
39
39
app .run (debug = True , host = '0.0.0.0' , port = int (os .environ .get ('PORT' , 8080 )))
40
- # [END eventarc_gcs_server ]
40
+ # [END eventarc_audit_storage_server ]
You can’t perform that action at this time.
0 commit comments