Skip to content

Commit

Permalink
ref(uptime): Read uptime monitor status from uptimeStatus
Browse files Browse the repository at this point in the history
Requires #84000
  • Loading branch information
evanpurkhiser committed Jan 24, 2025
1 parent 8d2994d commit 4fed13a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion static/app/views/alerts/list/rules/combinedAlertBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const CronsStatusText: Record<
*/
export default function CombinedAlertBadge({rule}: Props) {
if (rule.type === CombinedAlertType.UPTIME) {
const {statusText, incidentStatus} = UptimeStatusText[rule.status];
const {statusText, incidentStatus} = UptimeStatusText[rule.uptimeStatus];
return (
<Tooltip title={tct('Uptime Alert Status: [statusText]', {statusText})}>
<AlertBadge status={incidentStatus} />
Expand Down
2 changes: 1 addition & 1 deletion static/app/views/alerts/rules/uptime/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export interface UptimeRule {
name: string;
owner: Actor;
projectSlug: string;
status: UptimeMonitorStatus;
timeoutMs: number;
traceSampling: boolean;
uptimeStatus: UptimeMonitorStatus;
url: string;
}
2 changes: 1 addition & 1 deletion tests/js/fixtures/uptimeRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function UptimeRuleFixture(params: Partial<UptimeRule> = {}): UptimeRule
owner: ActorFixture(),
projectSlug: 'project-slug',
environment: 'prod',
status: UptimeMonitorStatus.OK,
uptimeStatus: UptimeMonitorStatus.OK,
timeoutMs: 5000,
url: 'https://sentry.io/',
headers: [],
Expand Down

0 comments on commit 4fed13a

Please sign in to comment.