elastic / fleet-server

The Fleet server allows managing a fleet of Elastic Agents.
Other
76 stars 79 forks source link

[8.15](backport #3677) [Fleet] Support download rate in string with unit format #3690

Closed mergify[bot] closed 3 days ago

mergify[bot] commented 3 days ago

Description

Relates https://github.com/elastic/ingest-dev/issues/3446

Elastic-agent are currently not sending download rate as a float but as a string with unit, while this is fixed on the agent side and for older agent, Fleet server should accept both format.

That PR does that, and return a 400 instead of a 500 when an error parsing meta happen.

Todo

elastic-sonarqube[bot] commented 3 days ago

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
69.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube