mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-05 00:40:39 +08:00

* fix: fixed facing issue btn alignment issue * fix: fixed facing issue btn alignment issue * fix: moved intercom help messages to util file
58 lines
1.2 KiB
TypeScript
58 lines
1.2 KiB
TypeScript
import { PANEL_TYPES } from 'constants/queryBuilder';
|
|
import { AlertDef } from 'types/api/alerts/def';
|
|
import { Dashboard, DashboardData } from 'types/api/dashboard/getAll';
|
|
|
|
export const chartHelpMessage = (
|
|
selectedDashboard: Dashboard | undefined,
|
|
graphType: PANEL_TYPES,
|
|
): string => `
|
|
Hi Team,
|
|
|
|
I need help in creating this chart. Here are my dashboard details
|
|
|
|
Name: ${selectedDashboard?.data.title || ''}
|
|
Panel type: ${graphType}
|
|
Dashboard Id: ${selectedDashboard?.uuid || ''}
|
|
|
|
Thanks`;
|
|
|
|
export const dashboardHelpMessage = (
|
|
data: DashboardData | undefined,
|
|
selectedDashboard: Dashboard | undefined,
|
|
): string => `
|
|
Hi Team,
|
|
|
|
I need help with this dashboard. Here are my dashboard details
|
|
|
|
Name: ${data?.title || ''}
|
|
Dashboard Id: ${selectedDashboard?.uuid || ''}
|
|
|
|
Thanks`;
|
|
|
|
export const dashboardListMessage = `Hi Team,
|
|
|
|
I need help with dashboards.
|
|
|
|
Thanks`;
|
|
|
|
export const listAlertMessage = `Hi Team,
|
|
|
|
I need help with managing alerts.
|
|
|
|
Thanks`;
|
|
|
|
export const alertHelpMessage = (
|
|
alertDef: AlertDef,
|
|
ruleId: number,
|
|
): string => `
|
|
Hi Team,
|
|
|
|
I need help in configuring this alert. Here are my alert rule details
|
|
|
|
Name: ${alertDef?.alert || ''}
|
|
Alert Type: ${alertDef?.alertType || ''}
|
|
State: ${(alertDef as any)?.state || ''}
|
|
Alert Id: ${ruleId}
|
|
|
|
Thanks`;
|