Commit Graph

27 Commits

Author SHA1 Message Date
Owen Knight da220f511b feat(push): allow timeout for HTTP requests
Allows specification of a timeout for HTTP requests which is passed to
curl. This allows the operation to eventually fail if the remote
endpoint does not respond.

Default value for the added parameter maintains existing behaviour.
2023-12-19 23:06:52 +01:00
jinrui 871e782d57 feat(push): Add push support http header customization
Closes: #598
2022-07-09 14:54:16 +02:00
Gregor Jasny 4ea303fa66 feat(push): Add method to delete metrics for instance
Fixes: #303
2021-11-17 09:58:13 +01:00
Gregor Jasny 91dd416d76 chore(core): Introduce Labels type 2021-11-14 18:17:14 +01:00
Gregor Jasny 7aaecba2c3 fix(push): Lock access to collectables_ 2021-11-12 11:34:03 +01:00
Gregor Jasny 882fec94bf chore(push): Refactored curl_wrapper 2021-11-12 11:34:03 +01:00
Stephane Janel ddf7083db2 Rule of Five applied on Gateway, avoid unnecessary copies of std::string 2021-11-11 22:02:06 +01:00
Gregor Jasny f448b2c3de feat(iwyu): Organize includes with include-what-you-use 2021-03-03 22:11:10 +01:00
Gregor Jasny c71ae77cf3 push: Remove expired weak pointers to avoid leak 2020-12-14 21:58:51 +01:00
technicianted 7175a1bfa0 Use mutex to protect http operation 2020-09-24 17:50:09 -07:00
technicianted acb900339e Use indirection to avoid curl include 2020-09-18 18:21:39 -07:00
technicianted cfe7f64349 Reuse curl handle 2020-09-18 16:34:24 -07:00
Gregor Jasny 5a3ee66c7e fix(symbols): Fix Windows and Bazel symbol visibility 2019-10-18 23:19:17 +02:00
Gregor Jasny c216ae7ae9 chore(clang-format): Format everything 2019-10-17 18:13:24 +02:00
Gregor Jasny b6a1b4c2fc Implement symbol visibility build system agnostic
Issue: #223
2019-08-31 19:55:13 +02:00
Gregor Jasny 538ed3af0d Add (shared) library versioning
Closes: #223
2019-08-31 18:21:11 +02:00
Gregor Jasny 4e0814ee3f Merge pull request #243 from jupp0r/refactor-gateway-ctor
Refactor gateway ctor
2018-12-15 16:11:32 +01:00
Gregor Jasny a7b3d24378 Refactor gateway ctor 2018-12-15 15:39:02 +01:00
Gregor Jasny 594c0a11f3 Uninline code from gateway 2018-12-15 15:14:57 +01:00
Jerry Crunctime 4819fd542b Use io forward declarations in header 2018-11-17 14:02:45 +01:00
Gregor Jasny 77790db606 push: Replace cpr with plain libcurl 2018-11-03 20:21:14 +01:00
Gregor Jasny 6783522377 push: Use performHttpRequest for all HTTP operations
That allows to use authentication also for Delete
2018-10-31 22:30:04 +01:00
Gregor Jasny ade31ca133 push: Refactor into prepareSession and getUrl 2018-10-31 22:26:34 +01:00
Jerry Crunchtime e0502287ee Include what is used 2018-10-25 14:48:14 +02:00
Gregor Jasny 93b6493a74 Hide cpr library from public headers 2018-07-06 09:54:27 +02:00
Gregor Jasny c3c606084f Address code review and polish code 2018-07-06 08:04:50 +02:00
Flier Lu 465960979b push metrics to pushgateway 2018-07-06 08:04:50 +02:00