mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
Correlations: Add GetCorrelation(s) HTTP APIs (#52517)
* Correlations: Get Single correlations * Correlations: Get all correlations for given source ds * Correlations: Get all correlations * add tests * add DB indices * fix lint errors * remove skip from tests * use DatasourceService in test
This commit is contained in:
@@ -15,7 +15,14 @@ func addCorrelationsMigrations(mg *Migrator) {
|
||||
{Name: "label", Type: DB_Text, Nullable: false},
|
||||
{Name: "description", Type: DB_Text, Nullable: false},
|
||||
},
|
||||
Indices: []*Index{
|
||||
{Cols: []string{"uid"}},
|
||||
{Cols: []string{"source_uid"}},
|
||||
},
|
||||
}
|
||||
|
||||
mg.AddMigration("create correlation table v1", NewAddTableMigration(correlationsV1))
|
||||
|
||||
mg.AddMigration("add index correlations.uid", NewAddIndexMigration(correlationsV1, correlationsV1.Indices[0]))
|
||||
mg.AddMigration("add index correlations.source_uid", NewAddIndexMigration(correlationsV1, correlationsV1.Indices[1]))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user