monitoring

package
v1.118.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aggregation_AlignmentPeriod_FromProto

func Aggregation_AlignmentPeriod_FromProto(mapCtx *MapContext, in *durationpb.Duration) *string

func Aggregation_AlignmentPeriod_ToProto

func Aggregation_AlignmentPeriod_ToProto(mapCtx *MapContext, in *string) *durationpb.Duration

func Aggregation_FromProto

func Aggregation_FromProto(mapCtx *MapContext, in *pb.Aggregation) *krm.Aggregation

func Aggregation_ToProto

func Aggregation_ToProto(mapCtx *MapContext, in *krm.Aggregation) *pb.Aggregation

func AlertChart_FromProto

func AlertChart_FromProto(mapCtx *MapContext, in *pb.AlertChart) *krm.AlertChart

func AlertChart_ToProto

func AlertChart_ToProto(mapCtx *MapContext, in *krm.AlertChart) *pb.AlertChart

func ChartOptions_FromProto

func ChartOptions_FromProto(mapCtx *MapContext, in *pb.ChartOptions) *krm.ChartOptions

func ChartOptions_ToProto

func ChartOptions_ToProto(mapCtx *MapContext, in *krm.ChartOptions) *pb.ChartOptions

func CollapsibleGroup_FromProto

func CollapsibleGroup_FromProto(mapCtx *MapContext, in *pb.CollapsibleGroup) *krm.CollapsibleGroup

func CollapsibleGroup_ToProto

func CollapsibleGroup_ToProto(mapCtx *MapContext, in *krm.CollapsibleGroup) *pb.CollapsibleGroup

func ColumnLayout_Column_FromProto

func ColumnLayout_Column_FromProto(mapCtx *MapContext, in *pb.ColumnLayout_Column) *krm.ColumnLayout_Column

func ColumnLayout_Column_ToProto

func ColumnLayout_Column_ToProto(mapCtx *MapContext, in *krm.ColumnLayout_Column) *pb.ColumnLayout_Column

func ColumnLayout_FromProto

func ColumnLayout_FromProto(mapCtx *MapContext, in *pb.ColumnLayout) *krm.ColumnLayout

func ColumnLayout_ToProto

func ColumnLayout_ToProto(mapCtx *MapContext, in *krm.ColumnLayout) *pb.ColumnLayout

func DashboardTimeSeriesQuery_TimeSeriesQueryLanguage_ToProto

func DashboardTimeSeriesQuery_TimeSeriesQueryLanguage_ToProto(mapCtx *MapContext, in *string) *pb.TimeSeriesQuery_TimeSeriesQueryLanguage

func DataSet_MinAlignmentPeriod_FromProto

func DataSet_MinAlignmentPeriod_FromProto(mapCtx *MapContext, in *durationpb.Duration) *string

TODO: The format is not documented, we need to validate

func DataSet_MinAlignmentPeriod_ToProto

func DataSet_MinAlignmentPeriod_ToProto(mapCtx *MapContext, in *string) *durationpb.Duration

TODO: The format is not documented, we need to validate

func Duration_FromProto

func Duration_FromProto(mapCtx *MapContext, in *durationpb.Duration) *string

func Duration_ToProto

func Duration_ToProto(mapCtx *MapContext, in *string) *durationpb.Duration

func Empty_FromProto

func Empty_FromProto(mapCtx *MapContext, in *emptypb.Empty) *krm.Empty

func Empty_ToProto

func Empty_ToProto(mapCtx *MapContext, in *krm.Empty) *emptypb.Empty

func Enum_FromProto

func Enum_FromProto[U ProtoEnum](mapCtx *MapContext, v U) *string

func Enum_ToProto

func Enum_ToProto[U ProtoEnum](mapCtx *MapContext, in *string) U

func ErrorReportingPanel_FromProto

func ErrorReportingPanel_FromProto(mapCtx *MapContext, in *pb.ErrorReportingPanel) *krm.ErrorReportingPanel
func Dashboard_LabelsEntry_FromProto(mapCtx *MapContext, in *pb.Dashboard_LabelsEntry) *krm.Dashboard_LabelsEntry {
	if in == nil {
		return nil
	}
	out := &krm.Dashboard_LabelsEntry{}
	out.Key = LazyPtr(in.GetKey())
	out.Value = LazyPtr(in.GetValue())
	return out
}
func Dashboard_LabelsEntry_ToProto(mapCtx *MapContext, in *krm.Dashboard_LabelsEntry) *pb.Dashboard_LabelsEntry {
	if in == nil {
		return nil
	}
	out := &pb.Dashboard_LabelsEntry{}
	out.Key = ValueOf(in.Key)
	out.Value = ValueOf(in.Value)
	return out
}

