summaryrefslogtreecommitdiffstats
path: root/examples/bin_api/stats.api.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bin_api/stats.api.json')
-rw-r--r--examples/bin_api/stats.api.json922
1 files changed, 922 insertions, 0 deletions
diff --git a/examples/bin_api/stats.api.json b/examples/bin_api/stats.api.json
new file mode 100644
index 0000000..3275811
--- /dev/null
+++ b/examples/bin_api/stats.api.json
@@ -0,0 +1,922 @@
+{
+ "services": [
+ {
+ "want_ip4_fib_stats": {
+ "reply": "want_ip4_fib_stats_reply"
+ }
+ },
+ {
+ "want_ip4_mfib_stats": {
+ "reply": "want_ip4_mfib_stats_reply"
+ }
+ },
+ {
+ "want_interface_combined_stats": {
+ "reply": "want_interface_combined_stats_reply"
+ }
+ },
+ {
+ "want_ip6_fib_stats": {
+ "reply": "want_ip6_fib_stats_reply"
+ }
+ },
+ {
+ "want_stats": {
+ "reply": "want_stats_reply"
+ }
+ },
+ {
+ "want_per_interface_simple_stats": {
+ "reply": "want_per_interface_simple_stats_reply"
+ }
+ },
+ {
+ "want_per_interface_combined_stats": {
+ "reply": "want_per_interface_combined_stats_reply"
+ }
+ },
+ {
+ "vnet_get_summary_stats": {
+ "reply": "vnet_get_summary_stats_reply"
+ }
+ },
+ {
+ "want_ip6_mfib_stats": {
+ "reply": "want_ip6_mfib_stats_reply"
+ }
+ },
+ {
+ "want_interface_simple_stats": {
+ "reply": "want_interface_simple_stats_reply"
+ }
+ },
+ {
+ "want_ip4_nbr_stats": {
+ "reply": "want_ip4_nbr_stats_reply"
+ }
+ },
+ {
+ "want_ip6_nbr_stats": {
+ "reply": "want_ip6_nbr_stats_reply"
+ }
+ }
+ ],
+ "vl_api_version": "0x50890812",
+ "enums": [],
+ "messages": [
+ [
+ "want_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ {
+ "crc": "0x476f5a08"
+ }
+ ],
+ [
+ "want_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "want_interface_simple_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ {
+ "crc": "0x476f5a08"
+ }
+ ],
+ [
+ "want_interface_simple_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "want_per_interface_simple_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ [
+ "u32",
+ "num"
+ ],
+ [
+ "u32",
+ "sw_ifs",
+ 0,
+ "num"
+ ],
+ {
+ "crc": "0x729d04f1"
+ }
+ ],
+ [
+ "want_per_interface_simple_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "want_interface_combined_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ {
+ "crc": "0x476f5a08"
+ }
+ ],
+ [
+ "want_interface_combined_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "want_per_interface_combined_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ [
+ "u32",
+ "num"
+ ],
+ [
+ "u32",
+ "sw_ifs",
+ 0,
+ "num"
+ ],
+ {
+ "crc": "0x729d04f1"
+ }
+ ],
+ [
+ "want_per_interface_combined_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "want_ip4_fib_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ {
+ "crc": "0x476f5a08"
+ }
+ ],
+ [
+ "want_ip4_fib_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "want_ip6_fib_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ {
+ "crc": "0x476f5a08"
+ }
+ ],
+ [
+ "want_ip6_fib_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "want_ip4_mfib_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ {
+ "crc": "0x476f5a08"
+ }
+ ],
+ [
+ "want_ip4_mfib_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "want_ip6_mfib_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ {
+ "crc": "0x476f5a08"
+ }
+ ],
+ [
+ "want_ip6_mfib_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "want_ip4_nbr_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ {
+ "crc": "0x476f5a08"
+ }
+ ],
+ [
+ "want_ip4_nbr_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "want_ip6_nbr_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "u32",
+ "enable_disable"
+ ],
+ [
+ "u32",
+ "pid"
+ ],
+ {
+ "crc": "0x476f5a08"
+ }
+ ],
+ [
+ "want_ip6_nbr_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ {
+ "crc": "0xe8d4e804"
+ }
+ ],
+ [
+ "vnet_ip4_fib_counters",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "vrf_id"
+ ],
+ [
+ "u32",
+ "count"
+ ],
+ [
+ "vl_api_ip4_fib_counter_t",
+ "c",
+ 0,
+ "count"
+ ],
+ {
+ "crc": "0x57e3feec"
+ }
+ ],
+ [
+ "vnet_ip4_mfib_counters",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "vrf_id"
+ ],
+ [
+ "u32",
+ "count"
+ ],
+ [
+ "vl_api_ip4_mfib_counter_t",
+ "c",
+ 0,
+ "count"
+ ],
+ {
+ "crc": "0x946eb588"
+ }
+ ],
+ [
+ "vnet_ip4_nbr_counters",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "count"
+ ],
+ [
+ "u32",
+ "sw_if_index"
+ ],
+ [
+ "u8",
+ "begin"
+ ],
+ [
+ "vl_api_ip4_nbr_counter_t",
+ "c",
+ 0,
+ "count"
+ ],
+ {
+ "crc": "0x214c4811"
+ }
+ ],
+ [
+ "vnet_ip6_fib_counters",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "vrf_id"
+ ],
+ [
+ "u32",
+ "count"
+ ],
+ [
+ "vl_api_ip6_fib_counter_t",
+ "c",
+ 0,
+ "count"
+ ],
+ {
+ "crc": "0x13aed73d"
+ }
+ ],
+ [
+ "vnet_ip6_mfib_counters",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "vrf_id"
+ ],
+ [
+ "u32",
+ "count"
+ ],
+ [
+ "vl_api_ip6_mfib_counter_t",
+ "c",
+ 0,
+ "count"
+ ],
+ {
+ "crc": "0x65fe1ae3"
+ }
+ ],
+ [
+ "vnet_ip6_nbr_counters",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "count"
+ ],
+ [
+ "u32",
+ "sw_if_index"
+ ],
+ [
+ "u8",
+ "begin"
+ ],
+ [
+ "vl_api_ip6_nbr_counter_t",
+ "c",
+ 0,
+ "count"
+ ],
+ {
+ "crc": "0x650161c0"
+ }
+ ],
+ [
+ "vnet_get_summary_stats",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "client_index"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ {
+ "crc": "0x51077d14"
+ }
+ ],
+ [
+ "vnet_get_summary_stats_reply",
+ [
+ "u16",
+ "_vl_msg_id"
+ ],
+ [
+ "u32",
+ "context"
+ ],
+ [
+ "i32",
+ "retval"
+ ],
+ [
+ "u64",
+ "total_pkts",
+ 2
+ ],
+ [
+ "u64",
+ "total_bytes",
+ 2
+ ],
+ [
+ "f64",
+ "vector_rate"
+ ],
+ {
+ "crc": "0x32b87c56"
+ }
+ ]
+ ],
+ "types": [
+ [
+ "ip4_fib_counter",
+ [
+ "u32",
+ "address"
+ ],
+ [
+ "u8",
+ "address_length"
+ ],
+ [
+ "u64",
+ "packets"
+ ],
+ [
+ "u64",
+ "bytes"
+ ],
+ {
+ "crc": "0xa6ceb0c9"
+ }
+ ],
+ [
+ "ip4_mfib_counter",
+ [
+ "u8",
+ "source",
+ 4
+ ],
+ [
+ "u8",
+ "group",
+ 4
+ ],
+ [
+ "u8",
+ "group_length"
+ ],
+ [
+ "u64",
+ "packets"
+ ],
+ [
+ "u64",
+ "bytes"
+ ],
+ {
+ "crc": "0x2cee4721"
+ }
+ ],
+ [
+ "ip4_nbr_counter",
+ [
+ "u32",
+ "address"
+ ],
+ [
+ "u8",
+ "link_type"
+ ],
+ [
+ "u64",
+ "packets"
+ ],
+ [
+ "u64",
+ "bytes"
+ ],
+ {
+ "crc": "0xb9f974d6"
+ }
+ ],
+ [
+ "ip6_fib_counter",
+ [
+ "u64",
+ "address",
+ 2
+ ],
+ [
+ "u8",
+ "address_length"
+ ],
+ [
+ "u64",
+ "packets"
+ ],
+ [
+ "u64",
+ "bytes"
+ ],
+ {
+ "crc": "0xf1197efb"
+ }
+ ],
+ [
+ "ip6_mfib_counter",
+ [
+ "u8",
+ "source",
+ 16
+ ],
+ [
+ "u8",
+ "group",
+ 16
+ ],
+ [
+ "u8",
+ "group_length"
+ ],
+ [
+ "u64",
+ "packets"
+ ],
+ [
+ "u64",
+ "bytes"
+ ],
+ {
+ "crc": "0x90a9590e"
+ }
+ ],
+ [
+ "ip6_nbr_counter",
+ [
+ "u64",
+ "address",
+ 2
+ ],
+ [
+ "u8",
+ "link_type"
+ ],
+ [
+ "u64",
+ "packets"
+ ],
+ [
+ "u64",
+ "bytes"
+ ],
+ {
+ "crc": "0x2d755474"
+ }
+ ]
+ ]
+}