none
Time series insight API returning Could not cast or convert from System.String to Microsoft.Rdx.Client.Events.Property RRS feed

  • Question

  • Hi we have just started using time series insight .While using the following API using post method

    xxxx.env.timeseries.azure.com/timeseries/query?api-version=2018-11-01-preview

    with the response body

    { "getEvents":

         {

              "timeSeriesId": ["UniqueId"],

              "searchSpan": { "from": "2019-02-17T00:00:00Z", "to": "2019-02-18T00:16:50Z" },

         "projectedProperties": ["DesiredProp"] 

       }

    }

    it returns the following error (400 Bad request )

    {
        "error": {
            "code": "InvalidInput",
            "message": "Error converting value \"DesiredProp\" to type                    'Microsoft.Rdx.Client.Events.Property'. Path 'getEvents.projectedProperties[0]', line 9, position       45.\r\n---> Could not cast or convert from System.String to Microsoft.Rdx.Client.Events.Property.\r\n"
        }
    }


    on removing the projectedProperties property from response body API works fine,but it will return all the properties . We want to get the specified property or properties from the API

    any help will me much appreciated and thanks in advance .



    • Edited by VishnuLogiticks Tuesday, February 19, 2019 9:23 AM edit spelling mistake
    Tuesday, February 19, 2019 9:21 AM

All replies