Lines Matching refs:event

30                            mongoc_apm_command_started_t *event)  in append_documents_from_cmd()  argument
36 if (!event->command_owned) { in append_documents_from_cmd()
37 event->command = bson_copy (event->command); in append_documents_from_cmd()
38 event->command_owned = true; in append_documents_from_cmd()
41 _mongoc_cmd_append_payload_as_array (cmd, event->command); in append_documents_from_cmd()
50 mongoc_apm_command_started_init (mongoc_apm_command_started_t *event, in mongoc_apm_command_started_init() argument
77 event->command = bson_new_from_data (data, len); in mongoc_apm_command_started_init()
78 event->command_owned = true; in mongoc_apm_command_started_init()
81 event->command = (bson_t *) command; in mongoc_apm_command_started_init()
82 event->command_owned = false; in mongoc_apm_command_started_init()
86 event->command = (bson_t *) command; in mongoc_apm_command_started_init()
87 event->command_owned = false; in mongoc_apm_command_started_init()
90 event->database_name = database_name; in mongoc_apm_command_started_init()
91 event->command_name = command_name; in mongoc_apm_command_started_init()
92 event->request_id = request_id; in mongoc_apm_command_started_init()
93 event->operation_id = operation_id; in mongoc_apm_command_started_init()
94 event->host = host; in mongoc_apm_command_started_init()
95 event->server_id = server_id; in mongoc_apm_command_started_init()
96 event->context = context; in mongoc_apm_command_started_init()
101 mongoc_apm_command_started_init_with_cmd (mongoc_apm_command_started_t *event, in mongoc_apm_command_started_init_with_cmd() argument
106 mongoc_apm_command_started_init (event, in mongoc_apm_command_started_init_with_cmd()
117 append_documents_from_cmd (cmd, event); in mongoc_apm_command_started_init_with_cmd()
122 mongoc_apm_command_started_cleanup (mongoc_apm_command_started_t *event) in mongoc_apm_command_started_cleanup() argument
124 if (event->command_owned) { in mongoc_apm_command_started_cleanup()
125 bson_destroy (event->command); in mongoc_apm_command_started_cleanup()
131 mongoc_apm_command_succeeded_init (mongoc_apm_command_succeeded_t *event, in mongoc_apm_command_succeeded_init() argument
143 event->duration = duration; in mongoc_apm_command_succeeded_init()
144 event->reply = reply; in mongoc_apm_command_succeeded_init()
145 event->command_name = command_name; in mongoc_apm_command_succeeded_init()
146 event->request_id = request_id; in mongoc_apm_command_succeeded_init()
147 event->operation_id = operation_id; in mongoc_apm_command_succeeded_init()
148 event->host = host; in mongoc_apm_command_succeeded_init()
149 event->server_id = server_id; in mongoc_apm_command_succeeded_init()
150 event->context = context; in mongoc_apm_command_succeeded_init()
155 mongoc_apm_command_succeeded_cleanup (mongoc_apm_command_succeeded_t *event) in mongoc_apm_command_succeeded_cleanup() argument
162 mongoc_apm_command_failed_init (mongoc_apm_command_failed_t *event, in mongoc_apm_command_failed_init() argument
175 event->duration = duration; in mongoc_apm_command_failed_init()
176 event->command_name = command_name; in mongoc_apm_command_failed_init()
177 event->error = error; in mongoc_apm_command_failed_init()
178 event->reply = reply; in mongoc_apm_command_failed_init()
179 event->request_id = request_id; in mongoc_apm_command_failed_init()
180 event->operation_id = operation_id; in mongoc_apm_command_failed_init()
181 event->host = host; in mongoc_apm_command_failed_init()
182 event->server_id = server_id; in mongoc_apm_command_failed_init()
183 event->context = context; in mongoc_apm_command_failed_init()
188 mongoc_apm_command_failed_cleanup (mongoc_apm_command_failed_t *event) in mongoc_apm_command_failed_cleanup() argument
202 const mongoc_apm_command_started_t *event) in mongoc_apm_command_started_get_command() argument
204 return event->command; in mongoc_apm_command_started_get_command()
210 const mongoc_apm_command_started_t *event) in mongoc_apm_command_started_get_database_name() argument
212 return event->database_name; in mongoc_apm_command_started_get_database_name()
218 const mongoc_apm_command_started_t *event) in mongoc_apm_command_started_get_command_name() argument
220 return event->command_name; in mongoc_apm_command_started_get_command_name()
226 const mongoc_apm_command_started_t *event) in mongoc_apm_command_started_get_request_id() argument
228 return event->request_id; in mongoc_apm_command_started_get_request_id()
234 const mongoc_apm_command_started_t *event) in mongoc_apm_command_started_get_operation_id() argument
236 return event->operation_id; in mongoc_apm_command_started_get_operation_id()
241 mongoc_apm_command_started_get_host (const mongoc_apm_command_started_t *event) in mongoc_apm_command_started_get_host() argument
243 return event->host; in mongoc_apm_command_started_get_host()
249 const mongoc_apm_command_started_t *event) in mongoc_apm_command_started_get_server_id() argument
251 return event->server_id; in mongoc_apm_command_started_get_server_id()
257 const mongoc_apm_command_started_t *event) in mongoc_apm_command_started_get_context() argument
259 return event->context; in mongoc_apm_command_started_get_context()
267 const mongoc_apm_command_succeeded_t *event) in mongoc_apm_command_succeeded_get_duration() argument
269 return event->duration; in mongoc_apm_command_succeeded_get_duration()
275 const mongoc_apm_command_succeeded_t *event) in mongoc_apm_command_succeeded_get_reply() argument
277 return event->reply; in mongoc_apm_command_succeeded_get_reply()
283 const mongoc_apm_command_succeeded_t *event) in mongoc_apm_command_succeeded_get_command_name() argument
285 return event->command_name; in mongoc_apm_command_succeeded_get_command_name()
291 const mongoc_apm_command_succeeded_t *event) in mongoc_apm_command_succeeded_get_request_id() argument
293 return event->request_id; in mongoc_apm_command_succeeded_get_request_id()
299 const mongoc_apm_command_succeeded_t *event) in mongoc_apm_command_succeeded_get_operation_id() argument
301 return event->operation_id; in mongoc_apm_command_succeeded_get_operation_id()
307 const mongoc_apm_command_succeeded_t *event) in mongoc_apm_command_succeeded_get_host() argument
309 return event->host; in mongoc_apm_command_succeeded_get_host()
315 const mongoc_apm_command_succeeded_t *event) in mongoc_apm_command_succeeded_get_server_id() argument
317 return event->server_id; in mongoc_apm_command_succeeded_get_server_id()
323 const mongoc_apm_command_succeeded_t *event) in mongoc_apm_command_succeeded_get_context() argument
325 return event->context; in mongoc_apm_command_succeeded_get_context()
333 const mongoc_apm_command_failed_t *event) in mongoc_apm_command_failed_get_duration() argument
335 return event->duration; in mongoc_apm_command_failed_get_duration()
341 const mongoc_apm_command_failed_t *event) in mongoc_apm_command_failed_get_command_name() argument
343 return event->command_name; in mongoc_apm_command_failed_get_command_name()
348 mongoc_apm_command_failed_get_error (const mongoc_apm_command_failed_t *event, in mongoc_apm_command_failed_get_error() argument
351 memcpy (error, event->error, sizeof *event->error); in mongoc_apm_command_failed_get_error()
355 mongoc_apm_command_failed_get_reply (const mongoc_apm_command_failed_t *event) in mongoc_apm_command_failed_get_reply() argument
357 return event->reply; in mongoc_apm_command_failed_get_reply()
362 const mongoc_apm_command_failed_t *event) in mongoc_apm_command_failed_get_request_id() argument
364 return event->request_id; in mongoc_apm_command_failed_get_request_id()
370 const mongoc_apm_command_failed_t *event) in mongoc_apm_command_failed_get_operation_id() argument
372 return event->operation_id; in mongoc_apm_command_failed_get_operation_id()
377 mongoc_apm_command_failed_get_host (const mongoc_apm_command_failed_t *event) in mongoc_apm_command_failed_get_host() argument
379 return event->host; in mongoc_apm_command_failed_get_host()
385 const mongoc_apm_command_failed_t *event) in mongoc_apm_command_failed_get_server_id() argument
387 return event->server_id; in mongoc_apm_command_failed_get_server_id()
392 mongoc_apm_command_failed_get_context (const mongoc_apm_command_failed_t *event) in mongoc_apm_command_failed_get_context() argument
394 return event->context; in mongoc_apm_command_failed_get_context()
401 mongoc_apm_server_changed_get_host (const mongoc_apm_server_changed_t *event) in mongoc_apm_server_changed_get_host() argument
403 return event->host; in mongoc_apm_server_changed_get_host()
409 const mongoc_apm_server_changed_t *event, bson_oid_t *topology_id) in mongoc_apm_server_changed_get_topology_id() argument
411 bson_oid_copy (&event->topology_id, topology_id); in mongoc_apm_server_changed_get_topology_id()
417 const mongoc_apm_server_changed_t *event) in mongoc_apm_server_changed_get_previous_description() argument
419 return event->previous_description; in mongoc_apm_server_changed_get_previous_description()
425 const mongoc_apm_server_changed_t *event) in mongoc_apm_server_changed_get_new_description() argument
427 return event->new_description; in mongoc_apm_server_changed_get_new_description()
432 mongoc_apm_server_changed_get_context (const mongoc_apm_server_changed_t *event) in mongoc_apm_server_changed_get_context() argument
434 return event->context; in mongoc_apm_server_changed_get_context()
441 mongoc_apm_server_opening_get_host (const mongoc_apm_server_opening_t *event) in mongoc_apm_server_opening_get_host() argument
443 return event->host; in mongoc_apm_server_opening_get_host()
449 const mongoc_apm_server_opening_t *event, bson_oid_t *topology_id) in mongoc_apm_server_opening_get_topology_id() argument
451 bson_oid_copy (&event->topology_id, topology_id); in mongoc_apm_server_opening_get_topology_id()
456 mongoc_apm_server_opening_get_context (const mongoc_apm_server_opening_t *event) in mongoc_apm_server_opening_get_context() argument
458 return event->context; in mongoc_apm_server_opening_get_context()
465 mongoc_apm_server_closed_get_host (const mongoc_apm_server_closed_t *event) in mongoc_apm_server_closed_get_host() argument
467 return event->host; in mongoc_apm_server_closed_get_host()
473 const mongoc_apm_server_closed_t *event, bson_oid_t *topology_id) in mongoc_apm_server_closed_get_topology_id() argument
475 bson_oid_copy (&event->topology_id, topology_id); in mongoc_apm_server_closed_get_topology_id()
480 mongoc_apm_server_closed_get_context (const mongoc_apm_server_closed_t *event) in mongoc_apm_server_closed_get_context() argument
482 return event->context; in mongoc_apm_server_closed_get_context()
490 const mongoc_apm_topology_changed_t *event, bson_oid_t *topology_id) in mongoc_apm_topology_changed_get_topology_id() argument
492 bson_oid_copy (&event->topology_id, topology_id); in mongoc_apm_topology_changed_get_topology_id()
498 const mongoc_apm_topology_changed_t *event) in mongoc_apm_topology_changed_get_previous_description() argument
500 return event->previous_description; in mongoc_apm_topology_changed_get_previous_description()
506 const mongoc_apm_topology_changed_t *event) in mongoc_apm_topology_changed_get_new_description() argument
508 return event->new_description; in mongoc_apm_topology_changed_get_new_description()
514 const mongoc_apm_topology_changed_t *event) in mongoc_apm_topology_changed_get_context() argument
516 return event->context; in mongoc_apm_topology_changed_get_context()
524 const mongoc_apm_topology_opening_t *event, bson_oid_t *topology_id) in mongoc_apm_topology_opening_get_topology_id() argument
526 bson_oid_copy (&event->topology_id, topology_id); in mongoc_apm_topology_opening_get_topology_id()
532 const mongoc_apm_topology_opening_t *event) in mongoc_apm_topology_opening_get_context() argument
534 return event->context; in mongoc_apm_topology_opening_get_context()
542 const mongoc_apm_topology_closed_t *event, bson_oid_t *topology_id) in mongoc_apm_topology_closed_get_topology_id() argument
544 bson_oid_copy (&event->topology_id, topology_id); in mongoc_apm_topology_closed_get_topology_id()
550 const mongoc_apm_topology_closed_t *event) in mongoc_apm_topology_closed_get_context() argument
552 return event->context; in mongoc_apm_topology_closed_get_context()
560 const mongoc_apm_server_heartbeat_started_t *event) in mongoc_apm_server_heartbeat_started_get_host() argument
562 return event->host; in mongoc_apm_server_heartbeat_started_get_host()
568 const mongoc_apm_server_heartbeat_started_t *event) in mongoc_apm_server_heartbeat_started_get_context() argument
570 return event->context; in mongoc_apm_server_heartbeat_started_get_context()
575 const mongoc_apm_server_heartbeat_started_t *event) in mongoc_apm_server_heartbeat_started_get_awaited() argument
577 return event->awaited; in mongoc_apm_server_heartbeat_started_get_awaited()
585 const mongoc_apm_server_heartbeat_succeeded_t *event) in mongoc_apm_server_heartbeat_succeeded_get_duration() argument
587 return event->duration_usec; in mongoc_apm_server_heartbeat_succeeded_get_duration()
593 const mongoc_apm_server_heartbeat_succeeded_t *event) in mongoc_apm_server_heartbeat_succeeded_get_reply() argument
595 return event->reply; in mongoc_apm_server_heartbeat_succeeded_get_reply()
601 const mongoc_apm_server_heartbeat_succeeded_t *event) in mongoc_apm_server_heartbeat_succeeded_get_host() argument
603 return event->host; in mongoc_apm_server_heartbeat_succeeded_get_host()
609 const mongoc_apm_server_heartbeat_succeeded_t *event) in mongoc_apm_server_heartbeat_succeeded_get_context() argument
611 return event->context; in mongoc_apm_server_heartbeat_succeeded_get_context()
616 const mongoc_apm_server_heartbeat_succeeded_t *event) in mongoc_apm_server_heartbeat_succeeded_get_awaited() argument
618 return event->awaited; in mongoc_apm_server_heartbeat_succeeded_get_awaited()
626 const mongoc_apm_server_heartbeat_failed_t *event) in mongoc_apm_server_heartbeat_failed_get_duration() argument
628 return event->duration_usec; in mongoc_apm_server_heartbeat_failed_get_duration()
634 const mongoc_apm_server_heartbeat_failed_t *event, bson_error_t *error) in mongoc_apm_server_heartbeat_failed_get_error() argument
636 memcpy (error, event->error, sizeof *event->error); in mongoc_apm_server_heartbeat_failed_get_error()
642 const mongoc_apm_server_heartbeat_failed_t *event) in mongoc_apm_server_heartbeat_failed_get_host() argument
644 return event->host; in mongoc_apm_server_heartbeat_failed_get_host()
650 const mongoc_apm_server_heartbeat_failed_t *event) in mongoc_apm_server_heartbeat_failed_get_context() argument
652 return event->context; in mongoc_apm_server_heartbeat_failed_get_context()
657 const mongoc_apm_server_heartbeat_failed_t *event) in mongoc_apm_server_heartbeat_failed_get_awaited() argument
659 return event->awaited; in mongoc_apm_server_heartbeat_failed_get_awaited()