cronwatch 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +268 -0
  4. data/lib/cronwatch/abort_signal.rb +45 -0
  5. data/lib/cronwatch/active_record.rb +11 -0
  6. data/lib/cronwatch/alerts/console.rb +22 -0
  7. data/lib/cronwatch/alerts/custom.rb +26 -0
  8. data/lib/cronwatch/alerts/discord.rb +52 -0
  9. data/lib/cronwatch/alerts/slack.rb +58 -0
  10. data/lib/cronwatch/alerts/webhook.rb +46 -0
  11. data/lib/cronwatch/client.rb +925 -0
  12. data/lib/cronwatch/cron_pattern.rb +277 -0
  13. data/lib/cronwatch/duration.rb +77 -0
  14. data/lib/cronwatch/environment.rb +29 -0
  15. data/lib/cronwatch/evaluate.rb +345 -0
  16. data/lib/cronwatch/flight.rb +42 -0
  17. data/lib/cronwatch/format.rb +89 -0
  18. data/lib/cronwatch/http.rb +52 -0
  19. data/lib/cronwatch/job.rb +144 -0
  20. data/lib/cronwatch/js.rb +188 -0
  21. data/lib/cronwatch/monitored.rb +259 -0
  22. data/lib/cronwatch/output.rb +199 -0
  23. data/lib/cronwatch/rails/active_job.rb +55 -0
  24. data/lib/cronwatch/rails/check_job.rb +32 -0
  25. data/lib/cronwatch/rails/railtie.rb +37 -0
  26. data/lib/cronwatch/rails/tasks.rb +12 -0
  27. data/lib/cronwatch/rails.rb +35 -0
  28. data/lib/cronwatch/schedule.rb +191 -0
  29. data/lib/cronwatch/scheduler.rb +763 -0
  30. data/lib/cronwatch/serialize.rb +51 -0
  31. data/lib/cronwatch/sidekiq.rb +129 -0
  32. data/lib/cronwatch/stats.rb +23 -0
  33. data/lib/cronwatch/stores/active_record.rb +397 -0
  34. data/lib/cronwatch/stores/memory.rb +163 -0
  35. data/lib/cronwatch/ticker.rb +59 -0
  36. data/lib/cronwatch/triage/anthropic.rb +134 -0
  37. data/lib/cronwatch/types.rb +341 -0
  38. data/lib/cronwatch/version.rb +6 -0
  39. data/lib/cronwatch/walker.rb +137 -0
  40. data/lib/cronwatch/web/app.rb +484 -0
  41. data/lib/cronwatch/web/html.rb +314 -0
  42. data/lib/cronwatch/web.rb +17 -0
  43. data/lib/cronwatch/zone.rb +72 -0
  44. data/lib/cronwatch.rb +96 -0
  45. data/lib/generators/cronwatch/install/install_generator.rb +176 -0
  46. metadata +104 -0
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cronwatch
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ platform: ruby
6
+ authors:
7
+ - Jon C. Phillips
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: fugit
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '1.11'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '1.11'
26
+ description: 'Wrap a job, run a check, get told when it is missed, failed, stuck,
27
+ slow or over budget. The Ruby port of @cronwatch/sdk: same rules, same alerts, same
28
+ stored rows.'
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - LICENSE
34
+ - README.md
35
+ - lib/cronwatch.rb
36
+ - lib/cronwatch/abort_signal.rb
37
+ - lib/cronwatch/active_record.rb
38
+ - lib/cronwatch/alerts/console.rb
39
+ - lib/cronwatch/alerts/custom.rb
40
+ - lib/cronwatch/alerts/discord.rb
41
+ - lib/cronwatch/alerts/slack.rb
42
+ - lib/cronwatch/alerts/webhook.rb
43
+ - lib/cronwatch/client.rb
44
+ - lib/cronwatch/cron_pattern.rb
45
+ - lib/cronwatch/duration.rb
46
+ - lib/cronwatch/environment.rb
47
+ - lib/cronwatch/evaluate.rb
48
+ - lib/cronwatch/flight.rb
49
+ - lib/cronwatch/format.rb
50
+ - lib/cronwatch/http.rb
51
+ - lib/cronwatch/job.rb
52
+ - lib/cronwatch/js.rb
53
+ - lib/cronwatch/monitored.rb
54
+ - lib/cronwatch/output.rb
55
+ - lib/cronwatch/rails.rb
56
+ - lib/cronwatch/rails/active_job.rb
57
+ - lib/cronwatch/rails/check_job.rb
58
+ - lib/cronwatch/rails/railtie.rb
59
+ - lib/cronwatch/rails/tasks.rb
60
+ - lib/cronwatch/schedule.rb
61
+ - lib/cronwatch/scheduler.rb
62
+ - lib/cronwatch/serialize.rb
63
+ - lib/cronwatch/sidekiq.rb
64
+ - lib/cronwatch/stats.rb
65
+ - lib/cronwatch/stores/active_record.rb
66
+ - lib/cronwatch/stores/memory.rb
67
+ - lib/cronwatch/ticker.rb
68
+ - lib/cronwatch/triage/anthropic.rb
69
+ - lib/cronwatch/types.rb
70
+ - lib/cronwatch/version.rb
71
+ - lib/cronwatch/walker.rb
72
+ - lib/cronwatch/web.rb
73
+ - lib/cronwatch/web/app.rb
74
+ - lib/cronwatch/web/html.rb
75
+ - lib/cronwatch/zone.rb
76
+ - lib/generators/cronwatch/install/install_generator.rb
77
+ homepage: https://cronwatch.dev
78
+ licenses:
79
+ - MIT
80
+ metadata:
81
+ homepage_uri: https://cronwatch.dev
82
+ source_code_uri: https://github.com/phillips-jon/cronwatch/tree/main/packages/ruby
83
+ changelog_uri: https://github.com/phillips-jon/cronwatch/releases
84
+ bug_tracker_uri: https://github.com/phillips-jon/cronwatch/issues
85
+ documentation_uri: https://cronwatch.dev/docs/ruby/
86
+ rubygems_mfa_required: 'true'
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '3.2'
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ requirements: []
101
+ rubygems_version: 3.6.9
102
+ specification_version: 4
103
+ summary: Cron and scheduled-job monitoring that lives inside your app.
104
+ test_files: []