Documentation
¶
Index ¶
- type Conversation
- type ConversationContext
- type DBTX
- type DatadogAccount
- type DatadogAccountStatusesCache
- type DatadogLogIndex
- type DiscoveryStatus
- type GetCatalogStatusRow
- type GetPolicyStatusRow
- type InsertConversationParams
- type InsertMessageParams
- type ListPolicyCategoryStatusesRow
- type ListServiceStatusesRow
- type LogEvent
- type LogEventPolicy
- type LogEventPolicyStatusesCache
- type LogEventStatusesCache
- type LogEventVolume
- type Message
- type Querier
- type Queries
- func (q *Queries) CountConversations(ctx context.Context) (int64, error)
- func (q *Queries) CountLogEventPolicies(ctx context.Context) (int64, error)
- func (q *Queries) CountLogEvents(ctx context.Context) (int64, error)
- func (q *Queries) CountMessages(ctx context.Context) (int64, error)
- func (q *Queries) CountMessagesByConversation(ctx context.Context, conversationID *string) (int64, error)
- func (q *Queries) CountServices(ctx context.Context) (int64, error)
- func (q *Queries) GetCatalogStatus(ctx context.Context) (GetCatalogStatusRow, error)
- func (q *Queries) GetConversation(ctx context.Context, id *string) (Conversation, error)
- func (q *Queries) GetLatestConversationByAccount(ctx context.Context, accountID *string) (Conversation, error)
- func (q *Queries) GetLatestMessageByConversation(ctx context.Context, conversationID *string) (Message, error)
- func (q *Queries) GetMessage(ctx context.Context, id *string) (Message, error)
- func (q *Queries) GetPolicyStatus(ctx context.Context) (GetPolicyStatusRow, error)
- func (q *Queries) GetService(ctx context.Context, id *string) (Service, error)
- func (q *Queries) InsertConversation(ctx context.Context, arg InsertConversationParams) error
- func (q *Queries) InsertMessage(ctx context.Context, arg InsertMessageParams) error
- func (q *Queries) ListConversationsByAccount(ctx context.Context, accountID *string) ([]Conversation, error)
- func (q *Queries) ListMessagesByConversation(ctx context.Context, conversationID *string) ([]Message, error)
- func (q *Queries) ListMessagesByConversationDesc(ctx context.Context, conversationID *string) ([]Message, error)
- func (q *Queries) ListPolicyCategoryStatuses(ctx context.Context) ([]ListPolicyCategoryStatusesRow, error)
- func (q *Queries) ListServiceStatuses(ctx context.Context) ([]ListServiceStatusesRow, error)
- func (q *Queries) ListServices(ctx context.Context) ([]Service, error)
- func (q *Queries) ListServicesByAccount(ctx context.Context, accountID *string) ([]Service, error)
- func (q *Queries) UpdateConversationTitle(ctx context.Context, arg UpdateConversationTitleParams) error
- func (q *Queries) UpdateMessageContent(ctx context.Context, arg UpdateMessageContentParams) error
- func (q *Queries) UpdateMessageMeta(ctx context.Context, arg UpdateMessageMetaParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Service
- type ServiceLogVolume
- type ServiceStatusesCache
- type Team
- type UpdateConversationTitleParams
- type UpdateMessageContentParams
- type UpdateMessageMetaParams
- type View
- type ViewFavorite
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conversation ¶
type ConversationContext ¶
type DatadogAccount ¶
type DatadogAccountStatusesCache ¶
type DatadogAccountStatusesCache struct {
ID *string
AccountID *string
DatadogAccountID *string
LogActiveServices *int64
LogAnalyzedCount *int64
LogAnalyzingCount *int64
LogAnalyzingServices *int64
LogApprovedPolicyCount *int64
LogBrokenServices *int64
LogBytesPerHour *float64
LogCleanCount *int64
LogCostPerHourUsd *float64
LogDisabledServices *int64
LogDiscoveredVolumeInWindow *int64
LogDiscoveringCount *int64
LogDiscoveringServices *int64
LogDismissedPolicyCount *int64
LogError *string
LogErrorAt *string
LogEstimablePolicyCount *int64
LogEstimatedBytesReductionPerHour *float64
LogEstimatedCostReductionPerHourUsd *float64
LogEstimatedVolumeReductionPerHour *float64
LogEventCount *int64
LogInactiveServices *int64
LogObservedBytesPerHourAfter *float64
LogObservedBytesPerHourBefore *float64
LogObservedCostPerHourAfterUsd *float64
LogObservedCostPerHourBeforeUsd *float64
LogObservedVolumePerHourAfter *float64
LogObservedVolumePerHourBefore *float64
LogPendingCount *int64
LogPendingPolicyCount *int64
LogPercentComplete *float64
LogPolicyCount *int64
LogQuarantinedCount *int64
LogReadyServices *int64
LogResolvedCount *int64
LogServiceCount *int64
LogServiceVolumeInWindow *int64
LogStaleServices *int64
LogStatus *string
LogVolumePerHour *float64
LogWarning *string
LogWarningAt *string
ReadyForUse *int64
RefreshedAt *string
}
type DatadogLogIndex ¶
type DiscoveryStatus ¶
type DiscoveryStatus struct {
ID *string
AccountID *string
CompletedAt *string
ConsecutiveErrors *int64
ConsecutiveWarnings *int64
CreatedAt *string
DatadogAccountID *string
DiscoveryType *string
LastError *string
LastErrorAt *string
LastWarning *string
LastWarningAt *string
ServiceID *string
StartedAt *string
UpdatedAt *string
}
type GetCatalogStatusRow ¶
type GetPolicyStatusRow ¶
type GetPolicyStatusRow struct {
ReadyForUse int64
PendingPolicyCount int64
PolicyCount int64
ApprovedPolicyCount int64
EstimatedCostPerHour *float64
EstimatedVolumePerHour float64
EstimatedBytesPerHour float64
ObservedCostBefore *float64
ObservedCostAfter *float64
ObservedVolumeBefore float64
ObservedVolumeAfter float64
TotalCostPerHour *float64
TotalVolumePerHour float64
TotalBytesPerHour float64
}
type InsertMessageParams ¶
type ListServiceStatusesRow ¶
type LogEventPolicy ¶
type LogEventPolicy struct {
ID *string
AccountID *string
Analysis *string
ApprovedAt *string
ApprovedBy *string
Benefits *string
Category *string
CreatedAt *string
DismissedAt *string
DismissedBy *string
LogEventID *string
Model *string
Objectivity *string
RiskLevel *string
UpdatedAt *string
WorkspaceID *string
}
type LogEventPolicyStatusesCache ¶
type LogEventPolicyStatusesCache struct {
ID *string
AccountID *string
ApprovedAt *string
Benefits *string
Category *string
CreatedAt *string
DismissedAt *string
EstimatedBytesReductionPerHour *float64
EstimatedCostReductionPerHourUsd *float64
EstimatedVolumeReductionPerHour *float64
LogEventID *string
Objectivity *string
PolicyID *string
RefreshedAt *string
RiskLevel *string
Status *string
WorkspaceID *string
}
type LogEventStatusesCache ¶
type LogEventStatusesCache struct {
ID *string
AccountID *string
ApprovedPolicyCount *int64
BytesPerHour *float64
CostPerHourUsd *float64
DatadogAccountID *string
DismissedPolicyCount *int64
Error *string
EstimablePolicyCount *int64
EstimatedBytesReductionPerHour *float64
EstimatedCostReductionPerHourUsd *float64
EstimatedVolumeReductionPerHour *float64
HasBeenAnalyzed *int64
HasVolumes *int64
LogEventID *string
ObservedBytesPerHourAfter *float64
ObservedBytesPerHourBefore *float64
ObservedCostPerHourAfterUsd *float64
ObservedCostPerHourBeforeUsd *float64
ObservedVolumePerHourAfter *float64
ObservedVolumePerHourBefore *float64
PendingPolicyCount *int64
PolicyCount *int64
RefreshedAt *string
ServiceID *string
Status *string
VolumePerHour *float64
}
type LogEventVolume ¶
type Querier ¶
type Querier interface {
CountConversations(ctx context.Context) (int64, error)
CountLogEventPolicies(ctx context.Context) (int64, error)
CountLogEvents(ctx context.Context) (int64, error)
CountMessages(ctx context.Context) (int64, error)
CountMessagesByConversation(ctx context.Context, conversationID *string) (int64, error)
CountServices(ctx context.Context) (int64, error)
GetCatalogStatus(ctx context.Context) (GetCatalogStatusRow, error)
GetConversation(ctx context.Context, id *string) (Conversation, error)
GetLatestConversationByAccount(ctx context.Context, accountID *string) (Conversation, error)
GetLatestMessageByConversation(ctx context.Context, conversationID *string) (Message, error)
GetMessage(ctx context.Context, id *string) (Message, error)
GetPolicyStatus(ctx context.Context) (GetPolicyStatusRow, error)
GetService(ctx context.Context, id *string) (Service, error)
InsertConversation(ctx context.Context, arg InsertConversationParams) error
InsertMessage(ctx context.Context, arg InsertMessageParams) error
ListConversationsByAccount(ctx context.Context, accountID *string) ([]Conversation, error)
ListMessagesByConversation(ctx context.Context, conversationID *string) ([]Message, error)
ListMessagesByConversationDesc(ctx context.Context, conversationID *string) ([]Message, error)
ListPolicyCategoryStatuses(ctx context.Context) ([]ListPolicyCategoryStatusesRow, error)
ListServiceStatuses(ctx context.Context) ([]ListServiceStatusesRow, error)
ListServices(ctx context.Context) ([]Service, error)
ListServicesByAccount(ctx context.Context, accountID *string) ([]Service, error)
UpdateConversationTitle(ctx context.Context, arg UpdateConversationTitleParams) error
UpdateMessageContent(ctx context.Context, arg UpdateMessageContentParams) error
UpdateMessageMeta(ctx context.Context, arg UpdateMessageMetaParams) error
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountConversations ¶
func (*Queries) CountLogEventPolicies ¶
func (*Queries) CountLogEvents ¶
func (*Queries) CountMessagesByConversation ¶
func (*Queries) GetCatalogStatus ¶
func (q *Queries) GetCatalogStatus(ctx context.Context) (GetCatalogStatusRow, error)
func (*Queries) GetConversation ¶
func (*Queries) GetLatestConversationByAccount ¶
func (*Queries) GetLatestMessageByConversation ¶
func (*Queries) GetMessage ¶
func (*Queries) GetPolicyStatus ¶
func (q *Queries) GetPolicyStatus(ctx context.Context) (GetPolicyStatusRow, error)
func (*Queries) GetService ¶
func (*Queries) InsertConversation ¶
func (q *Queries) InsertConversation(ctx context.Context, arg InsertConversationParams) error
func (*Queries) InsertMessage ¶
func (q *Queries) InsertMessage(ctx context.Context, arg InsertMessageParams) error
func (*Queries) ListConversationsByAccount ¶
func (*Queries) ListMessagesByConversation ¶
func (*Queries) ListMessagesByConversationDesc ¶
func (*Queries) ListPolicyCategoryStatuses ¶
func (q *Queries) ListPolicyCategoryStatuses(ctx context.Context) ([]ListPolicyCategoryStatusesRow, error)
func (*Queries) ListServiceStatuses ¶
func (q *Queries) ListServiceStatuses(ctx context.Context) ([]ListServiceStatusesRow, error)
func (*Queries) ListServices ¶
func (*Queries) ListServicesByAccount ¶
func (*Queries) UpdateConversationTitle ¶
func (q *Queries) UpdateConversationTitle(ctx context.Context, arg UpdateConversationTitleParams) error
func (*Queries) UpdateMessageContent ¶
func (q *Queries) UpdateMessageContent(ctx context.Context, arg UpdateMessageContentParams) error
func (*Queries) UpdateMessageMeta ¶
func (q *Queries) UpdateMessageMeta(ctx context.Context, arg UpdateMessageMetaParams) error
type ServiceLogVolume ¶
type ServiceStatusesCache ¶
type ServiceStatusesCache struct {
ID *string
AccountID *string
DatadogAccountID *string
LogAnalyzedCount *int64
LogAnalyzingCount *int64
LogApprovedPolicyCount *int64
LogBytesPerHour *float64
LogCleanCount *int64
LogCostPerHourUsd *float64
LogDiscoveredVolumeInWindow *int64
LogDiscoveringCount *int64
LogDismissedPolicyCount *int64
LogError *string
LogErrorAt *string
LogEstimablePolicyCount *int64
LogEstimatedBytesReductionPerHour *float64
LogEstimatedCostReductionPerHourUsd *float64
LogEstimatedVolumeReductionPerHour *float64
LogEventCount *int64
LogObservedBytesPerHourAfter *float64
LogObservedBytesPerHourBefore *float64
LogObservedCostPerHourAfterUsd *float64
LogObservedCostPerHourBeforeUsd *float64
LogObservedVolumePerHourAfter *float64
LogObservedVolumePerHourBefore *float64
LogPendingCount *int64
LogPendingPolicyCount *int64
LogPercentComplete *float64
LogPolicyCount *int64
LogQuarantinedCount *int64
LogResolvedCount *int64
LogServiceVolumeInWindow *int64
LogStatus *string
LogVolumePerHour *float64
LogWarning *string
LogWarningAt *string
RefreshedAt *string
ServiceID *string
}
type UpdateMessageMetaParams ¶
type ViewFavorite ¶
Click to show internal directories.
Click to hide internal directories.