2012-07-01 13:08:07 +02:00
|
|
|
#ifndef HOSTGROUP_H
|
|
|
|
#define HOSTGROUP_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2012-07-02 19:09:45 +02:00
|
|
|
class I2_CIB_API HostGroup : public ConfigObjectAdapter
|
2012-07-01 13:08:07 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
HostGroup(const ConfigObject::Ptr& configObject)
|
|
|
|
: ConfigObjectAdapter(configObject)
|
2012-07-09 16:38:01 +02:00
|
|
|
{
|
|
|
|
assert(GetType() == "hostgroup");
|
|
|
|
}
|
2012-07-01 13:08:07 +02:00
|
|
|
|
|
|
|
static bool Exists(const string& name);
|
|
|
|
static HostGroup GetByName(const string& name);
|
|
|
|
|
|
|
|
string GetAlias(void) const;
|
|
|
|
string GetNotesUrl(void) const;
|
|
|
|
string GetActionUrl(void) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* HOSTGROUP_H */
|