blob: 3bb9cfc79097620b403cf29337fa18e45c6d9b0a [file] [log] [blame]
#pragma once
#include <cstdint>
#include <nlohmann/json.hpp>
namespace redundancy
{
// clang-format off
enum class RedundancyType : std::uint8_t{
Invalid,
Failover,
NPlusM,
Sharing,
Sparing,
NotRedundant,
};
NLOHMANN_JSON_SERIALIZE_ENUM(RedundancyType, {
{RedundancyType::Invalid, "Invalid"},
{RedundancyType::Failover, "Failover"},
{RedundancyType::NPlusM, "NPlusM"},
{RedundancyType::Sharing, "Sharing"},
{RedundancyType::Sparing, "Sparing"},
{RedundancyType::NotRedundant, "NotRedundant"},
});
} // namespace redundancy
// clang-format on