https://forge.softwareheritage.org/source/swh-scheduler.git
Raw File
Tip revision: 761bd638b2a89add50944e91b4c0048cf104622c authored by Jenkins for Software Heritage on 14 December 2022, 13:00:44 UTC
Updated backport on buster-swh from debian/1.4.0-1_swh1 (unstable-swh)
Tip revision: 761bd63
elastic-template.json
{
    "order": 0,
    "index_patterns": ["swh-tasks-*"],
    "settings": {
        "index": {
            "codec": "best_compression",
            "refresh_interval": "1s",
            "number_of_shards": 1
        }
    },
    "mappings" : {
        "task" : {
            "_source" : { "enabled": true},
            "properties": {
                "task_id": {"type": "double"},
                "task_policy": {"type": "text"},
                "task_status": {"type": "text"},
                "task_run_id": {"type": "double"},
                "arguments": {
                    "type": "object",
                    "properties" : {
                        "args": {
                            "type": "nested",
                            "dynamic": false
                        },
                        "kwargs": {
                            "type": "text"
                        }
                    }
                },
                "type": {"type": "text"},
                "backend_id": {"type": "text"},
                "metadata": {
                    "type": "object",
                    "enabled" : false
                },
                "scheduled":  {
                    "type": "date",
                    "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||strict_date_optional_time||epoch_millis"
                },
                "started":  {
                    "type": "date",
                    "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||strict_date_optional_time||epoch_millis"
                },
                "ended":  {
                    "type": "date",
                    "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||strict_date_optional_time||epoch_millis"
                }
            }
        }
    },
    "aliases": {}
}
back to top