monitoring

package
v1.122.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 31 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 *direct.MapContext, in *durationpb.Duration) *string

func Aggregation_AlignmentPeriod_ToProto

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

func Aggregation_FromProto

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

func Aggregation_ToProto

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

func AlertChart_FromProto

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

func AlertChart_ToProto

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

func BlankView_FromProto added in v1.120.0

func BlankView_FromProto(mapCtx *direct.MapContext, in *emptypb.Empty) *krm.BlankView

func BlankView_ToProto added in v1.120.0

func BlankView_ToProto(mapCtx *direct.MapContext, in *krm.BlankView) *emptypb.Empty

func ChartOptions_FromProto

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

func ChartOptions_ToProto

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

func CollapsibleGroup_FromProto

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

func CollapsibleGroup_ToProto

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

func ColumnLayout_Column_FromProto

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

func ColumnLayout_Column_ToProto

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

func ColumnLayout_FromProto

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

func ColumnLayout_ToProto

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

func ComputeChangedFields added in v1.120.0

func ComputeChangedFields(actual proto.Message, desired proto.Message) sets.Set[string]

func DashboardFilter_FromProto added in v1.120.0

func DashboardFilter_FromProto(mapCtx *direct.MapContext, in *pb.DashboardFilter) *krm.DashboardFilter

func DashboardFilter_StringValue_ToProto added in v1.120.0

func DashboardFilter_StringValue_ToProto(mapCtx *direct.MapContext, in *string) *pb.DashboardFilter_StringValue

func DashboardFilter_ToProto added in v1.120.0

func DashboardFilter_ToProto(mapCtx *direct.MapContext, in *krm.DashboardFilter) *pb.DashboardFilter

func DashboardTimeSeriesQuery_TimeSeriesQueryLanguage_ToProto

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

func DataSet_MinAlignmentPeriod_FromProto

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

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

func DataSet_MinAlignmentPeriod_ToProto

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

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

func Empty_FromProto

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

func Empty_ToProto

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

func ErrorReportingPanel_FromProto

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

func ErrorReportingPanel_ToProto

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

func GridLayout_FromProto

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

func GridLayout_ToProto

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

func IncidentList_FromProto added in v1.120.0

func IncidentList_FromProto(mapCtx *direct.MapContext, in *pb.IncidentList) *krm.IncidentList

func IncidentList_ToProto added in v1.120.0

func IncidentList_ToProto(mapCtx *direct.MapContext, in *krm.IncidentList) *pb.IncidentList

func LogsPanel_FromProto

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

func LogsPanel_ResourceNames_FromProto

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

func LogsPanel_ResourceNames_ToProto

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

func LogsPanel_ToProto

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

func MonitoredResource_FromProto added in v1.120.0

func MonitoredResource_FromProto(mapCtx *direct.MapContext, in *monitoredres.MonitoredResource) *krm.MonitoredResource

func MonitoredResource_ToProto added in v1.120.0

func MonitoredResource_ToProto(mapCtx *direct.MapContext, in *krm.MonitoredResource) *monitoredres.MonitoredResource

func MonitoringDashboardSpec_FromProto

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

func MonitoringDashboardSpec_ToProto

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

func MonitoringDashboardStatus_FromProto

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

func MonitoringDashboardStatus_ToProto

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

func MosaicLayout_FromProto

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

func MosaicLayout_Tile_FromProto

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

func MosaicLayout_Tile_ToProto

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

func MosaicLayout_ToProto

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

func PickTimeSeriesFilter_FromProto

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

func PickTimeSeriesFilter_ToProto

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

func PieChartDataSet_MinAlignmentPeriod_FromProto added in v1.120.0

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

func PieChartDataSet_MinAlignmentPeriod_ToProto added in v1.120.0

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

func PieChart_FromProto added in v1.120.0

func PieChart_FromProto(mapCtx *direct.MapContext, in *pb.PieChart) *krm.PieChart

