<?php

return [
    'eyebrow' => 'Operations',
    'title' => 'Alerts',
    'subtitle' => 'Threshold rules + notifications for the fleet',

    // New rule
    'new_rule' => 'New rule',
    'name_label' => 'Name',
    'name_placeholder' => 'High CPU, server offline …',
    'metric_label' => 'Metric',
    'comparator_label' => 'Condition',
    'threshold_label' => 'Threshold',
    'scope_label' => 'Scope',
    'scope_target_label' => 'Target',
    'create' => 'Create',

    // Metrics
    'metric_cpu' => 'CPU',
    'metric_mem' => 'Memory',
    'metric_disk' => 'Disk',
    'metric_load' => 'Load',
    'metric_offline' => 'Server offline',

    // Comparators
    'comparator_gt' => 'greater than',
    'comparator_lt' => 'less than',

    // Scopes
    'scope_all' => 'Whole fleet',
    'scope_group' => 'Group',
    'scope_server' => 'Single server',

    // Rules list
    'rules_title' => 'Rules',
    'no_rules_title' => 'No rules',
    'no_rules' => 'No alert rules yet. Create the first one above.',
    'enabled' => 'Enabled',
    'disabled' => 'Disabled',
    'rule_summary_offline' => ':scope · server offline',
    'rule_summary' => ':scope · :metric :comparator :threshold',

    // Incidents
    'incidents_title' => 'Active alerts',
    'incidents_subtitle' => 'currently firing',
    'no_incidents_title' => 'All quiet',
    'no_incidents' => 'No active alerts right now.',
    'incident_value' => 'Value: :value',
    'incident_since' => 'since :time',

    // Channels
    'channels' => 'Channels',
    'channels_title' => 'Notification channels',
    'channels_subtitle' => 'where alerts go',
    'email_label' => 'E-mail recipients',
    'email_hint' => 'One address per line. Empty = all admins.',
    'webhooks_label' => 'Webhooks',
    'webhooks_hint' => 'One URL per line (Slack/Discord/Mattermost/custom).',
    'save' => 'Save',

    // Toasts
    'rule_created' => 'Rule “:name” created.',
    'rule_deleted' => 'Rule “:name” deleted.',
    'channels_saved' => 'Channels saved.',
    'webhook_invalid' => 'Invalid or unsafe webhook URL: :url (only http/https to public hosts).',

    // Delete confirm
    'delete_heading' => 'Delete rule',
    'delete_body' => 'The rule “:name” and its alert history will be deleted.',

    // Mail
    'mail_subject_firing' => 'ALERT',
    'mail_subject_resolved' => 'RESOLVED',
    'mail_firing_line' => 'An alert has fired.',
    'mail_resolved_line' => 'An alert has resolved.',
    'mail_server' => 'Server',
    'mail_rule' => 'Rule',
    'mail_metric' => 'Metric',
    'mail_value' => 'Value',
    'mail_threshold' => 'Threshold',
];
