33
#PIWorld ©2019 OSIsoft, LLC OCS for Developers 1 Chad Chisholm, Engineering Program Manager Gregg Leblanc, VP of Product Laurent Garrigues, Sr. Strategic Product Manager

OCS for Developers - OSIsoft

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

OCS for Developers

1

Chad Chisholm, Engineering Program Manager

Gregg Leblanc, VP of Product

Laurent Garrigues, Sr. Strategic Product Manager

Page 2: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

#PIWorld ©2019 OSIsoft, LLC

Talking Points & Demos

• Sign in & Authentication

• PItoOCS Connections

• SDS Types & Streams

• SDS Storage Explorer

• OMF Connections

• OMF Message validation

• API Console

2

• Secondary indexes

• UOMs

• SDS Streams metadata & tags

• Access Controls

• Client Libraries

• Hyperscale demo

• Q&A

Page 3: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

#PIWorld ©2019 OSIsoft, LLC

3

OSIsoft Cloud Services Features

• Managed, secure, multi-tenant data platform

• Operated & maintained by

• High speed, scalable, elastic data ingress

• Flexible, resilient, data storage

• Modern, secure REST APIs

• Built and deployed on

cloud.osisoft.com

Page 4: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

#PIWorld ©2019 OSIsoft, LLC

4

OCS Components

OSIsoft Messaging Format

OMF

Applications

Open

Source

Edge Data

Store

PI

Connectors

PI

Systems

Native

Ingress A

dm

inis

tratio

n

Sharing

Seq. Data Store REST A

PIs

Visualiz. Context

Data Views - Python

- C#

- Java

- NodeJS

- Angular

- OAuth

- Users

- Roles

- ACLs

- Logs

Page 5: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

5 5

Sign In & Authentication

• Identity Providers

• Sign in the OCS Customer Portal

• Users management

Page 6: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

OCS Authentication

6

cloud.osisoft.com

Account A Account A

Account A Account B

Account A . . .

Account A Account Z

Customer

choice

Identity Providers

. . . Cu

sto

mer

Ch

oic

e(s

)

Page 7: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

7 7

PI to OCS

• Overview

• Deployment

Page 8: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

OCS Account

PI Server PI Server PI Server PI Server

Namespaces . . .

PI OCS

Agent

PI OCS

Agent

PI OCS

Agent

PI OCS

Agent

Sequential Data Store

PI System Connections

Page 9: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

9 9

SDS Types & Streams

• Simple Types

• Complex types

Page 10: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

Seq. Data Store

Sequential Data Store - SDS

REST A

PIs

Type(s) Stream(s)

Timestamp

Pressure

Depth

Latitude

Quality Information

Speed

Longitude

Timestamp

Pressure

Depth

Latitude

Quality Information

Speed

Longitude

Timestamp

Pressure

Depth

Latitude

Quality Information

Speed

Longitude

Timestamp

Pressure

Depth

Latitude

Quality Information

Speed

Longitude

Pro

pert

ies

Pro

pert

ies

Namespace

Page 11: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

Complex and Non-Time Index Data Type Example

11

Simple Data Type Indexed by Time

{“Latitude”: “29.7817”,

“Timestamp”: “2017-12-01”}

{“Longitude”: “-95.6112”,

“Timestamp”: “2017-12-01”}

{“Heading”; “42” ,

“Timestamp”: “2017-12-01”}

{“Heart-rate”: “143”,

“timestamp”: “2017-12-01”}

{“Temperature”: “98.6”,

“Timestamp”: “2017-12-01”}

{“StepCount”: “10,000”,

“Timestamp”: “2017-12-01”}

Complex Data Type Indexed by Time &

StepCount

{“Latitude”: “29.7817”,

“Longitude”: “-95.6112”,

“Heading”; “42” ,

“Heart-rate”: “143”,

“Temperature”: “98.6”,

“Timestamp”: “2017-12-01”,

“StepCount”: “10,000”}

Page 12: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

12

Simple Type Timestamp

Quality bit

Depth

Timestamp

Quality bit

Pressure

Timestamp

Quality bit

Speed

Timestamp

Pressure

Depth

Quality Information

Speed

Complex Type Lot #

Density

Ph

Color

Date

Timestamp

Amperage

Voltage

Status

Power

… … …

Pla

tfo

rm P

res

su

re

Ba

tch

Me

as

ure

men

t

Page 13: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

13 13

SDS Storage Explorer

• Type designer

• Stream creation

• Access Control

• Data retrieval

Page 14: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

14 14

OMF Connections

• Create a new connection

• Get Client ID & Client Secret

• OMF Message validation

• OMF Explorer

Page 15: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

Ingress

OMF Ingress

Client ID Subscribers Topics

1001010010100010100101000101010101000101010101

1001010010100010100101000101001

15

Page 16: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

16 16

API Console – Basics

• Creating a stream

• Writing data to the stream

• Querying stream data

Page 17: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

17 17

API Console – Advanced

• Secondary indexes

• UoM conversion

• TableH Output Format

Page 18: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

18

Using Data via Jupyter

Page 19: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

19

Selecting Data via Jupyter

Page 20: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

20

Using Pandas, OCS, and then plotting…

Page 21: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

21

Page 22: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

22

Selecting via multiple indices

Page 23: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

23 23

SDS Streams – Metadata

• PI to OCS generated metadata

• Create metadata

• Find streams by metadata

• area:sltc1

• tags:environmental

• query=pointid:1

Page 24: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

24 24

Autorization – Access Control

• Identities

• Roles

• ACLs

• Namespaces

• SDS Types

• SDS Streams

Page 25: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

OCS Authorization

25

cloud.osisoft.com

Customer

choice

Roles:

Engineer,

Display-Creator

Access Control:

Engineer : Read,

Admin: Full

GET https://.../data

Page 26: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

26 26

Code Samples

• Client Libraries

• Nuget.org

• Console App

Page 27: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

27 27

Hyperscale OCS Cluster

Page 28: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

Smart Small…

OCS Scale Out*

11

* We’re pretty sure this is how it works…

Page 29: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

Get Bigger…

Page 30: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

Monitoring the Cluster…

Page 31: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

Data

• ~2 Billion equivalent PI Tags

• ~100M AMI Meters

• 20 properties each

• ~64M events/sec ingress

• Trillions of events stored

OCS Cluster

• 477 nodes

• 3132 Cores

• 11TB of RAM

Some Numbers…

Page 32: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

32

Questions?

Please wait for

the microphone

State your

name & company

Please remember

DOWNLOAD THE MOBILE APP

Page 33: OCS for Developers - OSIsoft

#PIWorld ©2019 OSIsoft, LLC

33