Send data collected into a PHP application to the running agent, (*1)
Use composer, (*2)
{ "require": { "corley/cloudwatch-agent-client": "*" } }
The API is very simple, just a simple call, (*3)
Corley\CloudWatch\Agent::point($namespace, $metric, $value);
You can also send the unit and the operation, (*4)
Agent::point($namespace, $metric, $value, ["unit" => Agent::UNIT_MILLISECONDS]); Agent::point($namespace, $metric, 1, ["op" => Agent::OP_SUM]);
Valid units are:, (*5)