dash

package module
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: AGPL-3.0 Imports: 23 Imported by: 0

README

apiservice dash

The apiservice dash collects samples of all elements within an application. It provides the collected samples together with the belonging element name at the resource /dash/sample with server-sent events (sse).

Example

js
const eventSource = new EventSource("/dash/sample");

eventSource.onmessage = function(event) {
    data = JSON.parse(event.data);
    console.log(event.data);
}
{
  "element_name":"/current/sink",
  "payload":{
    "timestamp":{
      "incarnation":10,
      "system_time":4232322323
    },
    "data":{
      "distance":{
        "value":24.535,
        "unit":"mm"
      }
    }
  }
}

Dual License

This software is by default licensed via the GNU Affero General Public License version 3. However it is also available with a commercial license on request (https://perinet.io/contact).

Documentation

Overview

* Copyright (c) Perinet GmbH * All rights reserved * * This software is dual-licensed: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License version 3 as * published by the Free Software Foundation. For the terms of this * license, see http://www.fsf.org/licensing/licenses/agpl-3.0.html, * or contact us at https://server.io/contact/ when you want license * this software under a commercial license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DashSamplesGet added in v1.1.0

func DashSamplesGet(p periHttp.PeriHttp)

func DashSamplesGetLast added in v1.1.0

func DashSamplesGetLast(p periHttp.PeriHttp)

func DashStatsGet added in v1.1.0

func DashStatsGet(p periHttp.PeriHttp)

func PathsGet

func PathsGet() []httpserver.PathInfo

func Resubscribe added in v1.1.0

func Resubscribe()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL