<?php

return [
    'overall' => [
        'operational' => 'All services operational',
        'degraded' => 'One service is degraded',
        'down' => 'One service is down',
        // Not "operational": nothing is being watched, and reporting the
        // absence of a check as the absence of a problem is the one thing a
        // status page must never do.
        'unknown' => 'Not fully monitored',
    ],

    'state' => [
        'operational' => 'Operational',
        'degraded' => 'Degraded',
        'down' => 'Down',
        'unknown' => 'Unknown',
    ],

    'component' => [
        'portal' => 'Sign-in & customer area',
        'hosts' => 'Datacentre',
        'instances' => 'Your cloud',
        'provisioning' => 'New orders',
        'backups' => 'Backups',
    ],

    // What is MEASURED, not what is promised. "Delivered without failures" read
    // as a marketing claim on a page whose only job is to be believed — and it
    // says nothing about the last 24 hours, which is what a reader is asking.
    'about' => [
        'portal' => 'Whether sign-in and the customer area respond.',
        'hosts' => 'Whether the machines the instances run on are answering.',
        'instances' => 'Whether the customer instances we run are reachable.',
        'provisioning' => 'Whether orders in the last 24 hours were delivered in full.',
        'backups' => 'Whether every instance has a backup from the last 48 hours.',
    ],

    'detail' => [
        'hosts' => ':down of :total machines not answering.',
        'instances' => ':down of :total instances without a positive signal.',
        'provisioning' => ':failed failed provisioning run(s) in the last 24 hours.',
        'backups' => ':stale of :total instances without a current backup.',
    ],

    // ── The written record ───────────────────────────────────────────────
    'history' => [
        'heading' => 'Uptime over the last :days days',
        'from' => ':days days ago',
        'today' => 'today',
        'uptime' => ':percent % uptime',
        'unmeasured' => 'not recorded',
        'legend_gap' => 'not recorded',
        'day_tooltip' => ':date — :state',
    ],

    'incident' => [
        'ongoing' => 'Ongoing incident',
        'past_heading' => 'Past incidents',
        'none' => 'No incident was reported in the last :days days.',
        'started' => 'Started',
        'resolved' => 'Resolved',
        'duration' => 'Duration',
        'duration_value' => ':minutes minutes',
        'duration_hours' => ':hours h :minutes min',
        'affected' => 'Affected',
        'stage' => [
            'investigating' => 'Investigating',
            'identified' => 'Identified',
            'monitoring' => 'Monitoring',
            'resolved' => 'Resolved',
        ],
        'impact' => [
            'degraded' => 'Degraded',
            'down' => 'Outage',
            'maintenance' => 'Maintenance',
        ],
    ],

    'maintenance' => [
        'heading' => 'Scheduled maintenance',
        'window' => ':from to :to',
        'upcoming' => 'Announced',
        'active' => 'In progress',
    ],

    'page' => [
        'title' => 'Service status',
        'checked_at' => 'As of :time',
        'timezone' => 'All times in :zone.',
        'subscribe' => 'We notify affected customers by email when an incident occurs.',
    ],
];
