generated

package
v1.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 16 Imported by: 0

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

View Source
const (
	StringTagMapCol   = "stringTagMap"
	NumberTagMapCol   = "numberTagMap"
	BoolTagMapCol     = "boolTagMap"
	ResourceTagMapCol = "resourceTagsMap"
)
View Source
const AlertChannelMsTeams = "ALERT_CHANNEL_MSTEAMS"
View Source
const AlertChannelOpsgenie = "ALERT_CHANNEL_OPSGENIE"
View Source
const AlertChannelPagerduty = "ALERT_CHANNEL_PAGERDUTY"
View Source
const AlertChannelSlack = "ALERT_CHANNEL_SLACK"
View Source
const AlertChannelWebhook = "ALERT_CHANNEL_WEBHOOK"
View Source
const CustomMetricsFunction = "CUSTOM_METRICS_FUNCTION"
View Source
const DisableUpsell = "DISABLE_UPSELL"
View Source
const OSS = "OSS"
View Source
const QueryBuilderAlerts = "QUERY_BUILDER_ALERTS"
View Source
const QueryBuilderPanels = "QUERY_BUILDER_PANELS"
View Source
const SmartTraceDetail = "SMART_TRACE_DETAIL"
View Source
const UseSpanMetrics = "USE_SPAN_METRICS"

Variables

View Source
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:      "",
	},
}
View Source
var (
	ErrorTokenExpired = errors.New("Token is expired")
)

Functions

func ReadYaml

func ReadYaml(path string, v interface{}) error

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 AlertsInfo struct {
	TotalAlerts       int `json:"totalAlerts"`
	LogsBasedAlerts   int `json:"logsBasedAlerts"`
	MetricBasedAlerts int `json:"metricBasedAlerts"`
	TracesBasedAlerts int `json:"tracesBasedAlerts"`
}

type ApdexSettings

type ApdexSettings struct {
	ServiceName        string  `json:"serviceName" db:"service_name"`
	Threshold          float64 `json:"threshold" db:"threshold"`
	ExcludeStatusCodes string  `json:"excludeStatusCodes" db:"exclude_status_codes"` // sqlite doesn't support array type
}

type ApiError

type ApiError struct {
	Typ ErrorType
	Err error
}

func BadRequest

func BadRequest(err error) *ApiError

BadRequest returns a ApiError object of bad request

func BadRequestStr

func BadRequestStr(s string) *ApiError

BadRequestStr returns a ApiError object of bad request

func InternalError

func InternalError(err error) *ApiError

InternalError returns a ApiError object of internal type

func NotFoundError

func NotFoundError(err error) *ApiError

func UnauthorizedError

func UnauthorizedError(err error) *ApiError

func UnavailableError

func UnavailableError(err error) *ApiError

func WrapApiError

func WrapApiError(err *ApiError, msg string) *ApiError

func (*ApiError) Error

func (a *ApiError) Error() string

func (*ApiError) IsNil

func (a *ApiError) IsNil() bool

func (*ApiError) ToError

func (a *ApiError) ToError() error

func (*ApiError) Type

func (a *ApiError) Type() ErrorType

type BaseApiError

type BaseApiError interface {
	Type() ErrorType
	ToError() error
	Error() string
	IsNil() bool
}

type ChangePasswordRequest

type ChangePasswordRequest struct {
	UserId      string `json:"userId"`
	OldPassword string `json:"oldPassword"`
	NewPassword string `json:"newPassword"`
}

type ChannelItem

type ChannelItem struct {
	Id        int       `json:"id" db:"id"`
	CreatedAt time.Time `json:"created_at" db:"created_at"`
	UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
	Name      string    `json:"name" db:"name"`
	Type      string    `json:"type" db:"type"`
	Data      string    `json:"data" db:"data"`
}

type ClickHouseQuery

type ClickHouseQuery struct {
	Query    string `json:"query"`
	Disabled bool   `json:"disabled"`
}

type ClickHouseQueryDashboard

type ClickHouseQueryDashboard struct {
	Legend   string `json:"legend"`
	Name     string `json:"name"`
	Query    string `json:"rawQuery"`
	Disabled bool   `json:"disabled"`
}

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 CountErrorsParams struct {
	StartStr      string `json:"start"`
	EndStr        string `json:"end"`
	Start         *time.Time
	End           *time.Time
	ServiceName   string          `json:"serviceName"`
	ExceptionType string          `json:"exceptionType"`
	Tags          []TagQueryParam `json:"tags"`
}

