Programming with Datadog APIs
In this tutorial section, you will learn how to publish a custom metric and use that custom metric to set up a monitor programmatically. You will also learn how to publish an event in the Datadog events stream and search the event stream using keywords. Then a monitor will be set up that is based on the newly created custom metric. You will also learn how these events, the creation of the custom metric and monitor, are posted to the events stream. Finally, you will learn how the events stream is queried using a known tag that helps to locate the events programmatically posted to the events stream earlier.
The problem
For the tutorial, let's assume that you are maintaining an e-commerce site and you need to monitor the performance of the business on an hourly basis, which management might be interested in tracking. There is a custom program to query the hourly order from the company's order management system, which will also post the metric...