mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
ARI: Rotate log channels.
An http request can be sent to rotate a specified log channel. If the channel does not exist, an error response will be returned. The command "curl -v -u user:pass -X PUT 'http://localhost:8088 /ari/asterisk/logging/logChannelName/rotate'" can be run in the terminal to access this new functionality. * Added the ability to rotate log files through ARI ASTERISK-25252 Change-Id: Iaefa21cbbc1b29effb33004ee3d89c977e76ab01
This commit is contained in:
@@ -224,6 +224,24 @@ int ast_ari_validate_config_tuple(struct ast_json *json);
|
||||
*/
|
||||
ari_validator ast_ari_validate_config_tuple_fn(void);
|
||||
|
||||
/*!
|
||||
* \brief Validator for LogChannel.
|
||||
*
|
||||
* Details of an Asterisk log channel
|
||||
*
|
||||
* \param json JSON object to validate.
|
||||
* \returns True (non-zero) if valid.
|
||||
* \returns False (zero) if invalid.
|
||||
*/
|
||||
int ast_ari_validate_log_channel(struct ast_json *json);
|
||||
|
||||
/*!
|
||||
* \brief Function pointer to ast_ari_validate_log_channel().
|
||||
*
|
||||
* See \ref ast_ari_model_validators.h for more details.
|
||||
*/
|
||||
ari_validator ast_ari_validate_log_channel_fn(void);
|
||||
|
||||
/*!
|
||||
* \brief Validator for Module.
|
||||
*
|
||||
@@ -1283,6 +1301,9 @@ ari_validator ast_ari_validate_application_fn(void);
|
||||
* ConfigTuple
|
||||
* - attribute: string (required)
|
||||
* - value: string (required)
|
||||
* LogChannel
|
||||
* - logging_levels: List[string] (required)
|
||||
* - name: string (required)
|
||||
* Module
|
||||
* - description: string (required)
|
||||
* - name: string (required)
|
||||
|
Reference in New Issue
Block a user