Skip to content

Commit 7eb5236

Browse files
authored
Merge pull request #2027 from pnvnd/main
fix: invalid widget input
2 parents 529626a + 0b817a5 commit 7eb5236

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

dashboards/github-repo/github_repo_dashboard.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"nrqlQueries": [
4242
{
43-
"accountIds": 0,
43+
"accountId": 0,
4444
"query": "SELECT latest(repository.open_issues_count), latest(repository.watchers_count), latest(repository.forks_count), latest(repository.stargazers_count)\nFROM Log WHERE repository.git_url IS NOT NULL FACET repository.full_name SINCE 1 MONTH AGO LIMIT MAX"
4545
}
4646
],
@@ -67,7 +67,7 @@
6767
},
6868
"nrqlQueries": [
6969
{
70-
"accountIds": 0,
70+
"accountId": 0,
7171
"query": "SELECT repository.full_name, workflow_job.workflow_name, workflow_job.name, workflow_job.status, workflow_job.conclusion, workflow_job.run_attempt\nFROM Log WHERE workflow_job.workflow_name IS NOT NULL SINCE 1 MONTH AGO"
7272
}
7373
],
@@ -94,7 +94,7 @@
9494
},
9595
"nrqlQueries": [
9696
{
97-
"accountIds": 0,
97+
"accountId": 0,
9898
"query": "SELECT repository.full_name, head_commit.modified, head_commit.message, head_commit.author.username, head_commit.author.email\nFROM Log WHERE head_commit.message IS NOT NULL SINCE 1 MONTH AGO"
9999
}
100100
],
@@ -121,7 +121,7 @@
121121
},
122122
"nrqlQueries": [
123123
{
124-
"accountIds": 0,
124+
"accountId": 0,
125125
"query": "SELECT count(workflow_job.workflow_name)\nFROM Log WHERE workflow_job.workflow_name IS NOT NULL FACET workflow_job.name, workflow_job.status SINCE 1 MONTH AGO"
126126
}
127127
],
@@ -151,7 +151,7 @@
151151
},
152152
"nrqlQueries": [
153153
{
154-
"accountIds": 0,
154+
"accountId": 0,
155155
"query": "SELECT count(workflow_job.conclusion) FROM Log WHERE workflow_job.conclusion !='null' FACET workflow_job.conclusion SINCE 1 MONTH AGO"
156156
}
157157
],
@@ -178,7 +178,7 @@
178178
},
179179
"nrqlQueries": [
180180
{
181-
"accountIds": 0,
181+
"accountId": 0,
182182
"query": "SELECT count(issue.comments) FROM Log WHERE issue.title IS NOT NULL FACET issue.title, action, issue.state, issue.body, issue.user.login, comment.reactions.total_count SINCE 1 MONTH AGO"
183183
}
184184
],
@@ -208,7 +208,7 @@
208208
},
209209
"nrqlQueries": [
210210
{
211-
"accountIds": 0,
211+
"accountId": 0,
212212
"query": "SELECT count(workflow_job.conclusion) AS 'Deployment Frequency' FROM Log\nWHERE repository.git_url IS NOT NULL AND workflow_job.status='completed'\nSINCE 1 MONTH AGO COMPARE WITH 1 MONTH AGO TIMESERIES 1 DAY"
213213
}
214214
],
@@ -238,7 +238,7 @@
238238
},
239239
"nrqlQueries": [
240240
{
241-
"accountIds": 0,
241+
"accountId": 0,
242242
"query": "WITH \n aparse(workflow_job.started_at, '*-*-*T*:*:*Z') AS (year1, month1, day1, hour1, minute1, second1) , \nnumeric(month1) - 1 as month1Num,floor((if(month1Num >= 2, numeric(year1), numeric(year1) - 1) - 1970)/4)* 24 * 60 * 60 as leaps1, \nif(month1Num = 1 ,31,\n if(month1Num = 2,59,\n if(month1Num = 3, 90,\n if(month1Num = 4,120,\n if(month1Num = 5,151, \n if(month1Num = 6,181,\n if(month1Num = 7,212,\n if(month1Num = 8,243,\n if(month1Num = 9,273,\n if(month1Num = 10,304,\n if(month1Num = 11,334,\n if(month1Num = 12,365, 0\n)))))))))))) as month1NumDays,\n((numeric(year1) - 1970) * 365 * 24 * 60 * 60) \n+ (month1NumDays * 24 * 60 * 60) \n+ (numeric(day1) - 1) * 24 * 60 * 60 \n+ ((numeric(hour1)) * 3600) \n+ (numeric(minute1)) * 60 \n+ numeric(second1) \n+ leaps1 as start_time, \n aparse(workflow_job.completed_at, '*-*-*T*:*:*Z') AS (year2, month2, day2, hour2, minute2, second2) , \nnumeric(month2) - 1 as month2Num,floor((if(month2Num >= 2, numeric(year2), numeric(year2) - 1) - 1970)/4)* 24 * 60 * 60 as leaps2, \nif(month2Num = 1 ,31,\n if(month2Num = 2,59,\n if(month2Num = 3, 90,\n if(month2Num = 4,120,\n if(month2Num = 5,151, \n if(month2Num = 6,181,\n if(month2Num = 7,212,\n if(month2Num = 8,243,\n if(month2Num = 9,273,\n if(month2Num = 10,304,\n if(month2Num = 11,334,\n if(month2Num = 12,365, 0\n)))))))))))) as month2NumDays,\n((numeric(year2) - 1970) * 365 * 24 * 60 * 60) \n+ (month2NumDays * 24 * 60 * 60) \n+ (numeric(day2) - 1) * 24 * 60 * 60 \n+ ((numeric(hour2)) * 3600) \n+ (numeric(minute2)) * 60 \n+ numeric(second2) \n+ leaps2 as finish_time\n\nSELECT average(finish_time-start_time)/60 FROM Log \nWHERE workflow_job.status = 'completed'\nFACET workflow_job.conclusion SINCE 1 MONTH AGO"
243243
}
244244
],
@@ -280,11 +280,11 @@
280280
},
281281
"nrqlQueries": [
282282
{
283-
"accountIds": 0,
283+
"accountId": 0,
284284
"query": "SELECT count(workflow_job.name) AS 'success' FROM Log WHERE workflow_job.name IS NOT NULL\nAND workflow_job.conclusion = 'success' SINCE 1 MONTH AGO TIMESERIES"
285285
},
286286
{
287-
"accountIds": 0,
287+
"accountId": 0,
288288
"query": "SELECT count(workflow_job.name) AS 'all' FROM Log WHERE workflow_job.name IS NOT NULL\nAND workflow_job.conclusion != 'null' SINCE 1 MONTH AGO TIMESERIES"
289289
}
290290
],

0 commit comments

Comments
 (0)