elastic / fleet-server

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

[Fleet] Support download rate in string with unit format #3677

Closed nchaulet closed 3 months ago

nchaulet commented 3 months 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

nchaulet commented 3 months ago

@michel-laterman I think it will make sense to backport this 8.15 no?

elastic-sonarqube[bot] commented 3 months 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