{"id":4265,"date":"2023-06-12T13:24:17","date_gmt":"2023-06-12T18:24:17","guid":{"rendered":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=4265"},"modified":"2023-06-12T13:24:17","modified_gmt":"2023-06-12T18:24:17","slug":"successful-alert-firing-and-notification","status":"publish","type":"post","link":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=4265","title":{"rendered":"Successful Alert Firing and Notification"},"content":{"rendered":"<p>After creating several more Google Cloud alert policies, I finally hit on something that works. I now receive the following email when my application exceeds its quota for YouTube Data API usage:<\/p>\n<div id=\"attachment_4266\" style=\"width: 618px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4266\" src=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Alert-Firing.png\" alt=\"Google Cloud Alert Firing\" class=\"wp-image-4266 size-full\" width=\"608\" height=\"860\" srcset=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Alert-Firing.png 608w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Google-Cloud-Alert-Firing-283x400.png 283w\" sizes=\"(max-width: 608px) 100vw, 608px\" \/><p id=\"caption-attachment-4266\" class=\"wp-caption-text\">Google Cloud Alert Firing<\/p><\/div>\n<p>I think the key to getting this to work was setting the Threshold value to 1. The threshold must be the number of times the condition occurs for a specific duration window and not the quota reaching a threshold.<\/p>\n<div id=\"attachment_4267\" style=\"width: 553px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4267\" src=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Configure-Alert-Triggger-Threshold.png\" alt=\"Configure Alert Trigger Threshold\" class=\"wp-image-4267 size-full\" width=\"543\" height=\"658\" srcset=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Configure-Alert-Triggger-Threshold.png 543w, http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/wp-content\/uploads\/2023\/06\/Configure-Alert-Triggger-Threshold-330x400.png 330w\" sizes=\"(max-width: 543px) 100vw, 543px\" \/><p id=\"caption-attachment-4267\" class=\"wp-caption-text\">Configure Alert Trigger Threshold<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>After creating several more Google Cloud alert policies, I finally hit on something that works. I now receive the following email when my application exceeds its quota for YouTube Data API usage: I think the key to getting this to &hellip; <a href=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=4265\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1900,12,11,1984],"tags":[1985,1119],"_links":{"self":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4265"}],"collection":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4265"}],"version-history":[{"count":1,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4265\/revisions"}],"predecessor-version":[{"id":4268,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/4265\/revisions\/4268"}],"wp:attachment":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4265"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}