summaryrefslogtreecommitdiff
path: root/redfish-core/include/registries/log_service_message_registry.hpp
blob: 6294f981adecd74bd334206f6111cd81982e106f (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
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
/****************************************************************
 *                 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_registries.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.
 ***************************************************************/
#include "registries.hpp"

#include <array>

// clang-format off

namespace redfish::registries
{
struct LogService
{
static constexpr Header header = {
    "Copyright 2020-2023 DMTF. All rights reserved.",
    "#MessageRegistry.v1_6_2.MessageRegistry",
    1,
    0,
    1,
    "Log Service Message Registry",
    "en",
    "This registry defines the messages for log service related events.",
    "LogService",
    "DMTF",
};

static constexpr const char* url =
    "https://redfish.dmtf.org/registries/LogService.1.0.1.json";

static constexpr std::array registry =
{
    MessageEntry{
        "DiagnosticDataCollected",
        {
            "Indicates that diagnostic data was collected due to a client invoking the `CollectDiagnosticData` action.",
            "'%1' diagnostic data collected.",
            "OK",
            1,
            {
                "string",
            },
            "None.",
        }},

};

enum class Index
{
    diagnosticDataCollected = 0,
};
}; // struct log_service

[[gnu::constructor]] inline void registerLogService()
{ registerRegistry<LogService>(); }

} // namespace redfish::registries