Commit graph

4 commits

Author SHA1 Message Date
JustMello
e8174ba192
fix(telemetry): rename and rate limit handleContainerEventsFailure (#16789)
* fix(telemetry): rename handleContainerEventsFailure
Signed-off-by: Dias Tursynbayev <original.justmello1337@gmail.com>
2026-03-25 14:11:05 +01:00
Vladyslav Zhukovskyi
c3561f4e06 feat: add ability to restart kubernetes pod
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
2024-07-15 13:22:30 +03:00
Tim deBoer
554d86f29e chore: use regex, enum, and remove debug
Response to PR feedback:
- Switched to using regex for event matching.
- Use enum for controlling frequency for better readability.
- Remove debug statement.
- Remove unnecessary '?'.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
2024-06-12 22:38:22 -04:00
Tim deBoer
58ae335dc9 feat: telemetry settings in json
Move filtering of telemetry events to a json file so that it is easy to
configure the filtering of events without changing code.

Prior to this, 'list' events were hardcoded to be filtered to once per day per
instance of Podman Desktop. Now, this setting is done via a JSON config file,
and there are three options that we could use for other events:
- disabled (true/false) - totally disable an event
- ratio (0.0-1.0) - only send x% of this event
- frequency - only supports 'dailyPerInstance' to start (for list events),
  but could support things like 'daily' or 'weekly' in the future.

Part of #4970.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
2024-06-12 22:38:22 -04:00