Go to the source code of this file.
|
typedef struct _LDEvalDetail * | LDEvalDetail |
|
typedef struct _LDEvalReason * | LDEvalReason |
|
|
enum | LDEvalReason_Kind {
LD_EVALREASON_OFF = 0
, LD_EVALREASON_FALLTHROUGH = 1
, LD_EVALREASON_TARGET_MATCH = 2
, LD_EVALREASON_RULE_MATCH = 3
,
LD_EVALREASON_PREREQUISITE_FAILED = 4
, LD_EVALREASON_ERROR = 5
} |
|
enum | LDEvalReason_ErrorKind {
LD_EVALREASON_ERROR_CLIENT_NOT_READY = 0
, LD_EVALREASON_ERROR_USER_NOT_SPECIFIED = 1
, LD_EVALREASON_ERROR_FLAG_NOT_FOUND = 2
, LD_EVALREASON_ERROR_WRONG_TYPE = 3
,
LD_EVALREASON_ERROR_MALFORMED_FLAG = 4
, LD_EVALREASON_ERROR_EXCEPTION = 5
} |
|
◆ LDEvalDetail_Free()
LDEvalDetail_Free |
( |
LDEvalDetail |
detail | ) |
|
Frees the detail structure optionally returned by *VariationDetail functions.
- Parameters
-
detail | Evaluation detail to free. |
◆ LDEvalDetail_Reason()
LDEvalDetail_Reason |
( |
LDEvalDetail |
detail, |
|
|
LDEvalReason * |
out_reason |
|
) |
| |
Returns the reason of the evaluation result, if any.
- Parameters
-
detail | Evaluation detail.Must not be NULL. |
out_reason | Pointer where reason should be stored, if any. The reason's lifetime is valid only for that of the containing EvalDetail. Must not be NULL. |
- Returns
- True if a reason was present, false otherwise.
◆ LDEvalDetail_VariationIndex()
LDEvalDetail_VariationIndex |
( |
LDEvalDetail |
detail, |
|
|
size_t * |
out_variation_index |
|
) |
| |
Returns variation index of the evaluation result, if any.
- Parameters
-
detail | Evaluation detail. Must not be NULL. |
out_variation_index | Pointer where index should be stored, if any. |
- Returns
- True if an index was present, false otherwise.
◆ LDEvalReason_ErrorKind()
LDEvalReason_ErrorKind |
( |
LDEvalReason |
reason, |
|
|
enum LDEvalReason_ErrorKind * |
out_error_kind |
|
) |
| |
Returns the evaluation reason's error kind, if the evaluation reason's kind was LD_EVALREASON_ERROR.
- Parameters
-
reason | Evaluation reason. Must not be NULL. |
out_error_kind | Pointer where error kind should be stored, if any. Must not be NULL. |
- Returns
- True if an error kind was present, false otherwise.
◆ LDEvalReason_InExperiment()
LDEvalReason_InExperiment |
( |
LDEvalReason |
reason | ) |
|
Whether the evaluation was part of an experiment.
- Parameters
-
reason | Evaluation reason. Must not be NULL. |
- Returns
- True if the evaluation resulted in an experiment rollout and served one of the variations in the experiment.
◆ LDEvalReason_Kind()
LDEvalReason_Kind |
( |
LDEvalReason |
reason | ) |
|
Returns the evaluation reason's kind.
- Parameters
-
reason | Evaluation reason. Must not be NULL. |
- Returns
- Kind of reason.