Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Jira
serverONAP JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-251

Introduction

CPS temporal data keeps data in

  1. to identify the issues in the network as soon as possible to ensure the customer gets uninterrupted service. 

Assumptions

...

  • It is a possibility that data stored for the different timestamps is the same, especially if the payload is used to filter data.

Query APIs 

In CPS temporal, the state can be filtered based on three criteria

  • Datetime
    • States in last X hours
    • States after a particular DateTime
    • State at a particular time
    • Last X states
  • DataTypes in CPS Core
    • Dataspace & schema-set

    • Dataspace & anchor
    • Dataspace & multiple anchors - To improve performance, if there is a need to fetch data for multiple anchors.
    • Dataspace
  • Payload
    • Based on a subsection or field in the payload. These criteria do need schema-set to be fixed to search in the same set of anchors

Adding payload filtering with DateTime criteria can make the query APIs complicated. Hence, we will implement the basic APIs first and will add complex ones when required.

Proposed APIs

base-url: /cps-temporal/api/v1

NoAPI endpointDescriptionExample
1.

​<base-url>/dataspaces/{dataspace-name}​/anchors/{anchor

URIPurposeExample​/cps​-temporal/api​/v1​/dataspaces​/{dataspace

-name}​

/anchors​

?

x-path=&after=&top=/cps-temporal/api/v1/dataspaces/

after=<epochtimeinnanoseconds>

Return all the data entries for an anchor after the specified epoch
2.​<base-url>dataspaces/{dataspace-name}/schema-sets
?x-path=&after=&top=

...

/{schema-set}?after=<epochtimeinnanoseconds>Return all the data entries for a schema-set after the specified epoch





Open Items