const frontend = "app.frontend" ; const server = "app.server" ; export const metricError = { expressRateLimited : `${ server }.error.express-rate-limited` , githubErrorRendered : `${ frontend }.error.github-error-rendered` , failedConnection : `${ server }.error.failed-connection` , queueError : `${ server }.error.queue-error` , queueFailed : `${ server }.error.queue-failed` , blockedByGitHubAllowlist : `${ server }.error.blocked-by-github-allowlist` } ; /**
 * Old Redis queue metrics
 */ export const redisQueueMetrics = { active : `${ server }.queue.active` , completed : `${ server }.queue.completed` , failed : `${ server }.queue.failed` , delayed : `${ server }.queue.delayed` , waiting : `${ server }.queue.waiting` , paused : `${ server }.queue.paused` , repeatable : `${ server }.queue.repeatable` , jobDuration : `${ server }.queue.job-duration` } ; /**
 * New SQS queue metrics
 */ export const sqsQueueMetrics = { received : `${ server }.sqs.queue.received` , completed : `${ server }.sqs.queue.success` , failed : `${ server }.sqs.queue.failed` , sent : `${ server }.sqs.queue.sent` , deleted : `${ server }.sqs.queue.deleted` , duration : `${ server }.sqs.queue.duration` , } ; export const metricHttpRequest = { duration : `${ server }.http.server.requests.duration` , executed : `${ server }.http.server.requests` , github : `${ server }.http.request.github` , jira : `${ server }.http.request.jira` , install : `${ server }.http.request.install` , uninstall : `${ server }.http.request.uninstall` , syncPullRequest : `${ server }.http.request.sync-pull-request` , requestStatusSync : `${ server }.http.request.request-status-syncs` } ; export const metricSyncStatus = { complete : `${ server }.sync-status.complete` , failed : `${ server }.sync-status.failed` , fullSyncDuration : `${ server }.sync.full-sync.duration` , } ; export const metricTaskStatus = { complete : `${ server }.task-status.complete` , failed : `${ server }.task-status.failed` } ; export const metricWebhooks = { webhookEvent : `${ server }.webhooks.webhook-events` , webhookProcessingTimes : `${ server }.webhooks.processing-time.duration-ms` , webhookPayloadSize : `${ server }.webhooks.payload-size.bytes` , webhookProcessed : `${ server }.webhooks.processed` , webhookFailure : `${ server }.webhooks.failed` , webhookLatency : `${ server }.webhooks.processing-time.latency` , } ;