@splunk/visualization-migrations
v27.0.0
Published
Migration scripts for visualization definitions
Downloads
3,126
Maintainers
Keywords
Readme
Visualization Migrations
import { migrate, canMigrate } from '@splunk/visualization-migrations';
viz._ -> splunk._
canMigrate({ fromType: string, toType: string }): boolean
toType optional, if not set upgrade to splunk. of same type
expose types for migrate & canMigrate
If you are migrating via node you will need your entry point script to look like
window = {
console: {}
}
const migrations = require('@splunk/visualization-migrations');
const column = migrations.migrate({
definition: {
type: 'viz.column',
},
});
console.log(column);