mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-04 00:10:40 +08:00

* feat: added license manager and feature flags * feat: completed org domain api * chore: checking in saml auth handler code * feat: added signup with sso * feat: added login support for admins * feat: added pem support for certificate * ci(build-workflow): 👷 include EE query-service * fix: 🐛 update package name * chore(ee): 🔧 LD_FLAGS related changes Signed-off-by: Prashant Shahi <prashant@signoz.io> Co-authored-by: Prashant Shahi <prashant@signoz.io> Co-authored-by: nityanandagohain <nityanandagohain@gmail.com>
36 lines
1.1 KiB
Go
36 lines
1.1 KiB
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type UsageSnapshot struct {
|
|
CurrentLogSizeBytes uint64 `json:"currentLogSizeBytes"`
|
|
CurrentLogSizeBytesColdStorage uint64 `json:"currentLogSizeBytesColdStorage"`
|
|
CurrentSpansCount uint64 `json:"currentSpansCount"`
|
|
CurrentSpansCountColdStorage uint64 `json:"currentSpansCountColdStorage"`
|
|
CurrentSamplesCount uint64 `json:"currentSamplesCount"`
|
|
CurrentSamplesCountColdStorage uint64 `json:"currentSamplesCountColdStorage"`
|
|
}
|
|
|
|
type UsageBase struct {
|
|
Id uuid.UUID `json:"id" db:"id"`
|
|
InstallationId uuid.UUID `json:"installationId" db:"installation_id"`
|
|
ActivationId uuid.UUID `json:"activationId" db:"activation_id"`
|
|
CreatedAt time.Time `json:"createdAt" db:"created_at"`
|
|
FailedSyncRequest int `json:"failedSyncRequest" db:"failed_sync_request_count"`
|
|
}
|
|
|
|
type UsagePayload struct {
|
|
UsageBase
|
|
Metrics UsageSnapshot `json:"metrics"`
|
|
SnapshotDate time.Time `json:"snapshotDate"`
|
|
}
|
|
|
|
type Usage struct {
|
|
UsageBase
|
|
Snapshot string `db:"snapshot"`
|
|
}
|