wdalmut/cloudwatch-agent-client
Composer 安装命令:
composer require wdalmut/cloudwatch-agent-client
包简介
README 文档
README
Send data collected into a PHP application to the running agent
Install
Use composer
{
"require": {
"corley/cloudwatch-agent-client": "*"
}
}
How to use
The API is very simple, just a simple call
Corley\CloudWatch\Agent::point($namespace, $metric, $value);
You can also send the unit and the operation
Agent::point($namespace, $metric, $value, ["unit" => Agent::UNIT_MILLISECONDS]);
Agent::point($namespace, $metric, 1, ["op" => Agent::OP_SUM]);
Valid units are:
- "Seconds",
- "Microseconds",
- "Milliseconds",
- "Bytes",
- "Kilobytes",
- "Megabytes",
- "Gigabytes",
- "Terabytes",
- "Bits",
- "Kilobits",
- "Megabits",
- "Gigabits",
- "Terabits",
- "Percent",
- "Count",
- "Bytes/Second",
- "Kilobytes/Second",
- "Megabytes/Second",
- "Gigabytes/Second",
- "Terabytes/Second",
- "Bits/Second",
- "Kilobits/Second",
- "Megabits/Second",
- "Gigabits/Second",
- "Terabits/Second",
- "Count/Second",
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-06-17