aggregation

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var REPLACEMENTS = map[string]map[string]string{
	"Qtype": {
		"1":   "A",
		"2":   "NS",
		"5":   "CNAME",
		"6":   "SOA",
		"12":  "PTR",
		"15":  "MX",
		"16":  "TXT",
		"24":  "SIG",
		"25":  "KEY",
		"28":  "AAAA",
		"30":  "NXT",
		"33":  "SRV",
		"38":  "A6",
		"43":  "DS",
		"46":  "RRSIG",
		"47":  "NSEC",
		"48":  "DNSKEY",
		"50":  "NSEC3",
		"65":  "HTTPS",
		"255": "ANY",
		"257": "CAA",
	},
	"Rcode": {
		"0": "NOERROR",
		"1": "FORMERR",
		"2": "SERVFAIL",
		"3": "NXDOMAIN",
		"4": "NOTIMP",
		"5": "REFUSED",
		"6": "YXDOMAIN",
		"7": "XRRSET",
		"8": "NOTAUTH",
		"9": "NOTZONE",
	},
	"Opcode": {
		"0": "Query",
		"1": "IQuery",
		"2": "Status",
		"3": "Unassigned",
		"4": "Notify",
		"5": "Update",
		"6": "DSO",
	},
	"QRAABits": {
		"cXI9MCxhYT0w": "qr=0,aa=0",
		"cXI9MSxhYT0w": "qr=1,aa=0",
		"cXI9MSxhYT0x": "qr=1,aa=1",
		"cXI9MCxhYT0x": "qr=0,aa=1",
	},
}

Functions

func AggregateForPrometheus

func AggregateForPrometheus(dscData *dscparser.DSCData, config config.Config)

func EliminateDimensionOne

func EliminateDimensionOne(dataset *dscparser.Dataset)

func EliminateDimensionTwo

func EliminateDimensionTwo(dataset *dscparser.Dataset)

func FilterDimensionOne

func FilterDimensionOne(dataset *dscparser.Dataset, allowedValues []string)

func FilterDimensionTwo

func FilterDimensionTwo(dataset *dscparser.Dataset, allowedValues []string)

func MaxCells

func MaxCells(dataset *dscparser.Dataset, x int)

func ReplaceLabels

func ReplaceLabels(dataset *dscparser.Dataset)

Types

This section is empty.

Jump to

Keyboard shortcuts

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