Question

VishnuLogiticks on Tue, 19 Feb 2019 09:21:35


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 .



Replies

Alberto Vega (Azure) on Thu, 21 Feb 2019 00:59:08


Are you still seeing this issue? 

VishnuLogiticks on Thu, 21 Feb 2019 05:41:42


yes we are still facing this issue 

Alberto Vega (Azure) on Fri, 22 Feb 2019 14:57:43


As long as the properties name match it should work. When you get the full list of properties can you confirm that what you are sending matches a property there? Have tried it using Postman? If not have you inspected what is going out with Fiddler or similar tool?



VishnuLogiticks on Mon, 25 Feb 2019 06:04:06


yes we are using Post man . We have created a console application for sending the API request but the result is returning the same