LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Time Variance and volumn variation addition

    Employee
    Posted 09-16-2014 03:41

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rakhi

    How could add the time variance for 1 sec and volumn variance for 1 kb . Actually I need to reconcile between two network elements and that time if the volumn diiferenc is >< 1kb and time differencr is <> 1 sec then thos record should be concider as match record.


  • 2.  RE: Time Variance and volumn variation addition

    Employee
    Posted 09-17-2014 17:25

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ryeh

    If I understand your problem correctly, you need to use the timeSubtract function to see if the difference between two time fields are greater than 1. Copy and paste the text between the lines of *'s into a graph to see an example.

    *********************
    node:Static_Data
    bretype:core::Static Data
    editor:sortkey=541a246334751380
    output:@40fe6c55598828e5/=
    prop:StaticData=<<EOX
    time1, time2
    8:15:01,8:15:02
    18:15:01,18:15:03
    EOX
    editor:XY=100,210
    end:Static_Data

    node:Filter
    bretype:core::Filter
    editor:sortkey=541a24a3559a2685
    input:@40fd2c74167f1ca2/=Static_Data.40fe6c55598828e5
    output:@40fd2c7420761db6/=
    prop:Script=<<EOX
    time1 = time1.time("H:M:S")
    time2 = time2.time("H:M:S")

    if timeSubtract(time2, time1) > 1
    then match = 0
    else match = 1

    emit time1, time2, match
    EOX
    editor:XY=200,210
    end:Filter
    *********************