Commit 84c35e6
authored
feat(enterprise): implement logs command for cluster event retrieval (#241)
* feat(enterprise): implement logs command for cluster event retrieval
- Add LogsCommands enum with List subcommand for retrieving cluster logs
- Support query parameters: stime, etime, order, limit, offset
- Fix LogEntry structure to match actual API (time, type, extra fields)
- Update LogsQuery to use correct API parameters
- Add comprehensive tests for all query parameter combinations
- Wire up command in main enterprise command structure
Note: Only implements GET /v1/logs endpoint as that's the only logs endpoint
that exists in the Redis Enterprise API. Issue #157 requests features that
don't exist in the API (node/database specific logs, log files, rotation, etc.)
* chore: clean up logs implementation
- Remove unnecessary #[allow(dead_code)] attribute
- Add module documentation
* chore: add #[allow(dead_code)] to match cloud implementation pattern
Suppress false positive warnings for functions that are used by the binary
but appear unused from the library's perspective.1 parent 46f7607 commit 84c35e6
File tree
7 files changed
+280
-250
lines changed- crates
- redis-enterprise
- src
- tests
- redisctl/src
- commands/enterprise
7 files changed
+280
-250
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | | - | |
| 34 | + | |
38 | 35 | | |
39 | | - | |
| 36 | + | |
40 | 37 | | |
41 | | - | |
| 38 | + | |
42 | 39 | | |
43 | | - | |
| 40 | + | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 63 | | |
0 commit comments