func PieChart_PieChartDataSet_FromProto added in v1.120.0

func PieChart_PieChartDataSet_FromProto(mapCtx *direct.MapContext, in *pb.PieChart_PieChartDataSet) *krm.PieChart_PieChartDataSet

func PieChart_PieChartDataSet_ToProto added in v1.120.0

func PieChart_PieChartDataSet_ToProto(mapCtx *direct.MapContext, in *krm.PieChart_PieChartDataSet) *pb.PieChart_PieChartDataSet

func PieChart_ToProto added in v1.120.0

func PieChart_ToProto(mapCtx *direct.MapContext, in *krm.PieChart) *pb.PieChart

func RowLayout_FromProto

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

func RowLayout_Row_FromProto

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

func RowLayout_Row_ToProto

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

func RowLayout_ToProto

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

func Scorecard_FromProto

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

func Scorecard_GaugeView_FromProto

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

func Scorecard_GaugeView_ToProto

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

func Scorecard_ToProto

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

func SectionHeader_FromProto

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

func SectionHeader_ToProto

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

func ShouldReconcileBasedOnEtag added in v1.120.0

func ShouldReconcileBasedOnEtag(ctx context.Context, u *unstructured.Unstructured, gcpEtag string) bool

ShouldReconcileBasedOnEtag checks if we should reconcile based on the GCP etag matching the KRM etag. If the etag in KRM status is the same as the GCP etag, we consider the GCP object not to have changed. We also consider the object to have changes if the KRM object generation != observedGeneration (spec changes), and we also reconcile again if the object is not healthy (based on status.conditions).

A few problems with the approach: * We miss changes due to labels or annotations. * If there's a change in the GCP object that isn't reflected in etag, we miss that (seems unlikely) * Because we set spec.resourceID, we do an extra reconciliation after first creation (because we bump generation).

func SingleViewGroup_FromProto

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

func SingleViewGroup_ToProto

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

func SparkChartView_MinAlignmentPeriod_FromProto

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

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

func SparkChartView_MinAlignmentPeriod_ToProto

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

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

func TableDataSet_MinAlignmentPeriod_FromProto

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

func TableDataSet_MinAlignmentPeriod_ToProto

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

func TableDisplayOptions_FromProto

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

func TableDisplayOptions_ToProto

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

func Text_FromProto

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

func Text_TextStyle_FromProto

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

func Text_TextStyle_ToProto

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

func Text_ToProto

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

func Threshold_FromProto

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

func Threshold_ToProto

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

func TimeSeriesFilterRatio_FromProto

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

func TimeSeriesFilterRatio_ToProto

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

func TimeSeriesFilter_FromProto

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

func TimeSeriesFilter_ToProto

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

func TimeSeriesQuery_FromProto

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

func TimeSeriesQuery_PrometheusQuery_ToProto added in v1.120.0

func TimeSeriesQuery_PrometheusQuery_ToProto(mapCtx *direct.MapContext, in *string) *pb.TimeSeriesQuery_PrometheusQuery

func TimeSeriesQuery_TimeSeriesQueryLanguage_ToProto

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

func TimeSeriesQuery_ToProto

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

func TimeSeriesTable_FromProto

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

func TimeSeriesTable_ToProto

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

func VisitFields added in v1.120.0

func VisitFields(obj any, visitor Visitor) error

func Widget_FromProto

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

func Widget_ToProto

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

func XyChart_Axis_FromProto

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

func XyChart_Axis_ToProto

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

func XyChart_DataSet_FromProto

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

func XyChart_DataSet_ToProto

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

func XyChart_FromProto

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

func XyChart_TimeshiftDuration_FromProto

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

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

func XyChart_TimeshiftDuration_ToProto

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

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

func XyChart_ToProto

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

Types

type Visitor added in v1.120.0

type Visitor interface {
	VisitField(path string, value any) error
}

Jump to

Keyboard shortcuts

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