pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
include
crm
common
health_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright 2022-2024 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
10
#ifndef PCMK__CRM_COMMON_HEALTH_INTERNAL__H
11
#define PCMK__CRM_COMMON_HEALTH_INTERNAL__H
12
13
#include <stdbool.h>
// bool
14
15
#include <
crm/common/scheduler_types.h
>
// pcmk_scheduler_t
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
28
enum
pcmk__health_strategy
{
29
pcmk__health_strategy_none
,
30
pcmk__health_strategy_no_red
,
31
pcmk__health_strategy_only_green
,
32
pcmk__health_strategy_progressive
,
33
pcmk__health_strategy_custom
,
34
};
35
36
bool
pcmk__validate_health_strategy
(
const
char
*value);
37
38
enum
pcmk__health_strategy
pcmk__parse_health_strategy
(
const
char
*value);
39
40
int
pcmk__health_score
(
const
char
*option,
const
pcmk_scheduler_t
*
scheduler
);
41
42
#ifdef __cplusplus
43
}
44
#endif
45
46
#endif // PCMK__CRM_COMMON_HEALTH_INTERNAL__H
pcmk__health_score
int pcmk__health_score(const char *option, const pcmk_scheduler_t *scheduler)
Definition:
health.c:82
scheduler_types.h
Type aliases needed to define scheduler objects.
pcmk__parse_health_strategy
enum pcmk__health_strategy pcmk__parse_health_strategy(const char *value)
Definition:
health.c:46
pcmk__health_strategy_no_red
Definition:
health_internal.h:30
pcmk__health_strategy_progressive
Definition:
health_internal.h:32
scheduler
pcmk_scheduler_t * scheduler
Definition:
native_find_rsc_test.c:19
pcmk__scheduler
Definition:
scheduler.h:76
pcmk__health_strategy_none
Definition:
health_internal.h:29
pcmk__health_strategy
pcmk__health_strategy
Definition:
health_internal.h:28
pcmk__health_strategy_only_green
Definition:
health_internal.h:31
pcmk__health_strategy_custom
Definition:
health_internal.h:33
pcmk__validate_health_strategy
bool pcmk__validate_health_strategy(const char *value)
Definition:
health.c:26
Generated on Wed Jan 8 2025 16:55:39 for pacemaker by
1.8.14