-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
50 lines (42 loc) · 1.2 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# frozen_string_literal: true
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
end
desc 'run all metrics tasks hourly'
task hourly: ['record:hourly_release_metrics', 'record:data_freshness', 'record:image_latency', 'record:spot_price']
namespace :record do
desc 'Record hourly release.first_commit and release.pull_request_age metrics to statsd'
task :hourly_release_metrics do
require './lib/release_metrics'
ReleaseMetrics.record_hourly_metrics
end
desc 'Record timeliness of data-processing results on S3'
task :data_freshness do
require './lib/data_freshness'
DataFreshness.record_metrics
end
desc 'Record latency of image transformations'
task :image_latency do
require './lib/image_latency'
ImageLatency.record_metrics
end
desc 'Record AWS Spot instances price'
task :spot_price do
require './lib/spot_price'
SpotPrice.record_metrics
end
end
namespace :commits do
task :load do
require './lib/commits_loader'
CommitsLoader.load_recent_commits
end
end
namespace :vulnerabilities do
task :extract do
require './lib/vulnerabilities_extract'
VulnerabilitiesExtract.extract_vulnerabilities
end
end