type DBResponseComponent

type DBResponseComponent struct {
	Component string `ch:"component"`
	Count     uint64 `ch:"count"`
}

type DBResponseHttpCode

type DBResponseHttpCode struct {
	HttpCode string `ch:"httpCode"`
	Count    uint64 `ch:"count"`
}

type DBResponseHttpHost

type DBResponseHttpHost struct {
	HttpHost string `ch:"httpHost"`
	Count    uint64 `ch:"count"`
}

type DBResponseHttpMethod

type DBResponseHttpMethod struct {
	HttpMethod string `ch:"httpMethod"`
	Count      uint64 `ch:"count"`
}

type DBResponseHttpRoute

type DBResponseHttpRoute struct {
	HttpRoute string `ch:"httpRoute"`
	Count     uint64 `ch:"count"`
}

type DBResponseHttpUrl

type DBResponseHttpUrl struct {
	HttpUrl string `ch:"httpUrl"`
	Count   uint64 `ch:"count"`
}

type DBResponseMinMax

type DBResponseMinMax struct {
	Min uint64 `ch:"min"`
	Max uint64 `ch:"max"`
}

type DBResponseOperation

type DBResponseOperation struct {
	Operation string `ch:"name"`
	Count     uint64 `ch:"count"`
}

type DBResponseRPCMethod

type DBResponseRPCMethod struct {
	RPCMethod string `ch:"rpcMethod"`
	Count     uint64 `ch:"count"`
}

type DBResponseServiceName

type DBResponseServiceName struct {
	ServiceName string `ch:"serviceName"`
	Count       uint64 `ch:"count"`
}

type DBResponseStatusCodeMethod

type DBResponseStatusCodeMethod struct {
	ResponseStatusCode string `ch:"responseStatusCode"`
	Count              uint64 `ch:"count"`
}

type DBResponseTTL

type DBResponseTTL struct {
	EngineFull string `ch:"engine_full"`
}

type DBResponseTotal

type DBResponseTotal struct {
	NumTotal uint64 `ch:"numTotal"`
}

type DashboardData

type DashboardData struct {
	Description string              `json:"description"`
	Tags        []string            `json:"tags"`
	Layout      []Layout            `json:"layout"`
	Title       string              `json:"title"`
	Widgets     []Widget            `json:"widgets"`
	Variables   map[string]Variable `json:"variables"`
}

type DashboardVar

type DashboardVar struct {
	VariableValues []interface{} `json:"variableValues"`
}

type DashboardVars

type DashboardVars struct {
	Query     string                 `json:"query"`
	Variables map[string]interface{} `json:"variables,omitempty"`
}

type DashboardsInfo

type DashboardsInfo struct {
	TotalDashboards   int `json:"totalDashboards"`
	LogsBasedPanels   int `json:"logsBasedPanels"`
	MetricBasedPanels int `json:"metricBasedPanels"`
	TracesBasedPanels int `json:"tracesBasedPanels"`
}

type Data

type Data struct {
	Legend    string        `json:"legend"`
	Query     string        `json:"query"`
	QueryData []interface{} `json:"queryData"`
}

type DataSource

type DataSource int
const (
	METRICS DataSource
	TRACES
	LOGS
)

type Datasource

type Datasource struct {
	Type string `json:"type"`
	UID  string `json:"uid"`
}

type DiskItem

type DiskItem struct {
	Name string `json:"name,omitempty" ch:"name"`
	Type string `json:"type,omitempty" ch:"type"`
}

type ErrEmailRequired

type ErrEmailRequired struct{}

func (ErrEmailRequired) Error

func (errEmailRequired ErrEmailRequired) Error() string

type ErrFeatureUnavailable

type ErrFeatureUnavailable struct {
	Key string
}

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"
	ErrorUnavailable              ErrorType = "unavailable"
	ErrorNotFound                 ErrorType = "not_found"
	ErrorNotImplemented           ErrorType = "not_implemented"
	ErrorUnauthorized             ErrorType = "unauthorized"
	ErrorForbidden                ErrorType = "forbidden"
	ErrorConflict                 ErrorType = "conflict"
	ErrorStreamingNotSupported    ErrorType = "streaming is not supported"
	ErrorStatusServiceUnavailable ErrorType = "service unavailable"
)

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 Event

type Event struct {
	Name         string                 `json:"name,omitempty"`
	TimeUnixNano uint64                 `json:"timeUnixNano,omitempty"`
	AttributeMap map[string]interface{} `json:"attributeMap,omitempty"`
	IsError      bool                   `json:"isError,omitempty"`
}

