PHP code example of wdalmut / cloudwatch-agent-client
1. Go to this page and download the library: Download wdalmut/cloudwatch-agent-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wdalmut / cloudwatch-agent-client example snippets
Agent::point($namespace, $metric, $value, ["unit" => Agent::UNIT_MILLISECONDS]);
Agent::point($namespace, $metric, 1, ["op" => Agent::OP_SUM]);