+ >
+ )}
+ >
+ ));
+
+ return (
+ <>
+
+ {pack.name} observability pack contains{' '}
+ {pluralize('alert', pack.alerts?.length ?? 0, true)}. These alerts
+ detect changes in key performance metrics. Integrate these alerts with
+ your favorite tools (like Slack, PagerDuty, etc.) and New Relic will let
+ you know when something needs your attention.
+
+ {alertContent}
+ >
+ );
+};
+
+const renderSynthetics = (pack) => {
+ return (
+
+ {pack.name} observability pack includes{' '}
+ {pluralize('Synthetics check', pack.synthetics?.length ?? 0, true)}. These
+ checks will run automatically to simulate user traffic and ensure your
+ site or API endpoint is not only available, but fully functional.
+
+ );
+};
+
+const renderVisualizations = (pack) => {
+ return (
+
+ {pack.name} observability pack includes{' '}
+ {pluralize('visualization', pack.visualizations?.length ?? 0, true)}.
+ These charts have been customized to represent data in a way that a
+ standard dashboard isn’t able to, so you can monitor what’s essential.
+
+ );
+};
+
+const emptyStateContent = (pack) => {
+ return (
+
- >
- )}
- >
- ))}
-
- {pack.name} observability pack contains{' '}
- {pluralize('dashboard', pack.dashboards?.length ?? 0, true)}.
- These interactive visualizations let you easily explore your
- data, understand context, and resolve problems faster.
-
+ {pack.dashboards
+ ? renderDashboards(pack.dashboards)
+ : emptyStateContent(pack)}
-
- {pack.name} observability pack contains{' '}
- {pluralize('alert', pack.alerts?.length ?? 0, true)}. These
- alerts detect changes in key performance metrics. Integrate
- these alerts with your favorite tools (like Slack, PagerDuty,
- etc.) and New Relic will let you know when something needs
- your attention.
-
+ {pack.alerts
+ ? renderAlerts(pack.alerts)
+ : emptyStateContent(pack)}
-
- {pack.name} observability pack includes{' '}
- {pluralize(
- 'Synthetics check',
- pack.synthetics?.length ?? 0,
- true
- )}
- . These checks will run automatically to simulate user traffic
- and ensure your site or API endpoint is not only available,
- but fully functional.
-
+ {pack.synthetics ? renderSynthetics() : emptyStateContent(pack)}
-
- {pack.name} observability pack includes{' '}
- {pluralize(
- 'visualization',
- pack.visualizations?.length ?? 0,
- true
- )}
- . These charts have been customized to represent data in a way
- that a standard dashboard isn’t able to, so you can monitor
- what’s essential.
-
-
-
-
- Nerdpacks are custom applications that extend the monitoring
- capabilities of the New Relic One platform. {pack.name}
- observability pack includes{' '}
- {pluralize('Nerdpack', pack.nerdpacks?.length ?? 0, true)} to
- make sure you’re monitoring what matters.
-
+ {pack.visualizations
+ ? renderVisualizations()
+ : emptyStateContent(pack)}
@@ -340,5 +403,3 @@ export const pageQuery = graphql`
}
}
`;
-
-export default ObservabilityPackDetails;