Skip to content

Commit d641add

Browse files
authored
Metric: define build latency metric (#10053)
Metric: define build latency metric This metric has to be in community because it uses a specific project slug that's not shared with commercial
1 parent d0345bf commit d641add

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

readthedocs/metrics/tasks.py

+14-5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,20 @@ class CommunityMetrics5mTask(Metrics5mTaskBase):
3838
minutes=Metrics5mTaskBase.interval,
3939
),
4040
BuildLatencyMetric(
41-
project='time-test',
42-
queue_name='build-large',
43-
version='latency-test-large',
44-
doc='index',
45-
section='Time',
41+
project="time-test",
42+
queue_name="build-default",
43+
version="latency-test",
44+
doc="index",
45+
section="Time",
46+
doc_url=None,
47+
webhook_url="{api_host}/api/v2/webhook/{project}/{webhook_id}/",
48+
),
49+
BuildLatencyMetric(
50+
project="time-test",
51+
queue_name="build-large",
52+
version="latency-test-large",
53+
doc="index",
54+
section="Time",
4655
doc_url=None,
4756
webhook_url="{api_host}/api/v2/webhook/{project}/{webhook_id}/",
4857
),

0 commit comments

Comments
 (0)