Commit Graph

23 Commits

Author SHA1 Message Date
Thomas Gelf be8c1101f2 travis: use phpcs 3.5.2 2019-11-28 07:13:22 +01:00
Thomas Gelf 44af7b3ae3 RestApiClient: do not send Connection: close...
...just throw away the curl handle. Otherwise Icinga v2.9 fails
2018-11-27 19:02:39 +01:00
Thomas Gelf 01f82b2d48 RestApiClient: use correct RuntimeException 2018-11-22 08:25:33 +01:00
Thomas Gelf 9aab203f59 CoreApi: disconnect after each request for...
...specific Icinga 2 versions

fixes #1695
fixes #1696
2018-11-14 13:25:07 +01:00
Thomas Gelf 24a7dbcac8 RestApi: remove outdated code, clean up, allow...
...to disconnect curl on demand or after each request
2018-11-14 08:19:25 +01:00
Thomas Gelf b9ff77b4bb DeploymentLog: deal with Icinga 2 race condition...
...clean up our DB and Icinga 2 stages via API

fixes #1488
2018-10-05 14:55:48 +02:00
Thomas Gelf 3e46602802 Json: wrap json_encode to emit errors
refs #1445
2018-03-28 18:16:30 +02:00
Thomas Gelf e1b420d4c4 CoreApi: allow to stream raw events
fixes #744
2017-01-24 11:14:12 +01:00
Thomas Gelf 5c158e708e RestApiClient: re-add lost method 2017-01-19 22:49:51 +01:00
Thomas Gelf b7a10d296c phpcs: mostly new PSR-2 SpacingAfter/Before checks 2017-01-13 20:54:52 +01:00
Thomas Gelf ee0def7d2b Lots of files: make IDE users happy 2016-11-01 18:28:36 +01:00
Thomas Gelf a1b7cd216b RestApiClient: catch 401 errors
fixes #11286
2016-03-06 21:43:32 +01:00
Thomas Gelf 218e67527b RestApiClient: fail without curl
fixes #10929
2016-03-06 21:12:59 +01:00
Thomas Gelf 4bc5afb2f8 library/Director: fix PSR2 complaints 2016-02-26 11:58:37 +01:00
Thomas Gelf 2d265caf95 RestApiClient: wait max 3sec for connection 2016-02-26 08:18:07 +01:00
Thomas Gelf e4f0f97d4f CoreApi: clean up the streaming prototype 2016-02-01 15:23:30 +01:00
Thomas Gelf 41d9179389 CoreApi: testing streams 2016-01-19 18:01:21 +01:00
Thomas Gelf 998402e4f4 RestApiClient: fix auth headers for curl 2015-12-23 17:28:17 +01:00
Thomas Gelf 89971486f7 RestApiClient: use curl on PHP 5.3 2015-12-23 17:12:53 +01:00
Thomas Gelf e302632196 RestApiClient: use Benchmark 2015-11-09 18:31:26 +01:00
Thomas Gelf a74381ebc9 RestApiClient: use Accept header for non-raw requests 2015-11-06 09:31:40 +01:00
Thomas Gelf 9ea08647dc RestApiClient: handle non-json errors 2015-09-29 19:01:25 +02:00
Thomas Gelf 68677e610f Core: import basic api implementation 2015-09-14 16:23:43 +02:00