Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co....

9
Supporting Time Series Data Name: WG2 e: Qi Yu , Mitch Tseng- Huawei Technologies, Co. LTD. ng Date: 2015-07-01 Item :WI-0033

Transcript of Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co....

Page 1: Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co. LTD. Meeting Date: 2015-07-01 Work Item :WI-0033.

Supporting Time Series Data

Group Name: WG2Source: Qi Yu , Mitch Tseng- Huawei Technologies, Co. LTD.Meeting Date: 2015-07-01Work Item :WI-0033

Page 2: Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co. LTD. Meeting Date: 2015-07-01 Work Item :WI-0033.

Introduction• The definition of Time Series Data in TS-0011:Time series data is a sequence of data points, typically consisting

of successive measurements made over a time interval.• The following two requirements have been agreed and the

related WI-0033 Supporting Time Series Data has been agreed at TP#17 as well.

– The oneM2M System shall be able to collect, store time series data.– The oneM2M System shall be able to detect and report the missing

data in time series.

© 2015 oneM2M Partners<Document number>

2

Page 3: Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co. LTD. Meeting Date: 2015-07-01 Work Item :WI-0033.

Introduction• Time Series data is widely existing in many verticals .

– Periodical monitoring data from product line in industrial domain– Report Heartbeat and blood pressure periodically in ehealth– Report location information of the car in ITS

• The characters of time series data :(v1,t1),(v2,t2),(v3,t3)…….– Chronologically– Dynamically– Infinitely– Frequently small data in most cases

Page 4: Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co. LTD. Meeting Date: 2015-07-01 Work Item :WI-0033.

Issues

© 2015 oneM2M Partners<Document number>

4

<contentInstance>0..n

<subscription>0..n

<container>0..n

<container>

0..1creator

0..1maxNrOfInstances

0..1maxByteSize

0..1maxInstanceAge

1currentNrOfInstances

1currentByteSize

0..1locationID

0..1ontologyRef

<latest>1

<oldest>1

<semanticDescriptor>0..n

<contentInstance>

1contentSize

0..1ontologyRef

1content

0..1contentInfo

0..1creator

semanticDescriptor0..n

1. Time series data need be updated when there are new data. However, <contenInstance> cannot be modified once created.

2. The current <content> cannot reflect the time information when the data are collected by the device. Therefore, the following issues should be considered: How to search and analyze the data in

time series? How to detect and report when data

lost occurs?

Page 5: Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co. LTD. Meeting Date: 2015-07-01 Work Item :WI-0033.

Option 1

© 2015 oneM2M Partners<Document number>

5

Option1 to solve this problem is to extend the existing content attribute in the <contentInstance> resource. In this case, the content attribute needs to store the data and the related time when the data were collected by the device. It will also lead to a need to update content attribute when new data arrive.

Page 6: Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co. LTD. Meeting Date: 2015-07-01 Work Item :WI-0033.

option 2

© 2015 oneM2M Partners<Document number>

6

Option2 to solve this problem is to define a new resource for time series data. The List attribute is used to store data and time when the device generated the data .

Page 7: Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co. LTD. Meeting Date: 2015-07-01 Work Item :WI-0033.

Option 3Option3 to solve this problem is to define a new resource and let content attribute store the URI linking to this resource.

<contentInstance>

1contentSize

0..1ontologyRef

1content

0..1contentInfo

0..1creator

semanticDescriptor0..n

URI of <contentList >resource

Page 8: Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co. LTD. Meeting Date: 2015-07-01 Work Item :WI-0033.

Solution Comparsion

© 2015 oneM2M Partners<Document number>

8

Option1 : The existing content attribute should be changed to store time series data. This obeys the principle that the contentInstance shall not be modified once it is created defined in Release 1. Option2 &Option3:The new resource is defined to support time series data in R2.

We prefer to define a new resource type to store time series data because the following reasons:• it has minimum impact on R1.• it is more flexible to store and detect the time series data.

Page 9: Supporting Time Series Data Group Name: WG2 Source: Qi Yu, Mitch Tseng- Huawei Technologies, Co. LTD. Meeting Date: 2015-07-01 Work Item :WI-0033.

Thanks

© 2015 oneM2M Partners<Document number>

9