All the deprecated code introduced on 1.x is removed on 2.0.
Please read 1.x upgrade guides for more information.
See also the diff code.
The use_events
keys does not exists anymore. Listeners will be always defined.
The UDP connection is now not available by default. If you use it, you must activate it trough configuration:
influx_db:
host: localhost
database: telegraf
udp: true
The following parameters does not exist anymore:
influx_db.udp.port
influx_db.http.port
influx_db.host
influx_db.database
influx_db.username
influx_db.password
Some classes are now final
and should not be overridden:
Algatux\InfluxDbBundle\DependencyInjection\Configuration
Algatux\InfluxDbBundle\DependencyInjection\InfluxDbExtension
Algatux\InfluxDbBundle\Events\Listeners\InfluxDbEventListener
Algatux\InfluxDbBundle\Events\DeferredHttpEvent
Algatux\InfluxDbBundle\Events\DeferredUdpEvent
Algatux\InfluxDbBundle\Events\HttpEvent
Algatux\InfluxDbBundle\Events\UdpEvent
Algatux\InfluxDbBundle\InfluxDbBundle
Some classes are now internal:
Algatux\InfluxDbBundle\Events\Listeners\InfluxDbEventListener
Some classes are renames:
InfluxDbEvent
->AbstractInfluxDbEvent
DeferredAbstractInfluxDbEvent
->AbstractDeferredInfluxDbEvent
Those classes should not be used outside of the package scope and can have BC break modifications.
The following keys should now be integers, not string:
Before:
influx_db:
udp_port: '4444'
http_port: '8086'
influx_db:
udp_port: 4444
http_port: 8086
The constructor gets two Database
instance instead of Writer
.
The third PointsCollectionStorage
argument is removed.
This should change nothing because the class should not be called manually.
The abstract InfluxDbEvent
class and all his children now receive only one parameter.
This parameter is an array of Point
classes.
This concerns:
Algatux\InfluxDbBundle\Events\HttpEvent
Algatux\InfluxDbBundle\Events\UdpEvent
Algatux\InfluxDbBundle\Events\DeferredHttpEvent
Algatux\InfluxDbBundle\Events\HttpEventDeferredUdpEvent
Before:
$points = new PointsCollection([new Point(
'test_metric', // name of the measurement
0.64, // the measurement value
['host' => 'server01', 'region' => 'italy'], // optional tags
['cpucount' => rand(1,100), 'memory' => memory_get_usage(true)], // optional additional fields
$time->getTimestamp()
)], Database::PRECISION_SECONDS);
$container
->get('event_dispatcher')
->dispatch(InfluxDbEvent::NAME, new UdpEvent($points));
After:
$points = [new Point(
'test_metric', // name of the measurement
0.64, // the measurement value
['host' => 'server01', 'region' => 'italy'], // optional tags
['cpucount' => rand(1,100), 'memory' => memory_get_usage(true)], // optional additional fields
$time->getTimestamp()
)]);
$container
->get('event_dispatcher')
->dispatch(InfluxDbEvent::NAME, new UdpEvent($points, Database::PRECISION_SECONDS));
InfluxDbEvent::getPoints()
andInfluxDbEvent::getPrecision()
are nowfinal
.
The PointsCollectionStorage
does not exist anymore.
This class had an internal goal, this should not affect your project.
The unused CollectionStorageInterface
does not exist anymore.