mschellenger96 / OCS-Samples

The OSIsoft Cloud Services API samples are introductory, language-specific examples of programming against OCS. They are intended as instructional samples only.

Home Page:https://cloud.osisoft.com/samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OCS Samples

OSIsoft Cloud Services (OCS) is a highly flexible cloud-based platform that provides scalable, elastic, centralized environment to aggregate data for reporting, advanced analytics, and third-party applications. OCS is powered by OSIsoft's Sequential Data Store (SDS). In this GitHub repo, we provide samples which will help you get started with the OCS API against your OCS instance.

There are three types of samples/apps in the repo:

  • getting-started icon Getting Started - OCS focused samples for a task, usually implemented as a simple console app. This also includes base libraries that may be used in other apps.

  • ingress icon Ingress apps - Real world examples of applications focused on sending data to OCS.

  • e2e icon End-End apps - Real world examples of web, desktop, mobile, and other applications using OCS data.

Some tasks and individual language examples may have some additional labels as follows:

  • * denotes that the language example uses the rest API directily instead of a library

  • ctp icon This task and code uses services that are currently in preview. If you are interested in this functionality, please contact OCS support.

The official OCS samples are divided in multiple categories depending on the scenario and problem/task, accessible through the following table:

Task Description Languages        Test Status       
Client Credential Authentication getting-started icon Covers the client credential flow of authentication against OCS. Click here For more Details on the various credential patterns. .NET
Hybrid Authentication getting-started icon Covers the hybrid flow of authentication against OCS. Click here For more Details on the various credential patterns. .NET
Implicit Authentication getting-started icon Covers the implicit flow of authentication against OCS. Click here For more Details on the various credential patterns. .NET and JavaScript
SDS Application getting-started icon Covers typical operations against the Sds, including creating, updating, and deleting types, streams and events. This is the recommended starting example, and a good a base for all other Tasks. Details .NET
.NET*
JAVA
Angular
nodeJS
Python2
Python3


Build Status



Build Status
Ingress Management getting-started icon Covers management operations for Ingress, including creating and deleting publishers, ingress tokens, topics, and subscriptions. .NET   
UOM getting-started icon Covers the basic functionality of the UOM system on OCS .NET   
Sample Libraries getting-started icon These sample libraries are used as the base for the other samples. They are designed to be straightforward implementations of the REST APIs. They are for use in the samples. Java
Python3
ctp icon Dataviews getting-started icon These samples highlight basic operations of Dataviews for OCS, including creation, updating, getting data from and deletion of dataviews. Details Java
Python3
Build Status
Build Status

Credentials

A credential config.ini or app.config file is used in the examples unless otherwise noted in the example.

 Note: This is not a secure way to store credentials.  This is to be used at your own risk.  

You will need to modify these files locally when you run the samples.

Request for example

Please raise an issue if you would like to see a new task, a new example inside of a task, or an existing example in a particular langauge.

Contributions

If you wish to contribute please take a look at the contribution guide.

License

OCS Samples are licensed under the Apache 2 license.

About

The OSIsoft Cloud Services API samples are introductory, language-specific examples of programming against OCS. They are intended as instructional samples only.

https://cloud.osisoft.com/samples

License:Apache License 2.0


Languages

Language:JavaScript 86.5%Language:Python 5.3%Language:Java 3.0%Language:C# 2.8%Language:TypeScript 2.0%Language:HTML 0.3%Language:CSS 0.0%