import { Entity } from '@backstage/catalog-model' ; export const PROMETHEUS_RULE_ANNOTATION = 'prometheus.io/rule' ; export const PROMETHEUS_ALERT_ANNOTATION = 'prometheus.io/alert' ; export const isPrometheusGraphAvailable = ( entity ) => Boolean ( entity ?. metadata . annotations ?. [ PROMETHEUS_RULE_ANNOTATION ] ) ; export const isPrometheusAlertAvailable = ( entity ) => Boolean ( entity ?. metadata . annotations ?. [ PROMETHEUS_ALERT_ANNOTATION ] ) ;