Skip to content

Commit 49912db

Browse files
committed
ref(crons): Use dateAdded over dateCreated
Requires #91665 to be merged first
1 parent d104579 commit 49912db

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

static/app/views/insights/crons/components/monitorCheckIns.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ export function MonitorCheckIns({monitor, monitorEnvs}: Props) {
121121
disabled={!customTimezone}
122122
title={
123123
<DateTime
124-
date={checkIn.dateCreated}
124+
date={checkIn.dateAdded}
125125
forcedTimezone={monitor.config.timezone ?? 'UTC'}
126126
timeZone
127127
seconds
128128
/>
129129
}
130130
>
131-
<DateTime date={checkIn.dateCreated} timeZone seconds />
131+
<DateTime date={checkIn.dateAdded} timeZone seconds />
132132
</Tooltip>
133133
</div>
134134
)}

static/app/views/insights/crons/types.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ export interface MonitorStat {
142142

143143
export interface CheckIn {
144144
/**
145-
* Date the opening check-in was sent
145+
* Date the opening check-in was received.
146146
*/
147-
dateCreated: string;
147+
dateAdded: string;
148148
/**
149149
* Duration (in milliseconds)
150150
*/

tests/js/fixtures/checkIn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function CheckInFixture(params: Partial<CheckIn> = {}): CheckIn {
66
status: CheckInStatus.ERROR,
77
duration: 767,
88
environment: 'production',
9-
dateCreated: '2025-01-01T00:00:00Z',
9+
dateAdded: '2025-01-01T00:00:00Z',
1010
expectedTime: '2025-01-01T00:00:00Z',
1111
id: '97f0e440-317c-5bb5-b5e0-024ca202a61d',
1212
monitorConfig: {

0 commit comments

Comments
 (0)