root/include/pcmki/pcmki_status.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright 2022 the Pacemaker project contributors
   3  *
   4  * The version control history for this file may have further details.
   5  *
   6  * This source code is licensed under the GNU Lesser General Public License
   7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
   8  */
   9 #ifndef PCMK__PCMKI_PCMKI_STATUS__H
  10 #define PCMK__PCMKI_PCMKI_STATUS__H
  11 
  12 #include <stdbool.h>
  13 #include <stdint.h>
  14 
  15 #include <crm/cib/cib_types.h>
  16 #include <crm/pengine/pe_types.h>
  17 #include <crm/common/output_internal.h>
  18 #include <pcmki/pcmki_fence.h>
  19 
  20 #ifdef __cplusplus
  21 extern "C" {
  22 #endif
  23 
  24 /*!
  25  * \internal
  26  * \brief Print one-line status suitable for use with monitoring software
  27  *
  28  * \param[in] data_set  Working set of CIB state
  29  *
  30  * \return Standard Pacemaker return code
  31  *
  32  * \note This function's output (and the return code when the program exits)
  33  *       should conform to https://www.monitoring-plugins.org/doc/guidelines.html
  34  *
  35  * \note This function is planned to be deprecated and then removed in the
  36  *       future.  It should only be called from crm_mon, and no additional
  37  *       callers should be added.
  38  */
  39 int pcmk__output_simple_status(pcmk__output_t *out, pe_working_set_t *data_set);
  40 
  41 int pcmk__output_cluster_status(pcmk__output_t *out, stonith_t *st, cib_t *cib,
  42                                 xmlNode *current_cib, enum pcmk__fence_history fence_history,
  43                                 uint32_t show, uint32_t show_opts, char *only_node,
  44                                 char *only_rsc, char *neg_location_prefix,
  45                                 bool simple_output);
  46 
  47 int pcmk__status(pcmk__output_t *out, cib_t *cib, enum pcmk__fence_history fence_history,
  48                  uint32_t show, uint32_t show_opts, char *only_node, char *only_rsc,
  49                  char *neg_location_prefix, bool simple_output);
  50 
  51 #ifdef __cplusplus
  52 }
  53 #endif
  54 
  55 #endif

/* [previous][next][first][last][top][bottom][index][help] */