Author | zhangxiaoyu |
---|---|
Date | 2022-09-17 |
zhangxiaoyu58@huawei.com |
The events module mainly records the relevant operation events of the container or image. Users can view events through the isula events client, or view events for a container in a certain period of time through parameters. E.g
$ isula events --help
Usage: isula events [OPTIONS]
Get real time events from the server
-n, --name Name of the container
-S, --since Show all events created since this timestamp
-U, --until Show all events created until this timestamp
$ isula events
2022-05-10T17:20:34.661862100+08:00 container start 3277ec2e57cde72cbd20a1fea4bb4444e29df67f6fc27e60f8532b733b7ef400 (image=busybox, name=3277ec2e57cde72cbd20a1fea4bb4444e29df67f6fc27e60f8532b733b7ef400, pid=9007)
// Send container event to monitor fifo
int isulad_monitor_send_container_event(const char *name, runtime_state_t state, int pid, int exit_code,
const char *args, const char *extra_annations);
// Send mirror event to monitor fifo
int isulad_monitor_send_image_event(const char *name, image_state_t state);
// Process the newly generated event, including stopped event processing, and forward the event to the client in the context list of the subscription list
void events_handler(struct monitord_msg *msg);
// Add the client to the events subscription list: context list
int add_monitor_client(char *name, const types_timestamp_t *since, const types_timestamp_t *until,
const stream_func_wrapper *stream);
// Write the eligible events in the events lists back to the client
int events_subscribe(const char *name, const types_timestamp_t *since, const types_timestamp_t *until,
const stream_func_wrapper *stream);
// copy event
struct isulad_events_format *dup_event(const struct isulad_events_format *event);
// Create collector thread and monitored thread
int events_module_init(char **msg);
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )