lb_moonlogs
Moonlogs API
Moonlogs API for Flutter SDK - Moonlogs SDK for Flutter that handles Alarms, Audits Events.
Requirements
Dart 2.17 or later
Installation & Usage
Add the dependencies from pub.flutter-io.cn:
dependencies:
lb_moonlogs:
lb_auth:
Getting Started
lb_moonlogs is always required to make authorized calls to the APIs.
To use the SDK on you application see the example below:
import 'package:lb_moonlogs/api.dart';
import 'package:lb_auth/lb_auth.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 List<Alarm>? result = await LogbotMoonlogs.alarmApi.getAlarmLog();
}
}
Documentation for API Endpoints
All URIs are relative to https://platform.logbotiot.cloud/lb-moonlogger
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AlarmApi | getActiveAlarmByDevice | GET /api/alarm/devices/{device_id}/active/ | |
| AlarmApi | getAlarmGroupsByDeviceAndAlarm | GET /api/alarm/devices/{device_id}/alarms/{alarm_id}/calc | |
| AlarmApi | getAlarmLog | GET /api/alarm | |
| AlarmApi | getAlarmLogByID | GET /api/alarm/id/{id} | |
| AlarmApi | getDeviceAlarmIds | GET /api/alarm/devices/{device_id}/alarm_ids/ | |
| AlarmApi | getDeviceHistoricalAlarms | GET /api/alarm/devices/{device_id}/historical/ | |
| AuditApi | getAuditLog | GET /api/audit | |
| AuditApi | getAuditLogByID | GET /api/audit/{id} | |
| AuditApi | searchAuditLogs | POST /api/audit/search | |
| BasicApi | getHealth | GET /health | |
| BasicApi | getVersion | GET /version |
Documentation For Models
- AlarmGroupsResponseData
- AlarmHistGroups
- Alarm
- AuditActor
- AuditObject
- AuditRecordRequest
- AuditRecordResponse
- DeviceActiveAlarmGroupsValue
- DeviceHistAlarmGroupsValue
- Level
- Meta
- SchemaField
- SchemaRequest
- SchemaResponse
Author
Logbot SRL info@logbot.cloud