func ErrorReportingPanel_ToProto

func ErrorReportingPanel_ToProto(mapCtx *MapContext, in *krm.ErrorReportingPanel) *pb.ErrorReportingPanel

func GridLayout_FromProto

func GridLayout_FromProto(mapCtx *MapContext, in *pb.GridLayout) *krm.GridLayout

func GridLayout_ToProto

func GridLayout_ToProto(mapCtx *MapContext, in *krm.GridLayout) *pb.GridLayout

func LazyPtr

func LazyPtr[V comparable](v V) *V

func LogsPanel_FromProto

func LogsPanel_FromProto(mapCtx *MapContext, in *pb.LogsPanel) *krm.LogsPanel
func IncidentList_FromProto(mapCtx *MapContext, in *pb.IncidentList) *krm.IncidentList {
	if in == nil {
		return nil
	}
	out := &krm.IncidentList{}
	out.MonitoredResources = Slice_FromProto(mapCtx, in.MonitoredResources, string_FromProto)
	out.PolicyNames = in.PolicyNames
	return out
}
func IncidentList_ToProto(mapCtx *MapContext, in *krm.IncidentList) *pb.IncidentList {
	if in == nil {
		return nil
	}
	out := &pb.IncidentList{}
	out.MonitoredResources = Slice_ToProto(mapCtx, in.MonitoredResources, string_ToProto)
	out.PolicyNames = in.PolicyNames
	return out
}

func LogsPanel_ResourceNames_FromProto

func LogsPanel_ResourceNames_FromProto(mapCtx *MapContext, in []string) []v1alpha1.ResourceRef

func LogsPanel_ResourceNames_ToProto

func LogsPanel_ResourceNames_ToProto(mapCtx *MapContext, in []v1alpha1.ResourceRef) []string

func LogsPanel_ToProto

func LogsPanel_ToProto(mapCtx *MapContext, in *krm.LogsPanel) *pb.LogsPanel

func MonitoringDashboardSpec_FromProto

func MonitoringDashboardSpec_FromProto(mapCtx *MapContext, in *pb.Dashboard) *krm.MonitoringDashboardSpec

func MonitoringDashboardSpec_ToProto

func MonitoringDashboardSpec_ToProto(mapCtx *MapContext, in *krm.MonitoringDashboardSpec) *pb.Dashboard

func MonitoringDashboardStatus_FromProto

func MonitoringDashboardStatus_FromProto(mapCtx *MapContext, in *pb.Dashboard) *krm.MonitoringDashboardStatus

func MonitoringDashboardStatus_ToProto

func MonitoringDashboardStatus_ToProto(mapCtx *MapContext, in *krm.MonitoringDashboardStatus) *pb.Dashboard

func MosaicLayout_FromProto

func MosaicLayout_FromProto(mapCtx *MapContext, in *pb.MosaicLayout) *krm.MosaicLayout

func MosaicLayout_Tile_FromProto

func MosaicLayout_Tile_FromProto(mapCtx *MapContext, in *pb.MosaicLayout_Tile) *krm.MosaicLayout_Tile

func MosaicLayout_Tile_ToProto

func MosaicLayout_Tile_ToProto(mapCtx *MapContext, in *krm.MosaicLayout_Tile) *pb.MosaicLayout_Tile

func MosaicLayout_ToProto

func MosaicLayout_ToProto(mapCtx *MapContext, in *krm.MosaicLayout) *pb.MosaicLayout

func PickTimeSeriesFilter_FromProto

func PickTimeSeriesFilter_FromProto(mapCtx *MapContext, in *pb.PickTimeSeriesFilter) *krm.PickTimeSeriesFilter

func PickTimeSeriesFilter_ToProto

func PickTimeSeriesFilter_ToProto(mapCtx *MapContext, in *krm.PickTimeSeriesFilter) *pb.PickTimeSeriesFilter

func PtrTo

func PtrTo[T any](t T) *T

func RowLayout_FromProto

func RowLayout_FromProto(mapCtx *MapContext, in *pb.RowLayout) *krm.RowLayout
func PieChart_PieChartDataSet_FromProto(mapCtx *MapContext, in *pb.PieChart_PieChartDataSet) *krm.PieChart_PieChartDataSet {
	if in == nil {
		return nil
	}
	out := &krm.PieChart_PieChartDataSet{}
	out.TimeSeriesQuery = TimeSeriesQuery_FromProto(mapCtx, in.GetTimeSeriesQuery())
	out.SliceNameTemplate = LazyPtr(in.GetSliceNameTemplate())
	out.MinAlignmentPeriod = PieChartDataSet_MinAlignmentPeriod_FromProto(mapCtx, in.GetMinAlignmentPeriod())
	return out
}
func PieChart_PieChartDataSet_ToProto(mapCtx *MapContext, in *krm.PieChart_PieChartDataSet) *pb.PieChart_PieChartDataSet {
	if in == nil {
		return nil
	}
	out := &pb.PieChart_PieChartDataSet{}
	out.TimeSeriesQuery = TimeSeriesQuery_ToProto(mapCtx, in.TimeSeriesQuery)
	out.SliceNameTemplate = ValueOf(in.SliceNameTemplate)
	out.MinAlignmentPeriod = PieChartDataSet_MinAlignmentPeriod_ToProto(mapCtx, in.MinAlignmentPeriod)
	return out
}

