pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Functions
probes.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <stdbool.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/options.h>
#include <crm/common/xml.h>
Include dependency graph for probes.c:

Go to the source code of this file.

Functions

bool pcmk_is_probe (const char *task, guint interval_ms)
 Check whether an action name and interval represent a probe. More...
 
bool pcmk_xe_is_probe (const xmlNode *xml)
 Check whether an action history entry represents a probe. More...
 
bool pcmk_xe_mask_probe_failure (const xmlNode *xml)
 Check whether an action history entry represents a maskable probe. More...
 

Function Documentation

◆ pcmk_is_probe()

bool pcmk_is_probe ( const char *  task,
guint  interval_ms 
)

Check whether an action name and interval represent a probe.

Parameters
[in]taskAction name
[in]interval_msAction interval in milliseconds
Returns
true if task is PCMK_ACTION_MONITOR and interval_ms is 0, otherwise false

Definition at line 30 of file probes.c.

◆ pcmk_xe_is_probe()

bool pcmk_xe_is_probe ( const xmlNode *  xml)

Check whether an action history entry represents a probe.

Parameters
[in]xmlXML of action history entry
Returns
true if xml is for a probe action, otherwise false

Definition at line 45 of file probes.c.

◆ pcmk_xe_mask_probe_failure()

bool pcmk_xe_mask_probe_failure ( const xmlNode *  xml)

Check whether an action history entry represents a maskable probe.

Parameters
[in]xmlXML of action history entry
Returns
true if xml is for a failed probe action that should be treated as successful, otherwise false

Definition at line 69 of file probes.c.