yaml

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package yaml reads and writes artifacts that exactly mirror the internal representation

Index

Constants

View Source
const Version = "0.0.1"

Variables

View Source
var NotSupported = errors.New("yaml only supported for sources and dashboards")

Functions

This section is empty.

Types

type Dimension

type Dimension struct {
	Label       string
	Property    string `copier:"Name"`
	Description string
}

type Measure

type Measure struct {
	Label       string
	Expression  string
	Description string
	Format      string `yaml:"format_preset"`
}

type MetricsView

type MetricsView struct {
	Version          string
	DisplayName      string `yaml:"display_name"`
	Description      string
	From             string
	TimeDimension    string `yaml:"time_dimension"`
	TimeGrains       []string
	DefaultTimeGrain string `yaml:"default_timegrain"`
	Dimensions       []*Dimension
	Measures         []*Measure
}

type Source

type Source struct {
	Version string
	Type    string
	URI     string `yaml:"uri,omitempty"`
	Path    string `yaml:"path,omitempty"`
	Region  string `yaml:"region,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL