Documentation ¶
Overview ¶
Package model contains the data models for the Signoz API. copied from https://github.com/SigNoz/signoz/tree/v0.36.1/pkg/query-service/model
Index ¶
- Constants
- Variables
- func ReadYaml(path string, v interface{}) error
- type AggregateOperator
- type AlertDiscovery
- type AlertingRuleResponse
- type AlertsInfo
- type ApdexSettings
- type ApiError
- type BaseApiError
- type ChangePasswordRequest
- type ChannelItem
- type ClickHouseQuery
- type ClickHouseQueryDashboard
- type ClusterInfo
- type CompositeMetricQuery
- type CountErrorsParams
- type DBResponseComponent
- type DBResponseHttpCode
- type DBResponseHttpHost
- type DBResponseHttpMethod
- type DBResponseHttpRoute
- type DBResponseHttpUrl
- type DBResponseMinMax
- type DBResponseOperation
- type DBResponseRPCMethod
- type DBResponseServiceName
- type DBResponseStatusCodeMethod
- type DBResponseTTL
- type DBResponseTotal
- type DashboardData
- type DashboardVar
- type DashboardVars
- type DashboardsInfo
- type Data
- type DataSource
- type Datasource
- type DiskItem
- type ErrEmailRequired
- type ErrFeatureUnavailable
- type ErrNoOrgFound
- type ErrPasswordRequired
- type ErrSignupFailed
- type Error
- type ErrorType
- type ErrorWithSpan
- type Event
- type Feature
- type FeatureSet
- type FilterItem
- type FilterSet
- type GetErrorParams
- type GetFieldsResponse
- type GetFilterSpansResponse
- type GetFilterSpansResponseItem
- type GetFilteredSpanAggregatesParams
- type GetFilteredSpansAggregatesResponse
- type GetFilteredSpansParams
- type GetLogsAggregatesResponse
- type GetServiceOverviewParams
- type GetServicesParams
- type GetTTLParams
- type GetTTLResponseItem
- type GetTopOperationsParams
- type GetUsageParams
- type GetVersionResponse
- type GrafanaJSON
- type Group
- type IngestionKey
- type InstantQueryMetricsParams
- type InvitationObject
- type InvitationResponseObject
- type InviteRequest
- type InviteResponse
- type Layout
- type ListErrorsParams
- type LogField
- type LoginRequest
- type LoginResponse
- type LogsAggregateParams
- type LogsAggregatesDBResponseItem
- type LogsAggregatesResponseItem
- type LogsFilterParams
- type LogsTailClient
- type MetricAutocompleteTagParams
- type MetricPoint
- type MetricQuery
- type MetricsBuilder
- type NextPrevErrorIDs
- type NextPrevErrorIDsDBResponse
- type Operator
- type Organization
- type OtelSpanRef
- type PanelType
- type Panels
- type PrecheckResponse
- type PromQuery
- type PromQueryDashboard
- type Query
- type QueryBuilder
- type QueryData
- type QueryDataDashboard
- type QueryDataV2
- type QueryRangeParams
- type QueryRangeParamsV2
- type QueryType
- type ReduceToOperator
- type ResetPasswordEntry
- type ResetPasswordRequest
- type RuleResponseItem
- type SearchSpanDBResponseItem
- type SearchSpanResponseItem
- func (item *SearchSpanResponseItem) GetValues() []interface{}
- func (v SearchSpanResponseItem) MarshalEasyJSON(w *jwriter.Writer)
- func (v SearchSpanResponseItem) MarshalJSON() ([]byte, error)
- func (v *SearchSpanResponseItem) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SearchSpanResponseItem) UnmarshalJSON(data []byte) error
- type SearchSpansResult
- type Series
- type ServiceErrorItem
- type ServiceItem
- type ServiceMapDependencyResponseItem
- type ServiceOverviewItem
- type ServiceSkipConfig
- type SetTTLResponseItem
- type ShowCreateTableStatement
- type SignozLog
- type SkipConfig
- type SpanAggregatesDBResponseItem
- type SpanAggregatesResponseItem
- type SpanFilterParams
- type SpanFiltersResponse
- type TTLParams
- type TTLStatusItem
- type TagDataType
- type TagFilterParams
- type TagFilters
- type TagKey
- type TagQuery
- type TagQueryBool
- type TagQueryNumber
- type TagQueryParam
- type TagQueryString
- type TagTelemetryData
- type TagType
- type TagValues
- type TagsInfo
- type TopOperationsItem
- type UpdateField
- type UsageItem
- type User
- type UserFlag
- type UserJwtObject
- type UserPayload
- type UserRole
- type Variable
- type Widget
Constants ¶
const ( StringTagMapCol = "stringTagMap" NumberTagMapCol = "numberTagMap" BoolTagMapCol = "boolTagMap" ResourceTagMapCol = "resourceTagsMap" )
const AlertChannelMsTeams = "ALERT_CHANNEL_MSTEAMS"
const AlertChannelOpsgenie = "ALERT_CHANNEL_OPSGENIE"
const AlertChannelPagerduty = "ALERT_CHANNEL_PAGERDUTY"
const AlertChannelSlack = "ALERT_CHANNEL_SLACK"
const AlertChannelWebhook = "ALERT_CHANNEL_WEBHOOK"
const CustomMetricsFunction = "CUSTOM_METRICS_FUNCTION"
const DisableUpsell = "DISABLE_UPSELL"
const OSS = "OSS"
const QueryBuilderAlerts = "QUERY_BUILDER_ALERTS"
const QueryBuilderPanels = "QUERY_BUILDER_PANELS"
const SmartTraceDetail = "SMART_TRACE_DETAIL"
const UseSpanMetrics = "USE_SPAN_METRICS"
Variables ¶
var BasicPlan = FeatureSet{ Feature{ Name: OSS, Active: true, Usage: 0, UsageLimit: -1, Route: "", }, Feature{ Name: DisableUpsell, Active: false, Usage: 0, UsageLimit: -1, Route: "", }, Feature{ Name: SmartTraceDetail, Active: false, Usage: 0, UsageLimit: -1, Route: "", }, Feature{ Name: CustomMetricsFunction, Active: false, Usage: 0, UsageLimit: -1, Route: "", }, Feature{ Name: QueryBuilderPanels, Active: true, Usage: 0, UsageLimit: 20, Route: "", }, Feature{ Name: QueryBuilderAlerts, Active: true, Usage: 0, UsageLimit: 10, Route: "", }, Feature{ Name: UseSpanMetrics, Active: false, Usage: 0, UsageLimit: -1, Route: "", }, Feature{ Name: AlertChannelSlack, Active: true, Usage: 0, UsageLimit: -1, Route: "", }, Feature{ Name: AlertChannelWebhook, Active: true, Usage: 0, UsageLimit: -1, Route: "", }, Feature{ Name: AlertChannelPagerduty, Active: true, Usage: 0, UsageLimit: -1, Route: "", }, Feature{ Name: AlertChannelOpsgenie, Active: true, Usage: 0, UsageLimit: -1, Route: "", }, Feature{ Name: AlertChannelMsTeams, Active: false, Usage: 0, UsageLimit: -1, Route: "", }, }
var (
ErrorTokenExpired = errors.New("Token is expired")
)
Functions ¶
Types ¶
type AggregateOperator ¶
type AggregateOperator int
const ( NOOP AggregateOperator COUNT COUNT_DISTINCT SUM AVG MAX MIN P05 P10 P20 P25 P50 P75 P90 P95 P99 RATE SUM_RATE RATE_SUM RATE_AVG RATE_MAX RATE_MIN HIST_QUANTILE_50 HIST_QUANTILE_75 HIST_QUANTILE_90 HIST_QUANTILE_95 HIST_QUANTILE_99 )
type AlertDiscovery ¶
type AlertDiscovery struct {
Alerts []*AlertingRuleResponse `json:"rules"`
}
AlertDiscovery has info for all active alerts.
type AlertingRuleResponse ¶
type AlertingRuleResponse struct { Labels labels.Labels `json:"labels"` Annotations labels.Labels `json:"annotations"` State string `json:"state"` Name string `json:"name"` Id int `json:"id"` }
Alert has info for an alert.
type AlertsInfo ¶
type ApdexSettings ¶
type ApiError ¶
func BadRequest ¶
BadRequest returns a ApiError object of bad request
func BadRequestStr ¶
BadRequestStr returns a ApiError object of bad request
func InternalError ¶
InternalError returns a ApiError object of internal type
func NotFoundError ¶
func UnauthorizedError ¶
func UnavailableError ¶
func WrapApiError ¶
type BaseApiError ¶
type ChangePasswordRequest ¶
type ChannelItem ¶
type ClickHouseQuery ¶
type ClusterInfo ¶
type ClusterInfo struct { ShardNum uint32 `json:"shard_num" ch:"shard_num"` ShardWeight uint32 `json:"shard_weight" ch:"shard_weight"` ReplicaNum uint32 `json:"replica_num" ch:"replica_num"` ErrorsCount uint32 `json:"errors_count" ch:"errors_count"` SlowdownsCount uint32 `json:"slowdowns_count" ch:"slowdowns_count"` EstimatedRecoveryTime uint32 `json:"estimated_recovery_time" ch:"estimated_recovery_time"` }
func (*ClusterInfo) GetMapFromStruct ¶
func (ci *ClusterInfo) GetMapFromStruct() map[string]interface{}
type CompositeMetricQuery ¶
type CompositeMetricQuery struct { BuilderQueries map[string]*MetricQuery `json:"builderQueries,omitempty"` ClickHouseQueries map[string]*ClickHouseQuery `json:"chQueries,omitempty"` PromQueries map[string]*PromQuery `json:"promQueries,omitempty"` PanelType PanelType `json:"panelType"` QueryType QueryType `json:"queryType"` }
type CountErrorsParams ¶
type DBResponseComponent ¶
type DBResponseHttpCode ¶
type DBResponseHttpHost ¶
type DBResponseHttpMethod ¶
type DBResponseHttpRoute ¶
type DBResponseHttpUrl ¶
type DBResponseMinMax ¶
type DBResponseOperation ¶
type DBResponseRPCMethod ¶
type DBResponseServiceName ¶
type DBResponseTTL ¶
type DBResponseTTL struct {
EngineFull string `ch:"engine_full"`
}
type DBResponseTotal ¶
type DBResponseTotal struct {
NumTotal uint64 `ch:"numTotal"`
}
type DashboardData ¶
type DashboardVar ¶
type DashboardVar struct {
VariableValues []interface{} `json:"variableValues"`
}
type DashboardVars ¶
type DashboardsInfo ¶
type Datasource ¶
type ErrEmailRequired ¶
type ErrEmailRequired struct{}
func (ErrEmailRequired) Error ¶
func (errEmailRequired ErrEmailRequired) Error() string
type ErrFeatureUnavailable ¶
type ErrFeatureUnavailable struct {
}custom errors related to registration
func (ErrFeatureUnavailable) Error ¶
func (errFeatureUnavailable ErrFeatureUnavailable) Error() string
type ErrNoOrgFound ¶
type ErrNoOrgFound struct{}
func (ErrNoOrgFound) Error ¶
func (errNoOrgFound ErrNoOrgFound) Error() string
type ErrPasswordRequired ¶
type ErrPasswordRequired struct{}
func (ErrPasswordRequired) Error ¶
func (errPasswordRequired ErrPasswordRequired) Error() string
type ErrSignupFailed ¶
type ErrSignupFailed struct{}
func (ErrSignupFailed) Error ¶
func (errSignupFailed ErrSignupFailed) Error() string
type Error ¶
type Error struct { ExceptionType string `json:"exceptionType" ch:"exceptionType"` ExceptionMsg string `json:"exceptionMessage" ch:"exceptionMessage"` ExceptionCount uint64 `json:"exceptionCount" ch:"exceptionCount"` LastSeen time.Time `json:"lastSeen" ch:"lastSeen"` FirstSeen time.Time `json:"firstSeen" ch:"firstSeen"` ServiceName string `json:"serviceName" ch:"serviceName"` GroupID string `json:"groupID" ch:"groupID"` }
type ErrorType ¶
type ErrorType string
const ( ErrorNone ErrorType = "" ErrorTimeout ErrorType = "timeout" ErrorCanceled ErrorType = "canceled" ErrorExec ErrorType = "execution" ErrorBadData ErrorType = "bad_data" ErrorInternal ErrorType = "internal" ErrorNotFound ErrorType = "not_found" ErrorNotImplemented ErrorType = "not_implemented" ErrorForbidden ErrorType = "forbidden" ErrorConflict ErrorType = "conflict" ErrorStreamingNotSupported ErrorType = "streaming is not supported" )
type ErrorWithSpan ¶
type ErrorWithSpan struct { ErrorID string `json:"errorId" ch:"errorID"` ExceptionType string `json:"exceptionType" ch:"exceptionType"` ExceptionStacktrace string `json:"exceptionStacktrace" ch:"exceptionStacktrace"` ExceptionEscaped bool `json:"exceptionEscaped" ch:"exceptionEscaped"` ExceptionMsg string `json:"exceptionMessage" ch:"exceptionMessage"` Timestamp time.Time `json:"timestamp" ch:"timestamp"` SpanID string `json:"spanID" ch:"spanID"` TraceID string `json:"traceID" ch:"traceID"` ServiceName string `json:"serviceName" ch:"serviceName"` GroupID string `json:"groupID" ch:"groupID"` }
type FeatureSet ¶
type FeatureSet []Feature
type FilterItem ¶
type FilterSet ¶
type FilterSet struct { Operator string `json:"op,omitempty"` Items []FilterItem `json:"items"` }
type GetErrorParams ¶
type GetFieldsResponse ¶
type GetFilterSpansResponse ¶
type GetFilterSpansResponse struct { Spans []GetFilterSpansResponseItem `json:"spans"` TotalSpans uint64 `json:"totalSpans"` }
type GetFilterSpansResponseItem ¶
type GetFilterSpansResponseItem struct { Timestamp time.Time `ch:"timestamp" json:"timestamp"` SpanID string `ch:"spanID" json:"spanID"` TraceID string `ch:"traceID" json:"traceID"` ServiceName string `ch:"serviceName" json:"serviceName"` Operation string `ch:"name" json:"operation"` DurationNano uint64 `ch:"durationNano" json:"durationNano"` HttpMethod string `ch:"httpMethod"` Method string `json:"method"` ResponseStatusCode string `ch:"responseStatusCode" json:"statusCode"` RPCMethod string `ch:"rpcMethod"` }
type GetFilteredSpanAggregatesParams ¶
type GetFilteredSpanAggregatesParams struct { TraceID []string `json:"traceID"` ServiceName []string `json:"serviceName"` Operation []string `json:"operation"` SpanKind string `json:"spanKind"` Status []string `json:"status"` HttpRoute []string `json:"httpRoute"` HttpCode []string `json:"httpCode"` HttpUrl []string `json:"httpUrl"` HttpHost []string `json:"httpHost"` HttpMethod []string `json:"httpMethod"` Component []string `json:"component"` RPCMethod []string `json:"rpcMethod"` ResponseStatusCode []string `json:"responseStatusCode"` MinDuration string `json:"minDuration"` MaxDuration string `json:"maxDuration"` Tags []TagQueryParam `json:"tags"` StartStr string `json:"start"` EndStr string `json:"end"` StepSeconds int `json:"step"` Dimension string `json:"dimension"` AggregationOption string `json:"aggregationOption"` GroupBy string `json:"groupBy"` Function string `json:"function"` Exclude []string `json:"exclude"` Start *time.Time End *time.Time }
type GetFilteredSpansAggregatesResponse ¶
type GetFilteredSpansAggregatesResponse struct {
Items map[int64]SpanAggregatesResponseItem `json:"items"`
}
type GetFilteredSpansParams ¶
type GetFilteredSpansParams struct { TraceID []string `json:"traceID"` ServiceName []string `json:"serviceName"` Operation []string `json:"operation"` SpanKind string `json:"spanKind"` Status []string `json:"status"` HttpRoute []string `json:"httpRoute"` HttpCode []string `json:"httpCode"` HttpUrl []string `json:"httpUrl"` HttpHost []string `json:"httpHost"` HttpMethod []string `json:"httpMethod"` Component []string `json:"component"` RPCMethod []string `json:"rpcMethod"` ResponseStatusCode []string `json:"responseStatusCode"` StartStr string `json:"start"` EndStr string `json:"end"` MinDuration string `json:"minDuration"` MaxDuration string `json:"maxDuration"` Limit int64 `json:"limit"` OrderParam string `json:"orderParam"` Order string `json:"order"` Offset int64 `json:"offset"` Tags []TagQueryParam `json:"tags"` Exclude []string `json:"exclude"` Start *time.Time End *time.Time }
type GetLogsAggregatesResponse ¶
type GetLogsAggregatesResponse struct {
Items map[int64]LogsAggregatesResponseItem `json:"items"`
}
type GetServicesParams ¶
type GetTTLParams ¶
type GetTTLParams struct {
Type string
}
type GetTTLResponseItem ¶
type GetTTLResponseItem struct { MetricsTime int `json:"metrics_ttl_duration_hrs,omitempty"` MetricsMoveTime int `json:"metrics_move_ttl_duration_hrs,omitempty"` TracesTime int `json:"traces_ttl_duration_hrs,omitempty"` TracesMoveTime int `json:"traces_move_ttl_duration_hrs,omitempty"` LogsTime int `json:"logs_ttl_duration_hrs,omitempty"` LogsMoveTime int `json:"logs_move_ttl_duration_hrs,omitempty"` ExpectedMetricsTime int `json:"expected_metrics_ttl_duration_hrs,omitempty"` ExpectedMetricsMoveTime int `json:"expected_metrics_move_ttl_duration_hrs,omitempty"` ExpectedTracesTime int `json:"expected_traces_ttl_duration_hrs,omitempty"` ExpectedTracesMoveTime int `json:"expected_traces_move_ttl_duration_hrs,omitempty"` ExpectedLogsTime int `json:"expected_logs_ttl_duration_hrs,omitempty"` ExpectedLogsMoveTime int `json:"expected_logs_move_ttl_duration_hrs,omitempty"` Status string `json:"status"` }
type GetTopOperationsParams ¶
type GetUsageParams ¶
type GetVersionResponse ¶
type GrafanaJSON ¶
type GrafanaJSON struct { Inputs []struct { Name string `json:"name"` Label string `json:"label"` Description string `json:"description"` Type string `json:"type"` PluginID string `json:"pluginId"` PluginName string `json:"pluginName"` } `json:"__inputs"` Requires []struct { Type string `json:"type"` ID string `json:"id"` Name string `json:"name"` Version string `json:"version"` } `json:"__requires"` Annotations struct { List []struct { HashKey string `json:"$$hashKey"` BuiltIn int `json:"builtIn"` Datasource interface{} `json:"datasource"` Enable bool `json:"enable"` Hide bool `json:"hide"` IconColor string `json:"iconColor"` Name string `json:"name"` Target struct { Limit int `json:"limit"` MatchAny bool `json:"matchAny"` Tags []interface{} `json:"tags"` Type string `json:"type"` } `json:"target"` Type string `json:"type"` } `json:"list"` } `json:"annotations"` Editable bool `json:"editable"` FiscalYearStartMonth int `json:"fiscalYearStartMonth"` GnetID int `json:"gnetId"` GraphTooltip int `json:"graphTooltip"` ID interface{} `json:"id"` Links []struct { Icon string `json:"icon"` Tags []interface{} `json:"tags"` TargetBlank bool `json:"targetBlank"` Title string `json:"title"` Type string `json:"type"` URL string `json:"url"` } `json:"links"` LiveNow bool `json:"liveNow"` Panels []Panels `json:"panels"` SchemaVersion int `json:"schemaVersion"` Style string `json:"style"` Tags []string `json:"tags"` Templating struct { List []struct { Current struct { Selected bool `json:"selected"` Text interface{} `json:"text"` Value interface{} `json:"value"` } `json:"current"` Hide int `json:"hide"` IncludeAll bool `json:"includeAll"` Label string `json:"label,omitempty"` Multi bool `json:"multi"` Name string `json:"name"` Options []interface{} `json:"options"` Query interface{} `json:"query"` Refresh int `json:"refresh,omitempty"` Regex string `json:"regex,omitempty"` SkipURLSync bool `json:"skipUrlSync"` Type string `json:"type"` Datasource interface{} `json:"datasource,omitempty"` Definition string `json:"definition,omitempty"` Sort int `json:"sort,omitempty"` TagValuesQuery string `json:"tagValuesQuery,omitempty"` TagsQuery string `json:"tagsQuery,omitempty"` UseTags bool `json:"useTags,omitempty"` } `json:"list"` } `json:"templating"` Time struct { From string `json:"from"` To string `json:"to"` } `json:"time"` Timepicker struct { RefreshIntervals []string `json:"refresh_intervals"` TimeOptions []string `json:"time_options"` } `json:"timepicker"` Timezone string `json:"timezone"` Title string `json:"title"` UID string `json:"uid"` Version int `json:"version"` WeekStart string `json:"weekStart"` }
type IngestionKey ¶
type IngestionKey struct { KeyId string `json:"keyId" db:"key_id"` Name string `json:"name" db:"name"` CreatedAt time.Time `json:"createdAt" db:"created_at"` IngestionKey string `json:"ingestionKey" db:"ingestion_key"` IngestionURL string `json:"ingestionURL" db:"ingestion_url"` DataRegion string `json:"dataRegion" db:"data_region"` }
type InvitationObject ¶
type InvitationObject struct { Id string `json:"id" db:"id"` Email string `json:"email" db:"email"` Name string `json:"name" db:"name"` Token string `json:"token" db:"token"` CreatedAt int64 `json:"createdAt" db:"created_at"` Role string `json:"role" db:"role"` OrgId string `json:"orgId" db:"org_id"` }
InvitationObject represents the token object stored in the db
type InvitationResponseObject ¶
type InvitationResponseObject struct { Email string `json:"email" db:"email"` Name string `json:"name" db:"name"` Token string `json:"token" db:"token"` CreatedAt int64 `json:"createdAt" db:"created_at"` Role string `json:"role" db:"role"` Organization string `json:"organization" db:"organization"` }
type InviteRequest ¶
type InviteResponse ¶
type ListErrorsParams ¶
type ListErrorsParams struct { StartStr string `json:"start"` EndStr string `json:"end"` Start *time.Time End *time.Time Limit int64 `json:"limit"` OrderParam string `json:"orderParam"` Order string `json:"order"` Offset int64 `json:"offset"` ServiceName string `json:"serviceName"` ExceptionType string `json:"exceptionType"` Tags []TagQueryParam `json:"tags"` }
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct { UserJwtObject UserId string `json:"userId"` }
type LogsAggregateParams ¶
type LogsFilterParams ¶
type LogsTailClient ¶
type LogsTailClient struct { Name string Logs chan *SignozLog Done chan *bool Error chan error Filter LogsFilterParams }
type MetricPoint ¶
func (*MetricPoint) MarshalJSON ¶
func (p *MetricPoint) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*MetricPoint) UnmarshalJSON ¶
func (p *MetricPoint) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MetricQuery ¶
type MetricQuery struct { QueryName string `json:"queryName"` MetricName string `json:"metricName"` TagFilters *FilterSet `json:"tagFilters,omitempty"` GroupingTags []string `json:"groupBy,omitempty"` AggregateOperator AggregateOperator `json:"aggregateOperator"` Expression string `json:"expression"` Disabled bool `json:"disabled"` ReduceTo ReduceToOperator `json:"reduceTo,omitempty"` }
type MetricsBuilder ¶
type MetricsBuilder struct { Formulas []string `json:"formulas"` QueryBuilder []QueryBuilder `json:"queryBuilder"` }
type NextPrevErrorIDs ¶
type Operator ¶
type Operator string
const ( InOperator Operator = "In" NotInOperator Operator = "NotIn" EqualOperator Operator = "Equals" NotEqualOperator Operator = "NotEquals" ExistsOperator Operator = "Exists" NotExistsOperator Operator = "NotExists" ContainsOperator Operator = "Contains" NotContainsOperator Operator = "NotContains" LessThanOperator Operator = "LessThan" GreaterThanOperator Operator = "GreaterThan" LessThanEqualOperator Operator = "LessThanEquals" GreaterThanEqualOperator Operator = "GreaterThanEquals" StartsWithOperator Operator = "StartsWith" NotStartsWithOperator Operator = "NotStartsWith" )
type Organization ¶
type OtelSpanRef ¶
type OtelSpanRef struct { TraceId string `json:"traceId,omitempty"` SpanId string `json:"spanId,omitempty"` RefType string `json:"refType,omitempty"` }
func (*OtelSpanRef) ToString ¶
func (ref *OtelSpanRef) ToString() string
type Panels ¶
type Panels struct { Datasource interface{} `json:"datasource"` Description string `json:"description,omitempty"` FieldConfig struct { Defaults struct { Color struct { Mode string `json:"mode"` } `json:"color"` Max float64 `json:"max"` Min float64 `json:"min"` Thresholds struct { Mode string `json:"mode"` Steps []struct { Color string `json:"color"` Value interface{} `json:"value"` } `json:"steps"` } `json:"thresholds"` Unit string `json:"unit"` } `json:"defaults"` Overrides []interface{} `json:"overrides"` } `json:"fieldConfig,omitempty"` GridPos struct { H int `json:"h"` W int `json:"w"` X int `json:"x"` Y int `json:"y"` } `json:"gridPos"` ID int `json:"id"` Links []interface{} `json:"links,omitempty"` Options struct { Orientation string `json:"orientation"` ReduceOptions struct { Calcs []string `json:"calcs"` Fields string `json:"fields"` Values bool `json:"values"` } `json:"reduceOptions"` ShowThresholdLabels bool `json:"showThresholdLabels"` ShowThresholdMarkers bool `json:"showThresholdMarkers"` } `json:"options,omitempty"` PluginVersion string `json:"pluginVersion,omitempty"` Targets []struct { Datasource interface{} `json:"datasource"` EditorMode string `json:"editorMode"` Expr string `json:"expr"` Hide bool `json:"hide"` IntervalFactor int `json:"intervalFactor"` LegendFormat string `json:"legendFormat"` Range bool `json:"range"` RefID string `json:"refId"` Step int `json:"step"` } `json:"targets"` Title string `json:"title"` Type string `json:"type"` HideTimeOverride bool `json:"hideTimeOverride,omitempty"` MaxDataPoints int `json:"maxDataPoints,omitempty"` Collapsed bool `json:"collapsed,omitempty"` Panels []Panels `json:"panels,omitempty"` }
type PrecheckResponse ¶
type PrecheckResponse struct { SSO bool `json:"sso"` SsoUrl string `json:"ssoUrl"` CanSelfRegister bool `json:"canSelfRegister"` IsUser bool `json:"isUser"` SsoError string `json:"ssoError"` }
PrecheckResponse contains login precheck response
type PromQueryDashboard ¶
type Query ¶
type Query struct { ClickHouse []ClickHouseQueryDashboard `json:"clickHouse"` PromQL []PromQueryDashboard `json:"promQL"` MetricsBuilder MetricsBuilder `json:"metricsBuilder"` QueryType int `json:"queryType"` }
type QueryBuilder ¶
type QueryBuilder struct { AggregateOperator interface{} `json:"aggregateOperator"` Disabled bool `json:"disabled"` GroupBy []string `json:"groupBy"` Legend string `json:"legend"` MetricName string `json:"metricName"` Name string `json:"name"` TagFilters TagFilters `json:"tagFilters"` ReduceTo interface{} `json:"reduceTo"` }
type QueryDataDashboard ¶
type QueryDataV2 ¶
type QueryRangeParams ¶
type QueryRangeParamsV2 ¶
type QueryRangeParamsV2 struct { DataSource DataSource `json:"dataSource"` Start int64 `json:"start"` End int64 `json:"end"` Step int64 `json:"step"` CompositeMetricQuery *CompositeMetricQuery `json:"compositeMetricQuery"` Variables map[string]interface{} `json:"variables,omitempty"` NoCache bool `json:"noCache"` }
type ReduceToOperator ¶
type ReduceToOperator int
const ( RLAST ReduceToOperator RSUM RAVG RMAX RMIN )
type ResetPasswordEntry ¶
type ResetPasswordRequest ¶
type RuleResponseItem ¶
type SearchSpanResponseItem ¶
type SearchSpanResponseItem struct { TimeUnixNano uint64 `json:"timestamp"` DurationNano int64 `json:"durationNano"` SpanID string `json:"spanId"` RootSpanID string `json:"rootSpanId"` TraceID string `json:"traceId"` HasError bool `json:"hasError"` Kind int32 `json:"kind"` ServiceName string `json:"serviceName"` Name string `json:"name"` References []OtelSpanRef `json:"references,omitempty"` TagMap map[string]string `json:"tagMap"` Events []string `json:"event"` RootName string `json:"rootName"` }
func (*SearchSpanResponseItem) GetValues ¶
func (item *SearchSpanResponseItem) GetValues() []interface{}
func (SearchSpanResponseItem) MarshalEasyJSON ¶
func (v SearchSpanResponseItem) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SearchSpanResponseItem) MarshalJSON ¶
func (v SearchSpanResponseItem) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SearchSpanResponseItem) UnmarshalEasyJSON ¶
func (v *SearchSpanResponseItem) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SearchSpanResponseItem) UnmarshalJSON ¶
func (v *SearchSpanResponseItem) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SearchSpansResult ¶
type SearchSpansResult struct { Columns []string `json:"columns"` Events [][]interface{} `json:"events"` }
type Series ¶
type Series struct { QueryName string `json:"queryName"` Labels map[string]string `json:"metric"` Points []MetricPoint `json:"values"` }
func (*Series) SortPoints ¶
func (s *Series) SortPoints()
type ServiceErrorItem ¶
type ServiceItem ¶
type ServiceItem struct { ServiceName string `json:"serviceName" ch:"serviceName"` Percentile99 float64 `json:"p99" ch:"p99"` AvgDuration float64 `json:"avgDuration" ch:"avgDuration"` NumCalls uint64 `json:"numCalls" ch:"numCalls"` CallRate float64 `json:"callRate" ch:"callRate"` NumErrors uint64 `json:"numErrors" ch:"numErrors"` ErrorRate float64 `json:"errorRate" ch:"errorRate"` Num4XX uint64 `json:"num4XX" ch:"num4xx"` FourXXRate float64 `json:"fourXXRate" ch:"fourXXRate"` }
func (*ServiceItem) MarshalJSON ¶
func (s *ServiceItem) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ServiceMapDependencyResponseItem ¶
type ServiceMapDependencyResponseItem struct { Parent string `json:"parent" ch:"parent"` Child string `json:"child" ch:"child"` CallCount uint64 `json:"callCount" ch:"callCount"` CallRate float64 `json:"callRate" ch:"callRate"` ErrorRate float64 `json:"errorRate" ch:"errorRate"` P99 float64 `json:"p99" ch:"p99"` P95 float64 `json:"p95" ch:"p95"` P90 float64 `json:"p90" ch:"p90"` P75 float64 `json:"p75" ch:"p75"` P50 float64 `json:"p50" ch:"p50"` }
type ServiceOverviewItem ¶
type ServiceOverviewItem struct { Time time.Time `json:"time" ch:"time"` Timestamp int64 `json:"timestamp" ch:"timestamp"` Percentile50 float64 `json:"p50" ch:"p50"` Percentile95 float64 `json:"p95" ch:"p95"` Percentile99 float64 `json:"p99" ch:"p99"` NumCalls uint64 `json:"numCalls" ch:"numCalls"` CallRate float64 `json:"callRate" ch:"callRate"` NumErrors uint64 `json:"numErrors" ch:"numErrors"` ErrorRate float64 `json:"errorRate" ch:"errorRate"` }
type ServiceSkipConfig ¶
type SetTTLResponseItem ¶
type SetTTLResponseItem struct {
Message string `json:"message"`
}
type ShowCreateTableStatement ¶
type ShowCreateTableStatement struct {
Statement string `json:"statement" ch:"statement"`
}
type SignozLog ¶
type SignozLog struct { Timestamp uint64 `json:"timestamp" ch:"timestamp"` ID string `json:"id" ch:"id"` TraceID string `json:"trace_id" ch:"trace_id"` SpanID string `json:"span_id" ch:"span_id"` TraceFlags uint32 `json:"trace_flags" ch:"trace_flags"` SeverityText string `json:"severity_text" ch:"severity_text"` SeverityNumber uint8 `json:"severity_number" ch:"severity_number"` Body string `json:"body" ch:"body"` Resources_string map[string]string `json:"resources_string" ch:"resources_string"` Attributes_string map[string]string `json:"attributes_string" ch:"attributes_string"` Attributes_int64 map[string]int64 `json:"attributes_int" ch:"attributes_int64"` Attributes_float64 map[string]float64 `json:"attributes_float" ch:"attributes_float64"` Attributes_bool map[string]bool `json:"attributes_bool" ch:"attributes_bool"` }
Represents a log record in query service requests and responses.
type SkipConfig ¶
type SkipConfig struct {
Services []ServiceSkipConfig `yaml:"services"`
}
func ReadSkipConfig ¶
func ReadSkipConfig(path string) (*SkipConfig, error)
func (*SkipConfig) ShouldSkip ¶
func (s *SkipConfig) ShouldSkip(serviceName, name string) bool
type SpanFilterParams ¶
type SpanFilterParams struct { TraceID []string `json:"traceID"` Status []string `json:"status"` ServiceName []string `json:"serviceName"` SpanKind string `json:"spanKind"` HttpRoute []string `json:"httpRoute"` HttpCode []string `json:"httpCode"` HttpUrl []string `json:"httpUrl"` HttpHost []string `json:"httpHost"` HttpMethod []string `json:"httpMethod"` Component []string `json:"component"` Operation []string `json:"operation"` RPCMethod []string `json:"rpcMethod"` ResponseStatusCode []string `json:"responseStatusCode"` GetFilters []string `json:"getFilters"` Exclude []string `json:"exclude"` MinDuration string `json:"minDuration"` MaxDuration string `json:"maxDuration"` StartStr string `json:"start"` EndStr string `json:"end"` Start *time.Time End *time.Time }
type SpanFiltersResponse ¶
type SpanFiltersResponse struct { ServiceName map[string]uint64 `json:"serviceName"` Status map[string]uint64 `json:"status"` Duration map[string]uint64 `json:"duration"` Operation map[string]uint64 `json:"operation"` HttpCode map[string]uint64 `json:"httpCode"` ResponseStatusCode map[string]uint64 `json:"responseStatusCode"` RPCMethod map[string]uint64 `json:"rpcMethod"` HttpUrl map[string]uint64 `json:"httpUrl"` HttpMethod map[string]uint64 `json:"httpMethod"` HttpRoute map[string]uint64 `json:"httpRoute"` HttpHost map[string]uint64 `json:"httpHost"` Component map[string]uint64 `json:"component"` }
type TTLStatusItem ¶
type TTLStatusItem struct { Id int `json:"id" db:"id"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` CreatedAt time.Time `json:"created_at" db:"created_at"` TableName string `json:"table_name" db:"table_name"` TTL int `json:"ttl" db:"ttl"` Status string `json:"status" db:"status"` ColdStorageTtl int `json:"cold_storage_ttl" db:"cold_storage_ttl"` }
type TagDataType ¶
type TagDataType string
const ( TagTypeString TagDataType = "string" TagTypeNumber TagDataType = "number" TagTypeBool TagDataType = "bool" )
type TagFilterParams ¶
type TagFilterParams struct { TraceID []string `json:"traceID"` Status []string `json:"status"` ServiceName []string `json:"serviceName"` HttpRoute []string `json:"httpRoute"` HttpCode []string `json:"httpCode"` SpanKind string `json:"spanKind"` HttpUrl []string `json:"httpUrl"` HttpHost []string `json:"httpHost"` HttpMethod []string `json:"httpMethod"` Component []string `json:"component"` Operation []string `json:"operation"` RPCMethod []string `json:"rpcMethod"` ResponseStatusCode []string `json:"responseStatusCode"` Exclude []string `json:"exclude"` MinDuration string `json:"minDuration"` MaxDuration string `json:"maxDuration"` StartStr string `json:"start"` EndStr string `json:"end"` TagKey TagKey `json:"tagKey"` Limit int `json:"limit"` Start *time.Time End *time.Time }
type TagFilters ¶
type TagKey ¶
type TagKey struct { Key string `json:"key"` Type TagDataType `json:"type"` }
type TagQueryBool ¶
type TagQueryBool struct {
// contains filtered or unexported fields
}
func NewTagQueryBool ¶
func NewTagQueryBool(tag TagQueryParam) TagQueryBool
func (TagQueryBool) GetKey ¶
func (tqb TagQueryBool) GetKey() string
func (TagQueryBool) GetOperator ¶
func (tqb TagQueryBool) GetOperator() Operator
func (TagQueryBool) GetTagMapColumn ¶
func (tqb TagQueryBool) GetTagMapColumn() string
func (TagQueryBool) GetTagType ¶
func (tqb TagQueryBool) GetTagType() TagType
func (TagQueryBool) GetValues ¶
func (tqb TagQueryBool) GetValues() []interface{}
type TagQueryNumber ¶
type TagQueryNumber struct {
// contains filtered or unexported fields
}
func NewTagQueryNumber ¶
func NewTagQueryNumber(tag TagQueryParam) TagQueryNumber
func (TagQueryNumber) GetKey ¶
func (tqn TagQueryNumber) GetKey() string
func (TagQueryNumber) GetOperator ¶
func (tqn TagQueryNumber) GetOperator() Operator
func (TagQueryNumber) GetTagMapColumn ¶
func (tqn TagQueryNumber) GetTagMapColumn() string
func (TagQueryNumber) GetTagType ¶
func (tqn TagQueryNumber) GetTagType() TagType
func (TagQueryNumber) GetValues ¶
func (tqn TagQueryNumber) GetValues() []interface{}
type TagQueryParam ¶
type TagQueryString ¶
type TagQueryString struct {
// contains filtered or unexported fields
}
func NewTagQueryString ¶
func NewTagQueryString(tag TagQueryParam) TagQueryString
func (TagQueryString) GetKey ¶
func (tqs TagQueryString) GetKey() string
func (TagQueryString) GetOperator ¶
func (tqs TagQueryString) GetOperator() Operator
func (TagQueryString) GetTagMapColumn ¶
func (tqs TagQueryString) GetTagMapColumn() string
func (TagQueryString) GetTagType ¶
func (tqs TagQueryString) GetTagType() TagType
func (TagQueryString) GetValues ¶
func (tqs TagQueryString) GetValues() []interface{}
type TagTelemetryData ¶
type TopOperationsItem ¶
type TopOperationsItem struct { Percentile50 float64 `json:"p50" ch:"p50"` Percentile95 float64 `json:"p95" ch:"p95"` Percentile99 float64 `json:"p99" ch:"p99"` NumCalls uint64 `json:"numCalls" ch:"numCalls"` ErrorCount uint64 `json:"errorCount" ch:"errorCount"` Name string `json:"name" ch:"name"` }
type UpdateField ¶
type User ¶
type User struct { Id string `json:"id" db:"id"` Name string `json:"name" db:"name"` Email string `json:"email" db:"email"` Password string `json:"password,omitempty" db:"password"` CreatedAt int64 `json:"createdAt" db:"created_at"` ProfilePictureURL string `json:"profilePictureURL" db:"profile_picture_url"` OrgId string `json:"orgId,omitempty" db:"org_id"` GroupId string `json:"groupId,omitempty" db:"group_id"` }
type UserJwtObject ¶
type UserPayload ¶
type Variable ¶
type Variable struct { AllSelected bool `json:"allSelected"` CustomValue string `json:"customValue"` Description string `json:"description"` ModificationUUID string `json:"modificationUUID"` MultiSelect bool `json:"multiSelect"` QueryValue string `json:"queryValue"` SelectedValue string `json:"selectedValue"` ShowALLOption bool `json:"showALLOption"` Sort string `json:"sort"` TextboxValue string `json:"textboxValue"` Type string `json:"type"` }
type Widget ¶
type Widget struct { Description string `json:"description"` ID string `json:"id"` IsStacked bool `json:"isStacked"` NullZeroValues string `json:"nullZeroValues"` Opacity string `json:"opacity"` PanelTypes string `json:"panelTypes"` Query Query `json:"query"` QueryData QueryDataDashboard `json:"queryData"` TimePreferance string `json:"timePreferance"` Title string `json:"title"` YAxisUnit string `json:"yAxisUnit"` QueryType int `json:"queryType"` }