mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 07:56:56 +00:00
41 lines
1.0 KiB
Go
41 lines
1.0 KiB
Go
|
|
package contextlinks
|
||
|
|
|
||
|
|
import v3 "github.com/SigNoz/signoz/pkg/query-service/model/v3"
|
||
|
|
|
||
|
|
// TODO(srikanthccv): Fix the URL management
|
||
|
|
type URLShareableTimeRange struct {
|
||
|
|
Start int64 `json:"start"`
|
||
|
|
End int64 `json:"end"`
|
||
|
|
PageSize int64 `json:"pageSize"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type FilterExpression struct {
|
||
|
|
Expression string `json:"expression,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type Aggregation struct {
|
||
|
|
Expression string `json:"expression,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type LinkQuery struct {
|
||
|
|
v3.BuilderQuery
|
||
|
|
Filter *FilterExpression `json:"filter,omitempty"`
|
||
|
|
Aggregations []*Aggregation `json:"aggregations,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type URLShareableBuilderQuery struct {
|
||
|
|
QueryData []LinkQuery `json:"queryData"`
|
||
|
|
QueryFormulas []string `json:"queryFormulas"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type URLShareableCompositeQuery struct {
|
||
|
|
QueryType string `json:"queryType"`
|
||
|
|
Builder URLShareableBuilderQuery `json:"builder"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type URLShareableOptions struct {
|
||
|
|
MaxLines int `json:"maxLines"`
|
||
|
|
Format string `json:"format"`
|
||
|
|
SelectColumns []v3.AttributeKey `json:"selectColumns"`
|
||
|
|
}
|