Last active
March 14, 2019 22:57
-
-
Save vinoaj/4fe72ce14b6d84365d31c1c595ff0243 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
labels.execution_id | |
, timestamp | |
, CAST(REGEXP_EXTRACT(textPayload, r"\d+") AS INT64) as runtime | |
FROM `<dataset_id>.logging.cloudfunctions_googleapis_com_cloud_functions_*` | |
WHERE _TABLE_SUFFIX BETWEEN '20190101' AND '20190315' | |
AND resource.labels.function_name = "<function_name>" | |
AND REGEXP_CONTAINS(textPayload, r"^Function execution took \d+ ms.*") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment