Legacy Dev Forum Posts

 View Only

Sign Up

PureCloud Data Actions latency test

  • 1.  PureCloud Data Actions latency test

    Posted 06-05-2025 18:41

    charaf_ed | 2019-12-12 23:03:35 UTC | #1

    Hello,

    Is there a way to test PureCloud Data Actions latency ?

    In fact, we integrate PureCloud (Asia Pacific (Tokyo) region) with Dynamics 365 (hosted in Dublin), for this purpose, we would like to check Data Actions latency.

    Regards,


    tim.smith | 2019-12-12 22:42:32 UTC | #2

    You can test data actions via the UI and time it: https://help.mypurecloud.com/articles/test-data-actions-integrations/ or test it via the API and time it: POST /api/v2/integrations/actions/{actionId}/test


    charaf_ed | 2019-12-12 22:56:41 UTC | #3

    Hi @tim.smith

    The point is to measure the latency of our Data Actions.

    We have already tested the Web services but we can't check the latency between Japan and Dublin.

    Regards,


    tim.smith | 2019-12-12 23:03:09 UTC | #4

    I took "data actions latency" to mean the time between when the action is invoked and when the response is received. What step specifically are you trying to measure?


    charaf_ed | 2019-12-12 23:23:09 UTC | #5

    I would like to measure exactly what You've described.

    The time in milliseconds between a request and response.

    I'm not sure that I could find this information in PureCloud UI.

    Maybe a tool exists to measure that ?


    Jason_Mathison | 2019-12-13 14:28:22 UTC | #6

    Hey all,

    I would guess that Tim was suggesting that you use a tool like postman to hit the "execute the action" endpoint. Pretty much every REST testing tool will show you how long every request took.

    Another way to go about this is to use the chrome developer tools page. Go to the test page for your action. Then open up the developer mode page. Go to the network page. Click on "Run Action". There will be quite a few things that happen on the network page, the one you are interested in will be test?flatten=true assuming that you have "Flatten output" checked. If that is unchecked you are looking for "test". Either way, there is a column that shows the duration that each network action took.

    One thing to keep in mind is that this time will include the latency from wherever you are to whichever purecloud environment you are interacting with. So if you run this test from Europe, talking to the Tokyo region, which then has to talk to Dublin, your overall time will be somewhat longer than if you ran the test in Tokyo.

    FYI, we are looking to provide more information about how data actions are performing overall. Also, I will enter a feature request to have the UI show the amount of time that the "run action" took, so you don't have to figure it out in the developer console.

    --Jason


    charaf_ed | 2019-12-13 14:42:44 UTC | #7

    Hello and thank you @Jason_Mathison for your explanation

    I'll try Chrome to check the duration.

    As you mentioned, it would be great if we have this feature integrated in PureCloud UI.

    Great Day


    tim.smith | 2019-12-13 16:21:10 UTC | #8

    You can use the Developer Tools Code Editor to test this in your browser with some code like this:

    const actionId = 'custom_-_480c3676-755d-4c47-82cd-b3846798ecd4';
    
    const apiInstance = new platformClient.IntegrationsApi();
    const start = Date.now();
    apiInstance.postIntegrationsActionTest(actionId, {})
      .then((data) => {
        console.log(`Completed in ${Date.now() - start}ms`);
        console.log(`postIntegrationsActionTest success! data: ${JSON.stringify(data, null, 2)}`);
      })
      .catch((err) => {
        console.log('There was a failure calling postIntegrationsActionTest');
        console.error(err);
      });

    You can request new features and share your use case at https://purecloud.ideas.aha.io/ideas


    Richard.Schott | 2019-12-18 18:34:50 UTC | #9

    Using tooling like Tim suggested would be the ideal scenario for now. Longer term, we in the process of building out a system to provide metrics on the ongoing operations of data actions within your PureCloud organization. The intent is to provide metrics that show success, failure, retries, and duration of data actions over a period of time. This is covered in Idea CLINT-I-104 in the ideas portal.

    It might also be good to create a new idea for the inclusion of the timing in the test UI for an individual data action (if you do, please let me know so I can add my vote to it too!)


    charaf_ed | 2019-12-18 19:01:19 UTC | #10

    Hello @Richard.Schott

    Thank you for your reply.

    I've added a new idea related to my request and you can vote too. https://purecloud.ideas.aha.io/ideas/CLPLA-I-846

    CHARAF


    system | 2020-01-18 19:01:22 UTC | #11

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 6724