func RowLayout_Row_FromProto

func RowLayout_Row_FromProto(mapCtx *MapContext, in *pb.RowLayout_Row) *krm.RowLayout_Row

func RowLayout_Row_ToProto

func RowLayout_Row_ToProto(mapCtx *MapContext, in *krm.RowLayout_Row) *pb.RowLayout_Row

func RowLayout_ToProto

func RowLayout_ToProto(mapCtx *MapContext, in *krm.RowLayout) *pb.RowLayout

func Scorecard_FromProto

func Scorecard_FromProto(mapCtx *MapContext, in *pb.Scorecard) *krm.Scorecard

func Scorecard_GaugeView_FromProto

func Scorecard_GaugeView_FromProto(mapCtx *MapContext, in *pb.Scorecard_GaugeView) *krm.Scorecard_GaugeView

func Scorecard_GaugeView_ToProto

func Scorecard_GaugeView_ToProto(mapCtx *MapContext, in *krm.Scorecard_GaugeView) *pb.Scorecard_GaugeView

func Scorecard_SparkChartView_FromProto

func Scorecard_SparkChartView_FromProto(mapCtx *MapContext, in *pb.Scorecard_SparkChartView) *krm.Scorecard_SparkChartView

func Scorecard_SparkChartView_ToProto

func Scorecard_SparkChartView_ToProto(mapCtx *MapContext, in *krm.Scorecard_SparkChartView) *pb.Scorecard_SparkChartView

func Scorecard_ToProto

func Scorecard_ToProto(mapCtx *MapContext, in *krm.Scorecard) *pb.Scorecard

func SecondsString_FromProto

func SecondsString_FromProto(mapCtx *MapContext, in *durationpb.Duration) *string

func SecondsString_ToProto

func SecondsString_ToProto(mapCtx *MapContext, in *string, fieldName string) *durationpb.Duration

func SectionHeader_FromProto

func SectionHeader_FromProto(mapCtx *MapContext, in *pb.SectionHeader) *krm.SectionHeader

func SectionHeader_ToProto

func SectionHeader_ToProto(mapCtx *MapContext, in *krm.SectionHeader) *pb.SectionHeader

func SingleViewGroup_FromProto

func SingleViewGroup_FromProto(mapCtx *MapContext, in *pb.SingleViewGroup) *krm.SingleViewGroup

func SingleViewGroup_ToProto

func SingleViewGroup_ToProto(mapCtx *MapContext, in *krm.SingleViewGroup) *pb.SingleViewGroup

func Slice_FromProto

func Slice_FromProto[T, U any](mapCtx *MapContext, in []*T, mapper func(mapCtx *MapContext, in *T) *U) []U

func Slice_ToProto

func Slice_ToProto[T, U any](mapCtx *MapContext, in []T, mapper func(mapCtx *MapContext, in *T) *U) []*U

func SparkChartView_MinAlignmentPeriod_FromProto

func SparkChartView_MinAlignmentPeriod_FromProto(mapCtx *MapContext, in *durationpb.Duration) *string

TODO: The format is not documented, we need to validate

func SparkChartView_MinAlignmentPeriod_ToProto

func SparkChartView_MinAlignmentPeriod_ToProto(mapCtx *MapContext, in *string) *durationpb.Duration

TODO: The format is not documented, we need to validate

func TableDataSet_MinAlignmentPeriod_FromProto

func TableDataSet_MinAlignmentPeriod_FromProto(mapCtx *MapContext, in *durationpb.Duration) *string

func TableDataSet_MinAlignmentPeriod_ToProto

func TableDataSet_MinAlignmentPeriod_ToProto(mapCtx *MapContext, in *string) *durationpb.Duration

func TableDisplayOptions_FromProto

func TableDisplayOptions_FromProto(mapCtx *MapContext, in *pb.TableDisplayOptions) *krm.TableDisplayOptions

func TableDisplayOptions_ToProto

func TableDisplayOptions_ToProto(mapCtx *MapContext, in *krm.TableDisplayOptions) *pb.TableDisplayOptions

