mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ci-stats] ship buildkiteJobId with metrics and support backfilling (#137123)
This commit is contained in:
parent
710432aa0a
commit
0154f75445
2 changed files with 6 additions and 3 deletions
|
@ -132,11 +132,13 @@ export class CiStatsClient {
|
|||
});
|
||||
};
|
||||
|
||||
getPrReport = async (buildId: string) => {
|
||||
getPrReport = async (buildId: string, backfillJobIds: string[] = []) => {
|
||||
const resp = await this.request<CiStatsPrReport>({
|
||||
path: `v2/pr_report`,
|
||||
params: {
|
||||
path: `v3/pr_report`,
|
||||
method: 'post',
|
||||
body: {
|
||||
buildId,
|
||||
backfillJobIds,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -244,6 +244,7 @@ export class CiStatsReporter {
|
|||
body: {
|
||||
buildId,
|
||||
defaultMeta: options?.defaultMeta,
|
||||
buildkiteJobId: process.env.BUILDKITE_JOB_ID,
|
||||
metrics,
|
||||
},
|
||||
bodyDesc: `metrics: ${metrics
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue