AppDynamics IoT C++ SDK
AppDynamics IoT C++ library contains code that facilitates capturing availability, usage, network performance and errors of an IoT Application.
appd_iot_interface.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) AppDynamics, Inc., and its affiliates
3  * 2017
4  * All Rights Reserved
5  * THIS IS UNPUBLISHED PROPRIETARY CODE OF APPDYNAMICS, INC.
6  * The copyright notice above does not evidence any actual or intended publication of such source code
7  */
8 
9 /* @file appd_iot_interface.h
10  * @brief This file contains public API's to access SDK functionality
11  */
12 
13 #ifndef _APPD_IOT_INTERFACE_H_
14 #define _APPD_IOT_INTERFACE_H_
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
23 #if __GNUC__ >= 4
24 #define __APPD_IOT_API __attribute__((visibility("default")))
25 #else
26 #define __APPD_IOT_API
27 #endif
28 
29 #include "appd_iot_def.h"
30 
31 
43 
44 
55 
56 
65 
66 
75 (appd_iot_network_request_event_t network_request_event) __APPD_IOT_API;
76 
77 
86 
87 
99 
100 
108 
109 
120 
121 #ifdef __cplusplus
122 } /* extern "C" */
123 #endif /* defined(__cplusplus) */
124 
125 #endif /* _APPD_IOT_INTERFACE_H_ */
AppDynamics Network Request Event Mandatory: url and timestamp_ms Fields.
Definition: appd_iot_def.h:244
appd_iot_error_code_t appd_iot_init_sdk(appd_iot_sdk_config_t sdkcfg, appd_iot_device_config_t devcfg) __APPD_IOT_API
This method Initializes the SDK. This method must be called before all other SDK Apis are called...
Definition: config.cpp:45
appd_iot_error_code_t appd_iot_add_custom_event(appd_iot_custom_event_t custom_event) __APPD_IOT_API
This method adds custom event data Each call to add event will create a new event.
Definition: custom_event.cpp:29
AppDynamics Device Information Mandatory: Device Type and Device ID Fields.
Definition: appd_iot_def.h:163
AppDynamics Error Event This structure can be used to send error or exception or a crash...
Definition: appd_iot_def.h:315
appd_iot_error_code_t
Error Code Enums for SDK log.
Definition: appd_iot_def.h:27
appd_iot_error_code_t appd_iot_clear_all_events(void) __APPD_IOT_API
This method removes all event data stored in memory This call is not needed if appd_iot_send_all_ev...
Definition: custom_event.cpp:219
appd_iot_error_code_t appd_iot_add_error_event(appd_iot_error_event_t error_event) __APPD_IOT_API
This method adds event data Each call to add event will create a new event.
Definition: error_event.cpp:34
appd_iot_error_code_t appd_iot_add_network_request_event(appd_iot_network_request_event_t network_request_event) __APPD_IOT_API
This method adds event data Each call to add event will create a new event.
Definition: network_event.cpp:97
AppDynamics SDK Configuration Mandatory: All Fields.
Definition: appd_iot_def.h:143
appd_iot_error_code_t appd_iot_send_all_events(void) __APPD_IOT_API
This method sends all event data. If events are sent successfuly to collector then they will be flu...
Definition: custom_event.cpp:199
AppDynamics HTTP Callback list Mandatory: http_req_send_cb and http_resp_done_cb fields...
Definition: appd_iot_def.h:414
appd_iot_error_code_t appd_iot_register_network_interface(appd_iot_http_cb_t http_cb) __APPD_IOT_API
This method registers network interface This method must be called before calling appd_iot_send_all...
Definition: config.cpp:132
appd_iot_error_code_t appd_iot_check_app_status(void) __APPD_IOT_API
Use this API to check with AppDynamics Collector on the status of IoT Application on AppDynamics Cont...
Definition: config.cpp:280
AppDynamics Custom Event Mandatory: type, summary and timestamp_ms Fields.
Definition: appd_iot_def.h:223
#define __APPD_IOT_API
Definition: appd_iot_interface.h:26