pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
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/probes.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.
 
bool pcmk_xe_is_probe (const xmlNode *xml)
 Check whether an action history entry represents a probe.
 
bool pcmk_xe_mask_probe_failure (const xmlNode *xml)
 Check whether an action history entry represents a maskable probe.
 

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 31 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 46 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 70 of file probes.c.