2025-07-28 23:14:58 +05:30
|
|
|
package contextlinks
|
|
|
|
|
|
2025-09-12 13:11:54 +05:30
|
|
|
import (
|
|
|
|
|
v3 "github.com/SigNoz/signoz/pkg/query-service/model/v3"
|
|
|
|
|
"github.com/SigNoz/signoz/pkg/types/ruletypes"
|
|
|
|
|
)
|
2025-07-28 23:14:58 +05:30
|
|
|
|
|
|
|
|
// 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"`
|
|
|
|
|
}
|
2025-09-12 13:11:54 +05:30
|
|
|
|
|
|
|
|
var PredefinedAlertLabels = []string{ruletypes.LabelThresholdName}
|