internal

package
v0.0.0-...-aef1126 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2025 Microsoft Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliConfig

type CliConfig struct {
	PrometheusRules PrometheusRulesConfig `json:"prometheusRules"`
}

type GroupAlerts

type GroupAlerts struct {
	GroupName string   `json:"groupName"`
	Alerts    []string `json:"alerts"`
}

type Options

type Options struct {
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions() *Options

func (*Options) Complete

func (o *Options) Complete(configFilePath string, forceInfoSeverity bool) error

func (*Options) Generate

func (o *Options) Generate() error

func (*Options) RunTests

func (o *Options) RunTests() error

type PrometheusRulesConfig

type PrometheusRulesConfig struct {
	RulesFolders              []string       `json:"rulesFolders"`
	UntestedRules             []string       `json:"untestedRules,omitempty"`
	OutputBicep               string         `json:"outputBicep"`
	IncludedAlertsByGroup     []GroupAlerts  `json:"includedAlertsByGroup,omitempty"` // Optional: Only alerts listed here are included; if empty, all alerts are included
	OutputReplacements        []Replacements `json:"outputReplacements,omitempty"`
	DefaultEvaluationInterval string         `json:"defaultEvaluationInterval,omitempty"`
}

type ReplacementWriter

type ReplacementWriter struct {
	// contains filtered or unexported fields
}

func NewReplacementWriter

func NewReplacementWriter(w io.Writer, replacements []Replacements) *ReplacementWriter

func (*ReplacementWriter) Write

func (rw *ReplacementWriter) Write(p []byte) (n int, err error)

type Replacements

type Replacements struct {
	From string `json:"from"`
	To   string `json:"to"`
}

Jump to

Keyboard shortcuts

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