summaryrefslogtreecommitdiff
path: root/redfish-core/include/registries/task_event_message_registry.hpp
blob: bbc51e782ed9e65d2ae3b41689f4f8989ba83ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/****************************************************************
 *                 READ THIS WARNING FIRST
 * This is an auto-generated header which contains definitions
 * for Redfish DMTF defined messages.
 * DO NOT modify this registry outside of running the
 * parse_regisries.py script.  The definitions contained within
 * this file are owned by DMTF.  Any modifications to these files
 * should be first pushed to the relevant registry in the DMTF
 * github organization.
 ***************************************************************/
#pragma once
#include <registries.hpp>

// clang-format off

namespace redfish::registries::task_event
{
const Header header = {
    "Copyright 2014-2020 DMTF in cooperation with the Storage Networking Industry Association (SNIA). All rights reserved.",
    "#MessageRegistry.v1_4_1.MessageRegistry",
    "TaskEvent.1.0.3",
    "Task Event Message Registry",
    "en",
    "This registry defines the messages for task related events.",
    "TaskEvent",
    "1.0.3",
    "DMTF",
};
constexpr const char* url =
    "https://redfish.dmtf.org/registries/TaskEvent.1.0.3.json";

constexpr std::array<MessageEntry, 9> registry =
{
    MessageEntry{
        "TaskAborted",
        {
            "A task has completed with errors.",
            "The task with Id '%1' has completed with errors.",
            "Critical",
            "Critical",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "TaskCancelled",
        {
            "A task has been cancelled.",
            "Work on the task with Id '%1' has been halted prior to completion due to an explicit request.",
            "Warning",
            "Warning",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "TaskCompletedOK",
        {
            "A task has completed.",
            "The task with Id '%1' has completed.",
            "OK",
            "OK",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "TaskCompletedWarning",
        {
            "A task has completed with warnings.",
            "The task with Id '%1' has completed with warnings.",
            "Warning",
            "Warning",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "TaskPaused",
        {
            "A task has been paused.",
            "The task with Id '%1' has been paused.",
            "Warning",
            "Warning",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "TaskProgressChanged",
        {
            "A task has changed progress.",
            "The task with Id '%1' has changed to progress %2 percent complete.",
            "OK",
            "OK",
            2,
            {
                "string",
                "number",
            },
            "None.",
        }},
    MessageEntry{
        "TaskRemoved",
        {
            "A task has been removed.",
            "The task with Id '%1' has been removed.",
            "Warning",
            "Warning",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "TaskResumed",
        {
            "A task has been resumed.",
            "The task with Id '%1' has been resumed.",
            "OK",
            "OK",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "TaskStarted",
        {
            "A task has started.",
            "The task with Id '%1' has started.",
            "OK",
            "OK",
            1,
            {
                "string",
            },
            "None.",
        }},

};

enum class Index
{
    taskAborted = 0,
    taskCancelled = 1,
    taskCompletedOK = 2,
    taskCompletedWarning = 3,
    taskPaused = 4,
    taskProgressChanged = 5,
    taskRemoved = 6,
    taskResumed = 7,
    taskStarted = 8,
};
} // namespace redfish::registries::task_event