lmammino/cube-bundle

Symfony2 Bundle to integrate cube-php

Installs: 48

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

v1.0 2014-04-08 09:06 UTC

This package is auto-updated.

Last update: 2024-11-29 04:07:30 UTC


README

This bundle allows you to integrate the library ShowClix/cube-php in your Symfony2 application and interact with Cube collectors and evaluators.

Build Status Latest Stable Version Latest Unstable Version Dependency Status Total Downloads

A little appetizer

Just to have a quick idea on how the bundle works have a look at this piece of code:

#Inside a controller action

$client = $this->get('cube_client');

$events = $client->metricGet(array(
    'expression' => 'sum(cube_request)',
    'step' => \Cube\Client::INT_ONE_MINUTE,
    'limit' => 100,
));

foreach ($event in $events) {
    echo "There were {$event['value']} hits during {$event['time']} \n";
}

Documentation

You can learn more about the bundle in its documentation.

License

This bundle is distributed under the MIT license.

Credits and contributions

This bundle is maintained by Luciano Mammino.

If you want to improve or fix something feel free to submit a pull request. Contributions are always VERY welcome 😉