How to send StartTime and EndTime in analytic event as xml

I am using the sample TriggerAnalyticsEventXml to send an analytic event,

I want to add StartTime and EndTime to the sample.

(System.DateTime VideoOS.Platform.Data.AnalyticsEvent.EndTime,

System.DateTime VideoOS.Platform.Data.AnalyticsEvent.StartTime)

But when i pull the event from the event server

(using EventLine[] events = alarmClient.GetEventLines(0, 100, filter)

and

AnalyticsEvent send_event = alarmClient.GetEvent(events[i].Id) as AnalyticsEvent;

)

The startTime and EndTime are 1/1/1 0:0:0

I tried adding the … in diffrent location in the xml sample but it always fail.

What am i doing wrong?

00000000-0000-0000-0000-000000000000

$timestamp$

MyType

MyAnalyticsEvent01

TagFromXML

192.168.0.199

$timestamp$

$timestamp$

Analytics event description.

Event location 1

Rectangle

A suspect item

true

<Color>

 <A>255</A>

 <R>255</R>

 <G>255</G>

 <B>0</B>

</Color>

<PointList>

 <Point>

  <X>0.3</X>

  <Y>0.3</Y>

 </Point>

 <Point>

  <X>0.6</X>

  <Y>0.3</Y>

 </Point>

 <Point>

  <X>0.6</X>

  <Y>0.6</Y>

 </Point>

 <Point>

  <X>0.3</X>

  <Y>0.6</Y>

 </Point>

 <Point>

  <X>0.3</X>

  <Y>0.3</Y>

 </Point>

</PointList>

My Smart Video

You are not following the schema. (You can use the validate button in the sample then you will notice.)

Put StartTime and EndTime nodes after the Description node then it will work. I ran a quick test and for me it works.

You mention having tried other locations for the nodes. If it still fails for you I wonder if the EVent Server logs tells you something? What version of XProtect is this?

xcorparate 2018

i didnot check in the event server log.

i send my xml from java by post request. i always got OK response for every xml.

Did rearranging the nodes to the correct order solve the issue or do you still see the issue?

solved. thanks