Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions loki/schemas/queries/loki-log-query/migrate/migrate.cue
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,23 @@ package migrate

#target: {
datasource: {
type: "loki"
type?: "loki"
uid: string
...
}
Comment on lines 17 to 21

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 17 to 21
expr: string
...
}

kind: "LokiLogQuery"
spec: {
if #target.datasource.uid != _|_ {
datasource: {
kind: "LokiDatasource"
name: #target.datasource.uid
if #target.datasource.type != _|_ if #target.datasource.type == "loki" {
kind: "LokiLogQuery"
Comment on lines +26 to +27
spec: {
if #target.datasource.uid != _|_ {
datasource: {
kind: "LokiDatasource"
name: #target.datasource.uid
}
}
query: #target.expr
}
query: #target.expr
}
Loading