2012-07-09 20:32:02 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* Icinga 2 *
|
|
|
|
* Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/) *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License *
|
|
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
|
|
* of the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
******************************************************************************/
|
|
|
|
|
2012-06-25 14:13:24 +02:00
|
|
|
#ifndef CHECKRESULT_H
|
|
|
|
#define CHECKRESULT_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2012-07-02 19:09:45 +02:00
|
|
|
class I2_CIB_API CheckResult : public MessagePart
|
2012-06-25 14:13:24 +02:00
|
|
|
{
|
|
|
|
public:
|
2012-07-03 10:39:17 +02:00
|
|
|
CheckResult(void);
|
|
|
|
CheckResult(const MessagePart& message);
|
2012-06-25 14:13:24 +02:00
|
|
|
|
2012-06-27 23:38:50 +02:00
|
|
|
void SetScheduleStart(time_t ts);
|
|
|
|
time_t GetScheduleStart(void) const;
|
2012-06-25 14:13:24 +02:00
|
|
|
|
2012-06-27 23:38:50 +02:00
|
|
|
void SetScheduleEnd(time_t ts);
|
|
|
|
time_t GetScheduleEnd(void) const;
|
|
|
|
|
|
|
|
void SetExecutionStart(time_t ts);
|
|
|
|
time_t GetExecutionStart(void) const;
|
|
|
|
|
|
|
|
void SetExecutionEnd(time_t ts);
|
|
|
|
time_t GetExecutionEnd(void) const;
|
2012-06-25 14:13:24 +02:00
|
|
|
|
2012-06-25 15:42:46 +02:00
|
|
|
void SetState(ServiceState state);
|
|
|
|
ServiceState GetState(void) const;
|
2012-06-25 14:13:24 +02:00
|
|
|
|
|
|
|
void SetOutput(string output);
|
|
|
|
string GetOutput(void) const;
|
|
|
|
|
2012-06-29 14:14:51 +02:00
|
|
|
void SetPerformanceDataRaw(const string& pd);
|
|
|
|
string GetPerformanceDataRaw(void) const;
|
|
|
|
|
2012-06-25 14:13:24 +02:00
|
|
|
void SetPerformanceData(const Dictionary::Ptr& pd);
|
|
|
|
Dictionary::Ptr GetPerformanceData(void) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CHECKRESULT_H */
|