<commit_before>/*
** Copyright 2009-2013 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker 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 Centreon Broker. If not, see
** <http://www.gnu.org/licenses/>.
*/

#ifndef CCB_NEB_DOWNTIME_HH
#  define CCB_NEB_DOWNTIME_HH

#  include <QString>
#  include "com/centreon/broker/io/data.hh"
#  include "com/centreon/broker/namespace.hh"
#  include "com/centreon/broker/timestamp.hh"

CCB_BEGIN()

namespace          neb {
  /**
   *  @class downtime downtime.hh "com/centreon/broker/neb/downtime.hh"
   *  @brief Represents a downtime inside Nagios.
   *
   *  A user may have the ability to define downtimes, which are
   *  time periods inside which some host or service shall not
   *  generate any notification. This can occur when a system
   *  administrator perform maintenance on a server for example.
   */
  class            downtime : public io::data {
  public:
                   downtime();
                   downtime(downtime const& d);
                   ~downtime();
    downtime&      operator=(downtime const& d);
    unsigned int   type() const;

    timestamp      actual_end_time;
    timestamp      actual_start_time;
    QString        author;
    QString        comment;
    timestamp      deletion_time;
    short          downtime_type;
    timestamp      duration;
    timestamp      end_time;
    timestamp      entry_time;
    bool           fixed;
    unsigned int   host_id;
    unsigned int   instance_id;
    unsigned int   internal_id;
    unsigned int   service_id;
    timestamp      start_time;
    unsigned int   triggered_by;
    bool           was_cancelled;
    bool           was_started;

  private:
    void           _internal_copy(downtime const& d);
  };
}

CCB_END()

#endif // !EVENTS_DOWNTIME_HH<commit_msg>Fix a macro guard name.<commit_after>/*
** Copyright 2009-2013 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker 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 Centreon Broker. If not, see
** <http://www.gnu.org/licenses/>.
*/

#ifndef CCB_NEB_DOWNTIME_HH
#  define CCB_NEB_DOWNTIME_HH

#  include <QString>
#  include "com/centreon/broker/io/data.hh"
#  include "com/centreon/broker/namespace.hh"
#  include "com/centreon/broker/timestamp.hh"

CCB_BEGIN()

namespace          neb {
  /**
   *  @class downtime downtime.hh "com/centreon/broker/neb/downtime.hh"
   *  @brief Represents a downtime inside Nagios.
   *
   *  A user may have the ability to define downtimes, which are
   *  time periods inside which some host or service shall not
   *  generate any notification. This can occur when a system
   *  administrator perform maintenance on a server for example.
   */
  class            downtime : public io::data {
  public:
                   downtime();
                   downtime(downtime const& d);
                   ~downtime();
    downtime&      operator=(downtime const& d);
    unsigned int   type() const;

    timestamp      actual_end_time;
    timestamp      actual_start_time;
    QString        author;
    QString        comment;
    timestamp      deletion_time;
    short          downtime_type;
    timestamp      duration;
    timestamp      end_time;
    timestamp      entry_time;
    bool           fixed;
    unsigned int   host_id;
    unsigned int   instance_id;
    unsigned int   internal_id;
    unsigned int   service_id;
    timestamp      start_time;
    unsigned int   triggered_by;
    bool           was_cancelled;
    bool           was_started;

  private:
    void           _internal_copy(downtime const& d);
  };
}

CCB_END()

#endif // !CCB_NEB_DOWNTIME_HH
{'fraction_non_alphanumeric': 0.07578073815243502, 'fraction_numerical': 0.003930989298973575, 'mean_word_length': 2.583724569640063, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6071153', 'n_tokens_mistral': 1356, 'n_tokens_neox': 1309, 'n_words': 461}