metabase

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

README

metabase

Usage

source:
  name: metabase
  config:
    host: http://localhost:3000
    instance_label: my-metabase
    username: meteor_tester
    password: meteor_pass_1234

Inputs

Key Value Example Description
host string http://localhost:4002 The host at which metabase is running required
instance_label string my-metabase Instance alias, the value will be used as part of the urn component required
username string meteor_tester Username/email to access the metabase optional
password string meteor_pass_1234 Password for the metabase optional
session_id string meteor_pass_1234 Use existing session ID from metabase to create requests. (this will ignore username and password) optional

Outputs

Field Sample Value
resource.urn metabase::my-metabase/dashboard/5123
resource.name dashboard_name
resource.service metabase
description table description
charts []Chart
Chart
Field Sample Value
urn metabase::my-metabase/card/9123
source metabase
dashboard_urn metabase::my-metabase/dashboard/5123
dashboard_source metabase

Contributing

Refer to the contribution guidelines for information on contributing to this module.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host          string `mapstructure:"host" validate:"required"`
	InstanceLabel string `mapstructure:"instance_label" validate:"required"`
	Username      string `mapstructure:"username" validate:"required_without=SessionID"`
	Password      string `mapstructure:"password"`
	SessionID     string `mapstructure:"session_id"`
}

Config holds the set of configuration for the metabase extractor

type Extractor

type Extractor struct {
	plugins.BaseExtractor
	// contains filtered or unexported fields
}

Extractor manages the extraction of data from the metabase server

func New

func New(c client.Client, l log.Logger) *Extractor

New returns a pointer to an initialized Extractor Object

func (*Extractor) Extract

func (e *Extractor) Extract(ctx context.Context, emit plugins.Emit) error

Extract collects the metadata from the source. The metadata is collected through the out channel

func (*Extractor) Init

func (e *Extractor) Init(ctx context.Context, config plugins.Config) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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