Hello Team,
I'm trying to get a TrendData using the operation GetTrendDataForParameter, however, I want to define a start/end time using the trendingSpanType = Custom.
I tested with LastHour/LastDay/LastMonth and it's working, but I couldn't find how to use 'Custom' properly. Do you know what can be wrong in the following syntax?
Request:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetTrendDataForParameter xmlns="http://www.skyline.be/api/v1">
<connection>0c85a868-7b21-4d9e-b1a7-34d2dc672784</connection>
<dmaID>2612</dmaID>
<elementID>9</elementID>
<parameterID>2060</parameterID>
<tableIndex>3898</tableIndex>
<trendingSpanType>Custom</trendingSpanType>
<StartTime>2024-08-19T12:00:00.000+00:00</StartTime>
<EndTime>2024-08-19T13:00:00.000+00:00</EndTime>
</GetTrendDataForParameter>
</soap:Body>
</soap:Envelope>
Response:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Invalid start time.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
This cannot be done with the GetTrendDataForParameter call. But you can use this one instead:
<GetTrendDataForTableParameter xmlns="http://www.skyline.be/api/v1">
<connection>0c85a868-7b21-4d9e-b1a7-34d2dc672784</connection>
<dmaID>2612</dmaID>
<elementID>9</elementID>
<parameterID>2060</parameterID>
<tableIndex>3898</tableIndex>
<utcStartTime>1724068800000</utcStartTime>
<utcEndTime>1724072400000</utcEndTime>
</GetTrendDataForTableParameter>
Thanks!