Skip to content

isabella232/console-statistics-app-csharp

 
 

Repository files navigation

console-statistics-app-csharp

A console-based application that consumes real-time statistics. The application establishes a CometD channel to receive asynchronous statistic updates. Then statistics subscriptions are made based on the contents of the template.json file.

Prerequisits

This applications requires the following API Client libraries:

Authentication Client C#

Statistics Client C#

Running

You can run the console sample by passing in command line arguments as shown in this example:
console-statistics-app-csharp.exe -ApiKey <key> -ClientId <clientId> -BaseUrl <url> -Username <tenant\\username> -Password <p> -AutoLogin <true||false>

Edit the template.json file to define any statistics that you wish to subscribe to.

Commands

Command Aliases Arguments Description
initialize init, i initialize the API using the arguments provided at startup
destroy logout, l logout and cleanup
subscribe subscribe, s subscribe to statistic definitions found in template.json
peek peek, p peek at statistic values for subscribed statistics
delete delete, d delete all statistics subscriptions
configuration config, conf print configuration returned by the server
exit exit, x logout if necessary then exit
help help, ? print the list of available commands

About

A console-based application that consume real-time statistics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%