events

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CantabularDatasetCategoryDimensionImportSchema = &avro.Schema{
	Definition: cantabularDatasetCategoryDimensionImportSchema,
}

CantabularDatasetCategoryDimensionImportSchema is the avro schema for the CantabularDatasetCategoryDimensionImport event

View Source
var CantabularDatasetInstanceCompleteSchema = &avro.Schema{
	Definition: cantabularDatasetInstanceCompleteSchema,
}

CantabularDatasetInstanceCompleteSchema is the avro schema for the CantabularDatasetInstanceComplete event

View Source
var CantabularDatasetInstanceStartedSchema = &avro.Schema{
	Definition: cantabularDatasetInstanceStartedSchema,
}

CantabularDatasetInstanceStartedSchema provides an Avro schema for the CantabularDatasetInstanceStarted event

View Source
var DataImportCompleteSchema = avro.Schema{
	Definition: dataImportCompleteSchema,
}

DataImportCompleteSchema is the Avro schema for DataImportComplete

View Source
var HierarchyBuiltSchema = avro.Schema{
	Definition: hierarchyBuiltSchema,
}

HierarchyBuiltSchema is the Avro schema for HierarchyBuilt events.

View Source
var InputFileAvailableSchema = &avro.Schema{
	Definition: inputFileAvailableSchema,
}

InputFileAvailableSchema provides an Avro schema for the InputFileAvailable event.

View Source
var ObservationsInsertedSchema = avro.Schema{
	Definition: observationsInsertedSchema,
}

ObservationsInsertedSchema is the Avro schema for each observation batch inserted.

View Source
var SearchIndexBuiltSchema = &avro.Schema{
	Definition: searchIndexBuilt,
}

SearchIndexBuiltSchema is the Avro schema for each dimension hierarchy successfuly sent to elastic

Functions

This section is empty.

Types

type CantabularDatasetCategoryDimensionImport added in v1.2.1

type CantabularDatasetCategoryDimensionImport struct {
	JobID          string `avro:"job_id"`
	InstanceID     string `avro:"instance_id"`
	DimensionID    string `avro:"dimension_id"`
	CantabularBlob string `avro:"cantabular_blob"`
	IsGeography    bool   `avro:"is_geography"`
}

CantabularDatasetCategoryDimensionImport is an event produced to trigger the import of dimension options for a given dimension from Cantabular

type CantabularDatasetInstanceComplete added in v1.2.1

type CantabularDatasetInstanceComplete struct {
	InstanceID     string `avro:"instance_id"`
	CantabularBlob string `avro:"cantabular_blob"`
}

CantabularDatasetInstanceComplete is the event produced when the dimension options have been imported and the instance has successfully been imported from Cantabular

type CantabularDatasetInstanceStarted

type CantabularDatasetInstanceStarted struct {
	RecipeID       string `avro:"recipe_id"`
	InstanceID     string `avro:"instance_id"`
	JobID          string `avro:"job_id"`
	CantabularType string `avro:"cantabular_type"`
}

CantabularDatasetInstanceStarted is an event produced when a cantabular import is triggered

type DataImportComplete

type DataImportComplete struct {
	InstanceID    string `avro:"instance_id"`
	DimensionName string `avro:"dimension_name"`
	CodeListID    string `avro:"code_list_id"`
}

DataImportComplete contains the data required for each hierarchy to be imported.

type HierarchyBuilt

type HierarchyBuilt struct {
	InstanceID    string `avro:"instance_id"`
	DimensionName string `avro:"dimension_name"`
}

HierarchyBuilt contains data related to a hierarchy that has just been built.

type InputFileAvailable

type InputFileAvailable struct {
	URL        string `avro:"file_url"`
	InstanceID string `avro:"instance_id"`
	JobID      string `avro:"job_id"`
}

InputFileAvailable is an event produced when a new input file is available to import.

type ObservationsInserted

type ObservationsInserted struct {
	ObservationsInserted int32  `avro:"observations_inserted"`
	InstanceID           string `avro:"instance_id"`
}

ObservationsInserted is the data that is output for each observation batch inserted.

type SearchIndexBuilt

type SearchIndexBuilt struct {
	InstanceID    string `avro:"instance_id"`
	DimensionName string `avro:"dimension_name"`
}

SearchIndexBuilt contains data related to a search that has just been built.

Jump to

Keyboard shortcuts

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