Mark events as being automatically generated

This commit is contained in:
D. Berge
2023-09-30 01:42:27 +02:00
parent 4ec37539bf
commit 180590b411

View File

@@ -59,7 +59,7 @@ class DetectSoftStart {
tstamp: cur.tstamp, tstamp: cur.tstamp,
remarks: "Soft start", remarks: "Soft start",
labels: [ "Daily", "Guns", "Prod" ], labels: [ "Daily", "Guns", "Prod" ],
meta: { author: `*${this.constructor.name}*`} meta: {auto: true, author: `*${this.constructor.name}*`}
}; };
DEBUG("Posting event", projectId, payload); DEBUG("Posting event", projectId, payload);
await event.post(projectId, payload); await event.post(projectId, payload);
@@ -74,7 +74,7 @@ class DetectSoftStart {
tstamp: cur.tstamp, tstamp: cur.tstamp,
remarks: "Full volume", remarks: "Full volume",
labels: [ "Daily", "Guns", "Prod" ], labels: [ "Daily", "Guns", "Prod" ],
meta: { author: `*${this.constructor.name}*`} meta: {auto: true, author: `*${this.constructor.name}*`}
}; };
DEBUG("Posting event", projectId, payload); DEBUG("Posting event", projectId, payload);
await event.post(projectId, payload); await event.post(projectId, payload);