xref: /openbmc/bmcweb/features/redfish/include/generated/enums/telemetry_service.hpp (revision 40e9b92ec19acffb46f83a6e55b18974da5d708e)
1*40e9b92eSEd Tanous // SPDX-License-Identifier: Apache-2.0
2*40e9b92eSEd Tanous // SPDX-FileCopyrightText: Copyright OpenBMC Authors
30ec8b83dSEd Tanous #pragma once
40ec8b83dSEd Tanous #include <nlohmann/json.hpp>
50ec8b83dSEd Tanous 
60ec8b83dSEd Tanous namespace telemetry_service
70ec8b83dSEd Tanous {
80ec8b83dSEd Tanous // clang-format off
90ec8b83dSEd Tanous 
100ec8b83dSEd Tanous enum class CollectionFunction{
110ec8b83dSEd Tanous     Invalid,
120ec8b83dSEd Tanous     Average,
130ec8b83dSEd Tanous     Maximum,
140ec8b83dSEd Tanous     Minimum,
150ec8b83dSEd Tanous     Summation,
160ec8b83dSEd Tanous };
170ec8b83dSEd Tanous 
180ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(CollectionFunction, {
190ec8b83dSEd Tanous     {CollectionFunction::Invalid, "Invalid"},
200ec8b83dSEd Tanous     {CollectionFunction::Average, "Average"},
210ec8b83dSEd Tanous     {CollectionFunction::Maximum, "Maximum"},
220ec8b83dSEd Tanous     {CollectionFunction::Minimum, "Minimum"},
230ec8b83dSEd Tanous     {CollectionFunction::Summation, "Summation"},
240ec8b83dSEd Tanous });
250ec8b83dSEd Tanous 
260ec8b83dSEd Tanous }
270ec8b83dSEd Tanous // clang-format on
28