type Feature

type Feature struct {
	Name       string `db:"name" json:"name"`
	Active     bool   `db:"active" json:"active"`
	Usage      int64  `db:"usage" json:"usage"`
	UsageLimit int64  `db:"usage_limit" json:"usage_limit"`
	Route      string `db:"route" json:"route"`
}

type FeatureSet

type FeatureSet []Feature

type FilterItem

type FilterItem struct {
	Key      string      `json:"key"`
	Value    interface{} `json:"value"`
	Operator string      `json:"op"`
}

type FilterSet

type FilterSet struct {
	Operator string       `json:"op,omitempty"`
	Items    []FilterItem `json:"items"`
}

type GetErrorParams

type GetErrorParams struct {
	GroupID   string
	ErrorID   string
	Timestamp *time.Time
}

type GetFieldsResponse

type GetFieldsResponse struct {
	Selected    []LogField `json:"selected"`
	Interesting []LogField `json:"interesting"`
}

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 GetServiceOverviewParams

type GetServiceOverviewParams struct {
	StartTime   string `json:"start"`
	EndTime     string `json:"end"`
	Period      string
	Start       *time.Time
	End         *time.Time
	Tags        []TagQueryParam `json:"tags"`
	ServiceName string          `json:"service"`
	StepSeconds int             `json:"step"`
}

type GetServicesParams

type GetServicesParams struct {
	StartTime string `json:"start"`
	EndTime   string `json:"end"`
	Period    int
	Start     *time.Time
	End       *time.Time
	Tags      []TagQueryParam `json:"tags"`
}

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 GetTopOperationsParams struct {
	StartTime   string `json:"start"`
	EndTime     string `json:"end"`
	ServiceName string `json:"service"`
	Start       *time.Time
	End         *time.Time
	Tags        []TagQueryParam `json:"tags"`
	Limit       int             `json:"limit"`
}

type GetUsageParams

type GetUsageParams struct {
	StartTime   string
	EndTime     string
	ServiceName string
	Period      string
	StepHour    int
	Start       *time.Time
	End         *time.Time
}

type GetVersionResponse

type GetVersionResponse struct {
	Version        string `json:"version"`
	EE             string `json:"ee"`
	SetupCompleted bool   `json:"setupCompleted"`
}

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 Group

type Group struct {
	Id   string `json:"id" db:"id"`
	Name string `json:"name" db:"name"`
}

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 InstantQueryMetricsParams

type InstantQueryMetricsParams struct {
	Time  time.Time
	Query string
	Stats string
}

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 InviteRequest struct {
	Name            string `json:"name"`
	Email           string `json:"email"`
	Role            string `json:"role"`
	FrontendBaseUrl string `json:"frontendBaseUrl"`
}

type InviteResponse

type InviteResponse struct {
	Email       string `json:"email"`
	InviteToken string `json:"inviteToken"`
}

type Layout

type Layout struct {
	H      int    `json:"h"`
	I      string `json:"i"`
	Moved  bool   `json:"moved"`
	Static bool   `json:"static"`
	W      int    `json:"w"`
	X      int    `json:"x"`
	Y      int    `json:"y"`
}

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 LogField

type LogField struct {
	Name     string `json:"name" ch:"name"`
	DataType string `json:"dataType" ch:"datatype"`
	Type     string `json:"type"`
}

type LoginRequest

type LoginRequest struct {
	Email        string `json:"email"`
	Password     string `json:"password"`
	RefreshToken string `json:"refreshToken"`
}

type LoginResponse

type LoginResponse struct {
	UserJwtObject
	UserId string `json:"userId"`
}

type LogsAggregateParams

type LogsAggregateParams struct {
	Query          string `json:"q"`
	TimestampStart uint64 `json:"timestampStart"`
	TimestampEnd   uint64 `json:"timestampEnd"`
	GroupBy        string `json:"groupBy"`
	Function       string `json:"function"`
	StepSeconds    int    `json:"step"`
}

type LogsAggregatesDBResponseItem

type LogsAggregatesDBResponseItem struct {
	Timestamp int64   `ch:"ts_start_interval"`
	Value     float64 `ch:"value"`
	GroupBy   string  `ch:"groupBy"`
}

type LogsAggregatesResponseItem

type LogsAggregatesResponseItem struct {
	Timestamp int64                  `json:"timestamp,omitempty" `
	Value     interface{}            `json:"value,omitempty"`
	GroupBy   map[string]interface{} `json:"groupBy,omitempty"`
}

