Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

661 B
Raw Blame
import { AlertRuleStats } from 'types/api/alerts/def';

import StatsCard from '../StatsCard/StatsCard';

type TotalTriggeredCardProps = {
	totalCurrentTriggers: AlertRuleStats['totalCurrentTriggers'];
	totalPastTriggers: AlertRuleStats['totalPastTriggers'];
	timeSeries: AlertRuleStats['currentTriggersSeries']['values'];
};

function TotalTriggeredCard({
	totalCurrentTriggers,
	totalPastTriggers,
	timeSeries,
}: TotalTriggeredCardProps): JSX.Element {
	return (
		<StatsCard
			totalCurrentCount={totalCurrentTriggers}
			totalPastCount={totalPastTriggers}
			title="Total Triggered"
			timeSeries={timeSeries}
		/>
	);
}

export default TotalTriggeredCard;