package model import ( "time" ) type User struct { Name string `json:"name"` Email string `json:"email"` OrganizationName string `json:"organizationName"` } type InstantQueryMetricsParams struct { Time time.Time Query string Stats string } type QueryRangeParams struct { Start time.Time End time.Time Step time.Duration Query string Stats string } type Query struct { Datasource string `json:"datasource"` Format string `json:"format"` Expr string `json:"expr"` } type QueryRangeParamsV2 struct { Start time.Time End time.Time Step time.Duration StartStr string `json:"start"` EndStr string `json:"end"` StepStr string `json:"step"` Queries []Query `json:"queries"` } func (params QueryRangeParamsV2) sanitizeAndValidate() (*QueryRangeParamsV2, error) { return nil, nil } type metricTags map[string]string type MetricAutocompleteTagParams struct { MetricName string MetricTags metricTags Match string TagKey string } type GetTopEndpointsParams struct { StartTime string `json:"start"` EndTime string `json:"end"` ServiceName string `json:"service"` Start *time.Time End *time.Time Tags []TagQuery `json:"tags"` } type GetUsageParams struct { StartTime string EndTime string ServiceName string Period string StepHour int Start *time.Time End *time.Time } type GetServicesParams struct { StartTime string `json:"start"` EndTime string `json:"end"` Period int Start *time.Time End *time.Time Tags []TagQuery `json:"tags"` } type GetServiceOverviewParams struct { StartTime string `json:"start"` EndTime string `json:"end"` Period string Start *time.Time End *time.Time Tags []TagQuery `json:"tags"` ServiceName string `json:"service"` StepSeconds int `json:"step"` } type TagQuery struct { Key string Values []string Operator string } type GetFilteredSpansParams struct { ServiceName []string `json:"serviceName"` Operation []string `json:"operation"` Kind string `json:"kind"` 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"` 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 []TagQuery `json:"tags"` Exclude []string `json:"exclude"` Start *time.Time End *time.Time } type GetFilteredSpanAggregatesParams struct { ServiceName []string `json:"serviceName"` Operation []string `json:"operation"` Kind string `json:"kind"` 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"` MinDuration string `json:"minDuration"` MaxDuration string `json:"maxDuration"` Tags []TagQuery `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 SpanFilterParams struct { Status []string `json:"status"` ServiceName []string `json:"serviceName"` 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"` 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 TagFilterParams struct { Status []string `json:"status"` ServiceName []string `json:"serviceName"` 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"` Exclude []string `json:"exclude"` MinDuration string `json:"minDuration"` MaxDuration string `json:"maxDuration"` StartStr string `json:"start"` EndStr string `json:"end"` TagKey string `json:"tagKey"` Start *time.Time End *time.Time } 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 GetTTLParams struct { Type string GetAllTTL bool } type GetErrorsParams struct { Start *time.Time End *time.Time } type GetErrorParams struct { ErrorType string ErrorID string ServiceName string }