func Text_FromProto

func Text_FromProto(mapCtx *MapContext, in *pb.Text) *krm.Text

func Text_TextStyle_FromProto

func Text_TextStyle_FromProto(mapCtx *MapContext, in *pb.Text_TextStyle) *krm.Text_TextStyle

func Text_TextStyle_ToProto

func Text_TextStyle_ToProto(mapCtx *MapContext, in *krm.Text_TextStyle) *pb.Text_TextStyle

func Text_ToProto

func Text_ToProto(mapCtx *MapContext, in *krm.Text) *pb.Text

func Threshold_FromProto

func Threshold_FromProto(mapCtx *MapContext, in *pb.Threshold) *krm.Threshold

func Threshold_ToProto

func Threshold_ToProto(mapCtx *MapContext, in *krm.Threshold) *pb.Threshold

func TimeSeriesFilterRatio_FromProto

func TimeSeriesFilterRatio_FromProto(mapCtx *MapContext, in *pb.TimeSeriesFilterRatio) *krm.TimeSeriesFilterRatio

func TimeSeriesFilterRatio_ToProto

func TimeSeriesFilterRatio_ToProto(mapCtx *MapContext, in *krm.TimeSeriesFilterRatio) *pb.TimeSeriesFilterRatio

func TimeSeriesFilter_FromProto

func TimeSeriesFilter_FromProto(mapCtx *MapContext, in *pb.TimeSeriesFilter) *krm.TimeSeriesFilter

func TimeSeriesFilter_ToProto

func TimeSeriesFilter_ToProto(mapCtx *MapContext, in *krm.TimeSeriesFilter) *pb.TimeSeriesFilter

func TimeSeriesQuery_FromProto

func TimeSeriesQuery_FromProto(mapCtx *MapContext, in *pb.TimeSeriesQuery) *krm.TimeSeriesQuery

func TimeSeriesQuery_TimeSeriesQueryLanguage_ToProto

func TimeSeriesQuery_TimeSeriesQueryLanguage_ToProto(mapCtx *MapContext, in *string) *pb.TimeSeriesQuery_TimeSeriesQueryLanguage

func TimeSeriesQuery_ToProto

func TimeSeriesQuery_ToProto(mapCtx *MapContext, in *krm.TimeSeriesQuery) *pb.TimeSeriesQuery

func TimeSeriesTable_FromProto

func TimeSeriesTable_FromProto(mapCtx *MapContext, in *pb.TimeSeriesTable) *krm.TimeSeriesTable

func TimeSeriesTable_ToProto

func TimeSeriesTable_ToProto(mapCtx *MapContext, in *krm.TimeSeriesTable) *pb.TimeSeriesTable

func ValueOf

func ValueOf[T any](p *T) T

func Widget_FromProto

func Widget_FromProto(mapCtx *MapContext, in *pb.Widget) *krm.Widget

func Widget_ToProto

func Widget_ToProto(mapCtx *MapContext, in *krm.Widget) *pb.Widget

func XyChart_Axis_FromProto

func XyChart_Axis_FromProto(mapCtx *MapContext, in *pb.XyChart_Axis) *krm.XyChart_Axis

func XyChart_Axis_ToProto

func XyChart_Axis_ToProto(mapCtx *MapContext, in *krm.XyChart_Axis) *pb.XyChart_Axis

func XyChart_DataSet_FromProto

func XyChart_DataSet_FromProto(mapCtx *MapContext, in *pb.XyChart_DataSet) *krm.XyChart_DataSet

func XyChart_DataSet_ToProto

func XyChart_DataSet_ToProto(mapCtx *MapContext, in *krm.XyChart_DataSet) *pb.XyChart_DataSet

func XyChart_FromProto

func XyChart_FromProto(mapCtx *MapContext, in *pb.XyChart) *krm.XyChart

func XyChart_TimeshiftDuration_FromProto

func XyChart_TimeshiftDuration_FromProto(mapCtx *MapContext, in *durationpb.Duration) *string

TODO: The format is not documented, we need to validate

func XyChart_TimeshiftDuration_ToProto

func XyChart_TimeshiftDuration_ToProto(mapCtx *MapContext, in *string) *durationpb.Duration

TODO: The format is not documented, we need to validate

func XyChart_ToProto

func XyChart_ToProto(mapCtx *MapContext, in *krm.XyChart) *pb.XyChart

Types

type MapContext

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

func (*MapContext) Err

func (c *MapContext) Err() error

func (*MapContext) Errorf

func (c *MapContext) Errorf(msg string, args ...interface{})

type ProtoEnum

type ProtoEnum interface {
	~int32
	Descriptor() protoreflect.EnumDescriptor
}

Jump to

Keyboard shortcuts

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