mirror of
https://github.com/absmach/magistrala.git
synced 2026-08-07 07:14:46 +00:00
99a55a6e24
Signed-off-by: Felix Gateru <felix.gateru@gmail.com>
23 lines
415 B
Go
23 lines
415 B
Go
// Copyright (c) Abstract Machines
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package messaging
|
|
|
|
import "time"
|
|
|
|
const (
|
|
HealthTopicPrefix = "hc"
|
|
StatusOK = "ok"
|
|
)
|
|
|
|
type HealthInfo struct {
|
|
// Status contains adapter status.
|
|
Status string `json:"status"`
|
|
|
|
// Protocol contains the protocol used.
|
|
Protocol string `json:"protocol"`
|
|
|
|
// Timestamp of health check.
|
|
Timestamp time.Time `json:"timestamp"`
|
|
}
|