Skip to content

Open-source status page, incident response and uptime monitoring

7.1 KB
Raw Blame
export type EventProps = {
  name: string;
  channel: string;
};

export const Events = {
  CreateUser: {
    name: "user_created",
    channel: "registration",
  },
  SkipOnboarding: {
    name: "onboarding_skipped",
    channel: "onboarding",
  },
  CompleteOnboarding: {
    name: "onboarding_completed",
    channel: "onboarding",
  },
  SignInUser: {
    name: "user_signed_in",
    channel: "login",
  },
  SignOutUser: {
    name: "user_signed_out",
    channel: "login",
  },
  CreateMonitor: {
    name: "monitor_created",
    channel: "monitor",
  },
  UpdateMonitor: {
    name: "monitor_updated",
    channel: "monitor",
  },
  DeleteMonitor: {
    name: "monitor_deleted",
    channel: "monitor",
  },
  CloneMonitor: {
    name: "monitor_cloned",
    channel: "monitor",
  },
  TestMonitor: {
    name: "monitor_tested",
    channel: "monitor",
  },
  CreatePage: {
    name: "page_created",
    channel: "page",
  },
  UpdatePage: {
    name: "page_updated",
    channel: "page",
  },
  UpdatePageDomain: {
    name: "page_domain_updated",
    channel: "page",
  },
  DeletePage: {
    name: "page_deleted",
    channel: "page",
  },
  DeletePageComponent: {
    name: "page_component_deleted",
    channel: "page",
  },
  UpdatePageComponentOrder: {
    name: "page_component_order_updated",
    channel: "page",
  },
  SubscribePage: {
    name: "user_subscribed",
    channel: "page",
  },
  VerifySubscribePage: {
    name: "user_subscribe_verified",
    channel: "page",
  },
  ValidateEmailDomain: {
    name: "email_domain_validated",
    channel: "page",
  },
  CreateReport: {
    name: "report_created",
    channel: "report",
  },
  UpdateReport: {
    name: "report_updated",
    channel: "report",
  },
  DeleteReport: {
    name: "report_deleted",
    channel: "report",
  },
  CreateReportUpdate: {
    name: "report_update_created",
    channel: "report",
  },
  UpdateReportUpdate: {
    name: "report_update_updated",
    channel: "report",
  },
  DeleteReportUpdate: {
    name: "report_update_deleted",
    channel: "report",
  },
  NotifyReport: {
    name: "report_notified",
    channel: "report",
  },
  CreateMaintenance: {
    name: "maintenance_created",
    channel: "maintenance",
  },
  UpdateMaintenance: {
    name: "maintenance_updated",
    channel: "maintenance",
  },
  DeleteMaintenance: {
    name: "maintenance_deleted",
    channel: "maintenance",
  },
  CreateMaintenanceUpdate: {
    name: "maintenance_update_created",
    channel: "maintenance",
  },
  UpdateMaintenanceUpdate: {
    name: "maintenance_update_updated",
    channel: "maintenance",
  },
  DeleteMaintenanceUpdate: {
    name: "maintenance_update_deleted",
    channel: "maintenance",
  },
  NotifyMaintenance: {
    name: "maintenance_notified",
    channel: "maintenance",
  },
  CreateNotification: {
    name: "notification_created",
    channel: "notification",
  },
  UpdateNotification: {
    name: "notification_updated",
    channel: "notification",
  },
  TestNotification: {
    name: "notification_tested",
    channel: "notification",
  },
  DeleteNotification: {
    name: "notification_deleted",
    channel: "notification",
  },
  CreatePrivateLocation: {
    name: "private_location_created",
    channel: "private_location",
  },
  UpdatePrivateLocation: {
    name: "private_location_updated",
    channel: "private_location",
  },
  DeletePrivateLocation: {
    name: "private_location_deleted",
    channel: "private_location",
  },
  AcknowledgeIncident: {
    name: "incident_acknowledged",
    channel: "incident",
  },
  ResolveIncident: {
    name: "incident_resolved",
    channel: "incident",
  },
  UpdateIncident: {
    name: "incident_updated",
    channel: "incident",
  },
  DeleteIncident: {
    name: "incident_deleted",
    channel: "incident",
  },
  DeclareManagedIncident: {
    name: "incident_declared",
    channel: "incident_management",
  },
  UpdateManagedIncident: {
    name: "incident_edited",
    channel: "incident_management",
  },
  ChangeManagedIncidentStatus: {
    name: "incident_status_changed",
    channel: "incident_management",
  },
  AddManagedIncidentNote: {
    name: "incident_note_added",
    channel: "incident_management",
  },
  LinkManagedIncidentReport: {
    name: "incident_report_linked",
    channel: "incident_management",
  },
  CloseManagedIncident: {
    name: "incident_closed",
    channel: "incident_management",
  },
  DraftManagedPostmortem: {
    name: "postmortem_drafted",
    channel: "incident_management",
  },
  ApproveManagedPostmortem: {
    name: "postmortem_approved",
    channel: "incident_management",
  },
  DeleteManagedIncident: {
    name: "incident_removed",
    channel: "incident_management",
  },
  InviteUser: {
    name: "user_invited",
    channel: "team",
  },
  DeleteInvite: {
    name: "invitation_deleted",
    channel: "team",
  },
  AcceptInvite: {
    name: "invitation_accepted",
    channel: "team",
  },
  RemoveUser: {
    name: "user_removed",
    channel: "team",
  },
  TransferOwnership: {
    name: "ownership_transferred",
    channel: "team",
  },
  CreateAPI: {
    name: "api_key_created",
    channel: "api_key",
  },
  RevokeAPI: {
    name: "api_key_revoked",
    channel: "api_key",
  },
  UpdateWorkspace: {
    name: "workspace_updated",
    channel: "workspace",
  },
  AddFeature: {
    name: "feature_added",
    channel: "billing",
  },
  UpgradeWorkspace: {
    name: "workspace_upgraded",
    channel: "billing",
  },
  StripePortal: {
    name: "stripe_portal",
    channel: "billing",
  },
  DowngradeWorkspace: {
    name: "workspace_downgraded",
    channel: "billing",
  },
  StartTrial: {
    name: "trial_started",
    channel: "billing",
  },
  SkipTrial: {
    name: "trial_skipped",
    channel: "billing",
  },
  ConvertTrial: {
    name: "trial_converted",
    channel: "billing",
  },
  AddTrialPaymentMethod: {
    name: "trial_payment_method_added",
    channel: "billing",
  },
  NotifyTrialEnding: {
    name: "trial_ending_notified",
    channel: "billing",
  },
  ExpireTrial: {
    name: "trial_expired",
    channel: "billing",
  },
  StartCheckout: {
    name: "checkout_started",
    channel: "billing",
  },
  ReachLimit: {
    name: "limit_reached",
    channel: "billing",
  },
  PreviewImport: {
    name: "import_previewed",
    channel: "import",
  },
  RunImport: {
    name: "import_completed",
    channel: "import",
  },
  InstallSlackAgent: {
    name: "slack_agent_installed",
    channel: "integration",
  },
  EnableSso: {
    name: "sso_enabled",
    channel: "workspace",
  },
  SubmitFeedback: {
    name: "feedback_submitted",
    channel: "feedback",
  },
  GlobalSpeedChecker: {
    name: "global_speed_checker",
    channel: "checker",
  },
  MCPHealthCheck: {
    name: "mcp_health_check",
    channel: "checker",
  },
  CdnChecker: {
    name: "cdn_checker",
    channel: "checker",
  },
  McpRequest: {
    name: "mcp_request",
    channel: "mcp",
  },
  ApiRequest: {
    name: "api_request",
    channel: "api",
  },
  CliCommand: {
    name: "cli_command",
    channel: "cli",
  },
  ContentCopied: {
    name: "content_copied",
    channel: "content",
  },
} as const satisfies Record<string, EventProps>;