Mellanox SwitchX SDK API Guide  4.3.2104
sx_api_tele.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2019. Mellanox Technologies, Ltd. ALL RIGHTS RESERVED.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may
5  * not use this file except in compliance with the License. You may obtain
6  * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
7  *
8  * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR
9  * CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT
10  * LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS
11  * FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
12  *
13  * See the Apache Version 2.0 License for specific language governing
14  * permissions and limitations under the License.
15  *
16  */
17 
18 
19 #ifndef __SX_API_TELE_H__
20 #define __SX_API_TELE_H__
21 
22 #include <sx/sdk/sx_api.h>
23 #include <sx/sdk/sx_strings.h>
24 
25 /************************************************
26  * API functions
27  ***********************************************/
28 
42 sx_status_t sx_api_tele_log_verbosity_level_set(const sx_api_handle_t handle,
43  const sx_log_verbosity_target_t verbosity_target,
44  const sx_verbosity_level_t module_verbosity_level,
45  const sx_verbosity_level_t api_verbosity_level);
46 
60 sx_status_t sx_api_tele_log_verbosity_level_get(const sx_api_handle_t handle,
61  const sx_log_verbosity_target_t verbosity_target,
62  sx_verbosity_level_t *module_verbosity_level_p,
63  sx_verbosity_level_t *api_verbosity_level_p);
64 
76 sx_status_t sx_api_tele_init_set(const sx_api_handle_t handle,
77  sx_tele_init_params_t *params_p);
78 
88 sx_status_t sx_api_tele_deinit_set(const sx_api_handle_t handle);
89 
109 sx_status_t sx_api_tele_histogram_set(const sx_api_handle_t handle,
110  const sx_access_cmd_t cmd,
111  const sx_tele_histogram_key_t key,
112  const sx_tele_histogram_attributes_data_t data);
113 
130 sx_status_t sx_api_tele_histogram_get(const sx_api_handle_t handle,
131  const sx_access_cmd_t cmd,
132  const sx_tele_histogram_key_t key,
133  sx_tele_histogram_attributes_data_t *data_p);
134 
204 sx_status_t sx_api_tele_histogram_iter_get(const sx_api_handle_t handle,
205  const sx_access_cmd_t cmd,
206  const sx_tele_histogram_key_t *hist_key_p,
207  const sx_tele_histogram_filter_t filter,
208  sx_tele_histogram_key_t *hist_list_p,
209  uint32_t *hist_cnt_p);
210 
211 
233 sx_status_t sx_api_tele_histogram_data_get(const sx_api_handle_t handle,
234  const sx_access_cmd_t cmd,
235  const sx_tele_histogram_key_t key,
236  sx_tele_histogram_data_t *histogram_p);
237 
238 
259 sx_status_t sx_api_tele_threshold_set(const sx_api_handle_t handle,
260  const sx_access_cmd_t cmd,
261  const sx_tele_threshold_key_t key,
262  const sx_tele_threshold_data_t data);
263 
280 sx_status_t sx_api_tele_threshold_get(const sx_api_handle_t handle,
281  const sx_access_cmd_t cmd,
282  const sx_tele_threshold_key_t key,
283  sx_tele_threshold_data_t *data_p);
284 
302 sx_status_t sx_api_tele_threshold_crossed_data_get(const sx_api_handle_t handle,
303  const sx_access_cmd_t cmd,
304  const sx_tele_threshold_key_t *key_p,
305  sx_tele_threshold_crossed_data_t *crossed_data_p,
306  const uint32_t key_cnt);
307 
308 
309 #endif /* __SX_API_TELE_H__ */
sx_api_tele_histogram_iter_get
sx_status_t sx_api_tele_histogram_iter_get(const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_tele_histogram_key_t *hist_key_p, const sx_tele_histogram_filter_t filter, sx_tele_histogram_key_t *hist_list_p, uint32_t *hist_cnt_p)
sx_api_tele_threshold_set
sx_status_t sx_api_tele_threshold_set(const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_tele_threshold_key_t key, const sx_tele_threshold_data_t data)
sx_api_tele_log_verbosity_level_get
sx_status_t sx_api_tele_log_verbosity_level_get(const sx_api_handle_t handle, const sx_log_verbosity_target_t verbosity_target, sx_verbosity_level_t *module_verbosity_level_p, sx_verbosity_level_t *api_verbosity_level_p)
sx_api_tele_histogram_data_get
sx_status_t sx_api_tele_histogram_data_get(const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_tele_histogram_key_t key, sx_tele_histogram_data_t *histogram_p)
sx_api_tele_histogram_set
sx_status_t sx_api_tele_histogram_set(const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_tele_histogram_key_t key, const sx_tele_histogram_attributes_data_t data)
sx_api_tele_threshold_get
sx_status_t sx_api_tele_threshold_get(const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_tele_threshold_key_t key, sx_tele_threshold_data_t *data_p)
sx_api_tele_init_set
sx_status_t sx_api_tele_init_set(const sx_api_handle_t handle, sx_tele_init_params_t *params_p)
sx_api_tele_threshold_crossed_data_get
sx_status_t sx_api_tele_threshold_crossed_data_get(const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_tele_threshold_key_t *key_p, sx_tele_threshold_crossed_data_t *crossed_data_p, const uint32_t key_cnt)
sx_api_tele_log_verbosity_level_set
sx_status_t sx_api_tele_log_verbosity_level_set(const sx_api_handle_t handle, const sx_log_verbosity_target_t verbosity_target, const sx_verbosity_level_t module_verbosity_level, const sx_verbosity_level_t api_verbosity_level)
sx_api_tele_histogram_get
sx_status_t sx_api_tele_histogram_get(const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_tele_histogram_key_t key, sx_tele_histogram_attributes_data_t *data_p)
sx_api_tele_deinit_set
sx_status_t sx_api_tele_deinit_set(const sx_api_handle_t handle)