pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
probes.h File Reference

Scheduler API for probes. More...

#include <stdbool.h>
#include <glib.h>
#include <libxml/tree.h>
Include dependency graph for probes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Detailed Description

Scheduler API for probes.

Definition in file probes.h.

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.