![]() |
LTTng control library C API
|

Modules | |
| Notification channel API | |
Functions | |
| struct lttng_action * | lttng_action_notify_create (void) |
| Creates a “notify” trigger action. | |
| enum lttng_action_status | lttng_action_notify_get_rate_policy (const struct lttng_action *action, const struct lttng_rate_policy **policy) |
Sets *policy to the rate policy of the “notify” trigger action action. | |
| enum lttng_action_status | lttng_action_notify_set_rate_policy (struct lttng_action *action, const struct lttng_rate_policy *policy) |
Sets the rate policy of the “notify” trigger action action to policy. | |
A “notify” trigger action sends a notification to any notification channel subscribed to the satisfied condition when its containing trigger fires.
A “notify” trigger action has the type LTTNG_ACTION_TYPE_NOTIFY.
Create a “notify” trigger action with lttng_action_notify_create().
Set and get the rate policy of a “notify” trigger action with lttng_action_notify_set_rate_policy() and lttng_action_notify_get_rate_policy().
|
extern |
Creates a “notify” trigger action.
The initial rate policy of the returned trigger action is “every time”. Set a new rate policy with lttng_action_notify_set_rate_policy().
Trigger action with the type LTTNG_ACTION_TYPE_NOTIFY on success, or NULL on error.
Destroy the returned trigger action with lttng_action_destroy().
|
extern |
Sets *policy to the rate policy of the “notify” trigger action action.
| [in] | action | “Notify” trigger action of which to get the rate policy. |
| [out] | policy | On success, this function sets
|
| LTTNG_ACTION_STATUS_OK | Success. |
| LTTNG_ACTION_STATUS_INVALID | Unsatisfied precondition. |
action is not NULL.action has the type LTTNG_ACTION_TYPE_NOTIFY.policy is not NULL.
|
extern |
Sets the rate policy of the “notify” trigger action action to policy.
| [in] | action | “Notify” trigger action of which to set the rate policy. |
| [in] | policy | Rate policy of action (copied). |
| LTTNG_ACTION_STATUS_OK | Success. |
| LTTNG_ACTION_STATUS_INVALID | Unsatisfied precondition. |
| LTTNG_ACTION_STATUS_ERROR | Memory error. |
action is not NULL.action has the type LTTNG_ACTION_TYPE_NOTIFY.policy is not NULL.