ark::aws::CloudwatchServer
Defined in header “ark/aws/testing/cloudwatch_server.hh”.
This class represents a mock AWS CloudWatch server to handle metrics. Posts will be captured and transformed into a MetricsRequest and written to disk at the input root_path location. The purpose of this class is to aid in the testing of posting metrics to CloudWatch.
Methods
-
CloudwatchServer(const comms::NetworkAddress & address, std::filesystem::path root_path)
Constructor. Initializes the given Cloudwatch service on the specified address with the given key information. Root_path specifies the destination path to write any Metric requests. -
~CloudwatchServer()
Destructor implemented internally. -
core::Url endpoint()
Returns the endpoint that you can talk to this server over.