type LogsFilterParams

type LogsFilterParams struct {
	Limit          int    `json:"limit"`
	OrderBy        string `json:"orderBy"`
	Order          string `json:"order"`
	Query          string `json:"q"`
	TimestampStart uint64 `json:"timestampStart"`
	TimestampEnd   uint64 `json:"timestampEnd"`
	IdGt           string `json:"idGt"`
	IdLT           string `json:"idLt"`
}

type LogsTailClient

type LogsTailClient struct {
	Name   string
	Logs   chan *SignozLog
	Done   chan *bool
	Error  chan error
	Filter LogsFilterParams
}

type MetricAutocompleteTagParams

type MetricAutocompleteTagParams struct {
	MetricName string
	MetricTags metricTags
	Match      string
	TagKey     string
}

type MetricPoint

type MetricPoint struct {
	Timestamp int64
	Value     float64
}

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 NextPrevErrorIDs struct {
	NextErrorID   string    `json:"nextErrorID"`
	NextTimestamp time.Time `json:"nextTimestamp"`
	PrevErrorID   string    `json:"prevErrorID"`
	PrevTimestamp time.Time `json:"prevTimestamp"`
	GroupID       string    `json:"groupID"`
}

type NextPrevErrorIDsDBResponse

type NextPrevErrorIDsDBResponse struct {
	NextErrorID   string    `ch:"nextErrorID"`
	NextTimestamp time.Time `ch:"nextTimestamp"`
	PrevErrorID   string    `ch:"prevErrorID"`
	PrevTimestamp time.Time `ch:"prevTimestamp"`
	Timestamp     time.Time `ch:"timestamp"`
}

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 Organization struct {
	Id              string `json:"id" db:"id"`
	Name            string `json:"name" db:"name"`
	CreatedAt       int64  `json:"createdAt" db:"created_at"`
	IsAnonymous     bool   `json:"isAnonymous" db:"is_anonymous"`
	HasOptedUpdates bool   `json:"hasOptedUpdates" db:"has_opted_updates"`
}

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 PanelType

type PanelType int
const (
	TIME_SERIES PanelType
	QUERY_VALUE
)

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 PromQuery

type PromQuery struct {
	Query    string `json:"query"`
	Stats    string `json:"stats,omitempty"`
	Disabled bool   `json:"disabled"`
}

type PromQueryDashboard

type PromQueryDashboard struct {
	Query    string `json:"query"`
	Disabled bool   `json:"disabled"`
	Name     string `json:"name"`
	Legend   string `json:"legend"`
}

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 QueryData

type QueryData struct {
	ResultType parser.ValueType  `json:"resultType"`
	Result     parser.Value      `json:"result"`
	Stats      *stats.QueryStats `json:"stats,omitempty"`
}

type QueryDataDashboard

type QueryDataDashboard struct {
	Data         Data   `json:"data"`
	Error        bool   `json:"error"`
	ErrorMessage string `json:"errorMessage"`
	Loading      bool   `json:"loading"`
}

type QueryDataV2

type QueryDataV2 struct {
	ResultType parser.ValueType `json:"resultType"`
	Result     parser.Value     `json:"result"`
}

type QueryRangeParams

type QueryRangeParams struct {
	Start time.Time
	End   time.Time
	Step  time.Duration
	Query string
	Stats string
}

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 QueryType

type QueryType int
const (
	QUERY_BUILDER QueryType
	CLICKHOUSE
	PROM
)

type ReduceToOperator

type ReduceToOperator int
const (
	RLAST ReduceToOperator
	RSUM
	RAVG
	RMAX
	RMIN
)

type ResetPasswordEntry

type ResetPasswordEntry struct {
	UserId string `json:"userId" db:"user_id"`
	Token  string `json:"token" db:"token"`
}

type ResetPasswordRequest

type ResetPasswordRequest struct {
	Password string `json:"password"`
	Token    string `json:"token"`
}

type RuleResponseItem

type RuleResponseItem struct {
	Id        int       `json:"id" db:"id"`
	UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
	Data      string    `json:"data" db:"data"`
}

type SearchSpanDBResponseItem

