nesquick/metrics

Librato Metrics APIs 的 PHP 客户端。

v1.0 2015-02-25 21:28 UTC

This package is not auto-updated.

Last update: 2024-09-20 14:01:18 UTC


README

Build Status

A PHP Client for sending data to librato metrics. Inspired or ported from node-librato-metrics from @felixge

安装

安装应通过 Composer 完成。

$ composer require nesQuick/Metrics

示例

use Metrics\Client;

$client = new Client('user@example.org', '...');
$client->post('/metrics', array(
  'gauges' => array(
    array('name' => 'metric1', 'value' => 123)
  )
));

待办事项

许可证

在 MIT 许可证下授权。