summaryrefslogtreecommitdiff
path: root/redfish-core/include/registries/heartbeat_event_message_registry.hpp
blob: b98876ec3b88c6d7d838f7048f8405bd0c4f6d1d (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
// 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 HeartbeatEvent
{
static constexpr Header header = {
    "Copyright 2021-2023 DMTF. All rights reserved.",
    "#MessageRegistry.v1_6_2.MessageRegistry",
    1,
    0,
    1,
    "Heartbeat Event Message Registry",
    "en",
    "This registry defines the messages to use for periodic heartbeat, also known as 'keep alive', events.",
    "HeartbeatEvent",
    "DMTF",
};

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

static constexpr std::array registry =
{
    MessageEntry{
        "RedfishServiceFunctional",
        {
            "An event sent periodically upon request to indicates that the Redfish service is functional.",
            "Redfish service is functional.",
            "OK",
            0,
            {},
            "None.",
        }},

};

enum class Index
{
    redfishServiceFunctional = 0,
};
}; // struct heartbeat_event

[[gnu::constructor]] inline void registerHeartbeatEvent()
{ registerRegistry<HeartbeatEvent>(); }

} // namespace redfish::registries