Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

Module summary

Audit module is the most important module, it provides user management, licensing and auditing services to the other modules. It automatically recognizes other modules, that are running on the same machine or on different servers - either using multicast or IP white list.

Info
Audit module is the main communication channel for the BellaDati IoT console too.
Tip

See Audit configuration to learn more about all configuration options.

Roles

This module supports following roles:

VerticleRolePermitted operations
InstanceADMINAll operations in all modules
AuditVIEWERGET /status, GET /modules, GET /module, GET /sensors

Module states

This module can have one of following statuses:

VerticleStatusDescription
AuditUPModule is up and running. It operates without any specific limitations.
PAUSEDModule is paused but it operates without any specific limitations. Request to "GET /" ends with response code 405.

API endpoints

This module provides following HTTP endpoints:

PathMethodDescriptionURL ParametersExample
/GETReturns plain text with ECHO message (should be used in load balancer to detect UP/DOWN status) https://localhost:8000/
/statusGETReturns JSON object that contains internal state of audit verticle (e.g. total count of sensors) https://localhost:8000/status
/modulesGETReturns JSON array that contains all modules registered in service discovery infrastructure https://localhost:8000/modules
/moduleGETReturns status and configuration of the module specified by it's name
  • name = module_name
https://localhost:8000/module?name=Receiver_01
/modulePOSTSets the configuration to the module specified by name. ADMIN role is required.
  • name = module_name
  • POST body content = config in JSON format
https://localhost:8000/module?name=Receiver_01
/reloadPOSTForces reloading configuration of module specified by name. ADMIN role is required.
  • name = module_name
https://localhost:8000/reload?name=Receiver_01
/configPOSTPost new config to the module specified by name
  • name = module_name
https://localhost:8000/config?name=Receiver_01
/logsGETRetrieves the current log entries for audit or for specified module
  • (optional) name = module_name
https://localhost:8000/logs?name=Receiver_01
/sensorsGETReturns JSON array that contains status of all sensors
  • order = "ASC" / "DESC" (default: "ASC")
  • start = from timestamp (default: 0)
  • stop = to timestamp
  • receiver_id = receiver identification
  • sensor_id = sensor identification
  • limit = page size (default: 100)
https://localhost:8000/sensors
/pauseGETSets status PAUSED for audit verticle immediately. Returns response from "GET /status" endpoint (see above) https://localhost:8000/pause
/resumeGETSets status UP for audit verticle immediately. Returns response from "GET /status" endpoint (see above) https://localhost:8000/resume
/logoutGETExecutes logout of currently logged in user https://localhost:8000/logout

On this page

Table of Contents

Sv translation
languageja

モジュールの概要

Auditモジュールは最も重要なモジュールであり、他のモジュールにユーザー管理、ライセンス、auditing(監査)サービスを提供します。マルチキャストまたはIPホワイトリストを使用して、同じマシンまたは異なるサーバーで実行されている他のモジュールを自動的に認識します。

Info

Auditモジュールは、BellaDati IoTコンソールの主要な通信チャネルでもあります。


Tip

すべての構成オプションの詳細については、 Audit configurationをご覧ください。

ロール

このモジュールは次の役割をサポートします:

VerticleRole許可された操作
InstanceADMINすべてのモジュールのすべての操作
AuditVIEWERGET /status, GET /modules, GET /module, GET /sensors

モジュールのステータス

このモジュールは、次のいずれかのステータスになります:

VerticleStatus説明
AuditUP

モジュールは稼働しています。特定の制限なしで動作します。

PAUSED

モジュールは一時停止していますが、特定の制限なしで動作しています。 "GET /"へのリクエストは、レスポンスコード405で終了します。

APIエンドポイント

このモジュールは、次のHTTPエンドポイントを提供します:

PathMethod説明URLパラメーター
/GET

ECHOメッセージ付きのプレーンテキストを返します (UP/DOWNステータスを検出するためにロードバランサーで使用する必要があります)


https://localhost:8000/
/statusGET

Auditバーティクルの内部ステータス (センサーの合計数など) を含むJSONオブジェクトを返します


https://localhost:8000/status
/modulesGET

サービス検出インフラストラクチャに登録されているすべてのモジュールを含むJSON配列を返します


https://localhost:8000/modules
/moduleGET

名前で指定されたモジュールのステータスと構成を返します

  • name = module_name
https://localhost:8000/module?name=Receiver_01
/modulePOST

名前で指定されたモジュールに構成を設定します。ADMINロールが必要です

  • name = module_name
  • POST body content = config in JSON format
https://localhost:8000/module?name=Receiver_01
/reloadPOST

名前で指定されたモジュールの構成を強制的に再読み込みします。 ADMINロールが必要です

  • name = module_name
https://localhost:8000/reload?name=Receiver_01
/configPOST

名前で指定されたモジュールに新しい構成をポストします

  • name = module_name
https://localhost:8000/config?name=Receiver_01
/logsGET

Auditまたは指定されたモジュールの現在のログエントリを取得します

  • (optional) name = module_name
https://localhost:8000/logs?name=Receiver_01
/sensorsGET

すべてのセンサーのステータスを含むJSON配列を返します

  • order = "ASC" / "DESC" (default: "ASC")
  • start = from timestamp (default: 0)
  • stop = to timestamp
  • receiver_id = receiver identification
  • sensor_id = sensor identification
  • limit = page size (default: 100)
https://localhost:8000/sensors
/pauseGET

Auditバーティクルのステータスを直ちにPAUSEDに設定します。"GET /status"エンドポイントから応答を返します (上記を参照)


https://localhost:8000/pause
/resumeGET

Auditバーティクルのステータスを直ちにUPに設定します。"GET /status"エンドポイントから応答を返します (上記を参照)


https://localhost:8000/resume
/logoutGET

現在ログインしているユーザーのログアウトを実行します


https://localhost:8000/logout


このページでは

Table of Contents