lb_bitstream 1.1.0

SDKflutter
Platformandroidioswindowslinuxmacos

Logbot bitstream client to be used for API requests to Logbot Graphite Bitstream APIs

Logbot Bitstream SDK for Flutter

This is a package that provides access to graphite bitstream APIs

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Build package: org.openapitools.codegen.languages.DartClientCodegen

Requirements

Dart 2.17 or later

Installation & Usage

Add the dependencies from pub.dev:

dependencies:
  lb_auth:
  lb_bitstream:

lb_auth is always required to make authorized calls to the APIs. To use the SDK on you application see the example below:

import 'package:lb_auth/lb_auth.dart';
import 'package:lb_bitstream/lb_bitstream.dart';

class Example {
  
  Future<void> run() async {
    /// Initialize Logbot SDK by logging in with Logbot Credentials
    await LogbotAuth.init(LogbotCredentials(
      username: username,
      password: password,
      clientId: clientId,
      clientSecret: clientSecret,
    ));
    /// Now you can use every API included on the SDK
    /// for example:
    List<String>? response = await LogbotBitstream.metrics.index();
  }
}

Tests

To run all tests:

flutter test

Documentation for API Endpoints

All URIs are relative to https://platform.logbotiot.cloud/bitstream

ClassMethodHTTP requestDescription
MetricsApiindexGET /metrics/index.jsonLists all the metrics
RenderApirenderGET /renderTimeseries values
TagsApiautoCompleteTagsGET /tags/autoComplete/tagsList all tags
TagsApiautoCompleteValuesGET /tags/autoComplete/valuesFind all the values of the searched tag
TagsApifindGET /findFind a metric

Documentation For Models

Author

Logbot SRL info@logbot.cloud