Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
06-21-2018 06:05 PM
Hi,
I am evaluating AppDynamcis. I am trying to connect to a SaaS controller from C++ native application. Followed all the instructions as mentioned here
Added header
Added code to initialize sdk
Performed multiple BT
but i can't see anything in the UI dashboard. Can someone please tell me what am I doing wrong??
const char APP_NAME[] = "Test1"; const char TIER_NAME[] = "T1"; const char NODE_NAME[] = "Node1"; const char CONTROLLER_HOST[] = "my.saas.appdynamics.com"; const int CONTROLLER_PORT = 443; const char CONTROLLER_ACCOUNT[] = "myaccount"; const char CONTROLLER_ACCESS_KEY[] = "myaccesskey"; const int CONTROLLER_USE_SSL = 1; int main() { appd_config* cfg = appd_config_init(); // appd_config_init() resets the configuration object and pass back an handle/pointer appd_config_set_app_name(cfg, APP_NAME); appd_config_set_tier_name(cfg, TIER_NAME); appd_config_set_node_name(cfg, NODE_NAME); appd_config_set_controller_host(cfg, CONTROLLER_HOST); appd_config_set_controller_port(cfg, CONTROLLER_PORT); appd_config_set_controller_account(cfg, CONTROLLER_ACCOUNT); appd_config_set_controller_access_key(cfg, CONTROLLER_ACCESS_KEY); appd_config_set_controller_use_ssl(cfg, CONTROLLER_USE_SSL); const int initRC = appd_sdk_init(cfg); if (initRC) { std::cerr << "Error: sdk init: " << initRC; return -1; } for (int i = 0; i < 10; ++i) { // start the "Checkout" transaction const appd_bt_handle btHandle = appd_bt_begin("Checkout", nullptr); Sleep(1000); appd_bt_add_error(btHandle, APPD_LEVEL_ERROR, "Failed", true); // end the transaction appd_bt_end(btHandle); } appd_sdk_term(); return 0; }
Solved! Go to Solution.
07-11-2018 04:02 AM
Hi,
The same for me, what is really weird, that appd inint method returns success. BTW were you able in the meantime resolve the issue.
Best Regards
Matej
07-15-2018 06:24 PM
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form