type SearchSpanDBResponseItem struct {
	Timestamp time.Time `ch:"timestamp"`
	TraceID   string    `ch:"traceID"`
	Model     string    `ch:"model"`
}

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 ServiceErrorItem struct {
	Time      time.Time `json:"time" ch:"time"`
	Timestamp int64     `json:"timestamp" ch:"timestamp"`
	NumErrors uint64    `json:"numErrors" ch:"numErrors"`
}

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 ServiceSkipConfig struct {
	Name       string   `yaml:"name"`
	Operations []string `yaml:"operations"`
}

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 SpanAggregatesDBResponseItem

type SpanAggregatesDBResponseItem struct {
	Timestamp    int64     `ch:"timestamp" `
	Time         time.Time `ch:"time"`
	Value        uint64    `ch:"value"`
	FloatValue   float32   `ch:"floatValue"`
	Float64Value float64   `ch:"float64Value"`
	GroupBy      string    `ch:"groupBy"`
}

type SpanAggregatesResponseItem

type SpanAggregatesResponseItem struct {
	Timestamp int64              `json:"timestamp,omitempty" `
	Value     float32            `json:"value,omitempty"`
	GroupBy   map[string]float32 `json:"groupBy,omitempty"`
}

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 TTLParams

type TTLParams struct {
	Type                  string // It can be one of {traces, metrics}.
	ColdStorageVolume     string // Name of the cold storage volume.
	ToColdStorageDuration int64  // Seconds after which data will be moved to cold storage.
	DelDuration           int64  // Seconds after which data will be deleted.
}

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 TagFilters struct {
	StringTagKeys []string `json:"stringTagKeys" ch:"stringTagKeys"`
	NumberTagKeys []string `json:"numberTagKeys" ch:"numberTagKeys"`
	BoolTagKeys   []string `json:"boolTagKeys" ch:"boolTagKeys"`
}

type TagKey

type TagKey struct {
	Key  string      `json:"key"`
	Type TagDataType `json:"type"`
}

type TagQuery

type TagQuery interface {
	GetKey() string
	GetValues() []interface{}
	GetOperator() Operator
	GetTagType() TagType
	GetTagMapColumn() string
}

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 TagQueryParam struct {
	Key          string    `json:"key"`
	TagType      TagType   `json:"tagType"`
	StringValues []string  `json:"stringValues"`
	BoolValues   []bool    `json:"boolValues"`
	NumberValues []float64 `json:"numberValues"`
	Operator     Operator  `json:"operator"`
}

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 TagTelemetryData struct {
	ServiceName string `json:"serviceName" ch:"serviceName"`
	Env         string `json:"env" ch:"env"`
	Language    string `json:"language" ch:"language"`
}

type TagType

type TagType string
const (
	ResourceAttributeTagType TagType = "ResourceAttribute"
	SpanAttributeTagType     TagType = "SpanAttribute"
)

type TagValues

type TagValues struct {
	StringTagValues []string  `json:"stringTagValues" ch:"stringTagValues"`
	BoolTagValues   []bool    `json:"boolTagValues" ch:"boolTagValues"`
	NumberTagValues []float64 `json:"numberTagValues" ch:"numberTagValues"`
}

type TagsInfo

type TagsInfo struct {
	Languages map[string]interface{} `json:"languages"`
	Env       string                 `json:"env"`
}

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 UpdateField struct {
	Name             string `json:"name"`
	DataType         string `json:"dataType"`
	Type             string `json:"type"`
	Selected         bool   `json:"selected"`
	IndexType        string `json:"index"`
	IndexGranularity int    `json:"indexGranularity"`
}

type UsageItem

type UsageItem struct {
	Time      time.Time `json:"time,omitempty" ch:"time"`
	Timestamp uint64    `json:"timestamp" ch:"timestamp"`
	Count     uint64    `json:"count" ch:"count"`
}

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 UserFlag

type UserFlag map[string]string

func (*UserFlag) Scan

func (uf *UserFlag) Scan(value interface{}) error

func (UserFlag) Value

func (uf UserFlag) Value() (driver.Value, error)

type UserJwtObject

type UserJwtObject struct {
	AccessJwt        string `json:"accessJwt"`
	AccessJwtExpiry  int64  `json:"accessJwtExpiry"`
	RefreshJwt       string `json:"refreshJwt"`
	RefreshJwtExpiry int64  `json:"refreshJwtExpiry"`
}

type UserPayload

type UserPayload struct {
	User
	Role         string   `json:"role"`
	Organization string   `json:"organization"`
	Flags        UserFlag `json:"flags"`
}

type UserRole

type UserRole struct {
	UserId    string `json:"user_id"`
	GroupName string `json:"group_name"`
}

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL