| Event Name | Type | Description |
|---|---|---|
| datapt | AW_EVENT_TYPE_INT32 | AW_EVENT_TYPE_INT64 | AW_EVENT_TYPE_FLOAT32 | AW_EVENT_TYPE_FLOAT64 | AW_EVENT_TYPE_TIMESTAMP |
Add data point to histogram |
| copy_cmd | ignored | Copy histogram an generate a copy event |
| reset_cmd | ignored | Reset histogram |
| Event Name | Type | Description |
|---|---|---|
| copy | AW_EVENT_TYPE_VALUEPTR | Received a copy_cmd event, send copy of histogram |
#include <stdio.h>
#include "monitor.h"
Go to the source code of this file.
Data Structures | |
| struct | aw_hist_data_t |
| Holds the basic histogram data. More... | |
| struct | aw_hist_events_t |
| Events generated and processed. More... | |
| struct | aw_hist_in_events_t |
| Events consumed. More... | |
| struct | aw_hist_out_events_t |
| Events generated. More... | |
| struct | aw_histhandler_t |
| Hist handler object. More... | |
Enumerations | |
| enum | aw_hist_flag_t { AW_HIST_RESET_ON_COPY = 0x1 } |
| Flags to set behavior. More... | |
Functions | |
| aw_hist_data_t * | aw_copy_hist_data (aw_hist_data_t *data) |
| Copy hist data and all associated resources. | |
| aw_histhandler_t * | aw_create_histhandler (float64_t min, float64_t max, u_int32_t nbins, aw_hist_flag_t flags, aw_hist_events_t *events, int32_t(*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), int32_t(*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), const aw_alarm_sched_t *sched, aw_logger_t *logger) |
| Create a histogram handler. | |
| void | aw_destroy_hist_data (aw_hist_data_t *data) |
| Free hist data and all associated resources. | |
| void | aw_free_histhandler (aw_histhandler_t *h) |
| Free handler and all associated resources. | |
| void | aw_writehist (aw_hist_data_t *hist_data, FILE *outstream) |
| Write histogram as text to stream as a single line. Format is:. | |
|
|
Flags to set behavior.
|
|
|
Copy hist data and all associated resources. aw_copy_hist_data
|
|
||||||||||||||||||||||||||||||||||||||||
|
Create a histogram handler. aw_create_histhandler
|
|
|
Free hist data and all associated resources. aw_destroy_hist_data
|
|
|
Free handler and all associated resources. aw_free_histhandler
|
|
||||||||||||
|
Write histogram as text to stream as a single line. Format is:. aw_writehist
|