2013-11-09 21:19:52 +01:00
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
code {{{
|
|
|
|
/**
|
|
|
|
* The type of a service comment.
|
|
|
|
*
|
|
|
|
* @ingroup icinga
|
|
|
|
*/
|
|
|
|
enum CommentType
|
|
|
|
{
|
|
|
|
CommentUser = 1,
|
|
|
|
CommentDowntime = 2,
|
|
|
|
CommentFlapping = 3,
|
|
|
|
CommentAcknowledgement = 4
|
|
|
|
};
|
|
|
|
}}}
|
|
|
|
|
2013-12-18 10:18:57 +01:00
|
|
|
safe class Comment
|
2013-11-09 21:19:52 +01:00
|
|
|
{
|
|
|
|
[state] String id;
|
|
|
|
[state] double entry_time;
|
|
|
|
[state, enum] CommentType entry_type;
|
|
|
|
[state] String author;
|
|
|
|
[state] String text;
|
|
|
|
[state] double expire_time;
|
|
|
|
[state] int legacy_id;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|