The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/pkg/services/store/entity/sqlstash/validation.go

22 lines
692 B

package sqlstash
import "github.com/grafana/grafana/pkg/services/store/entity"
// validateEntity validates a fully loaded *entity.Entity model, and should be
// used before storing an entity to the database and before returning it to the
// user.
func validateEntity(*entity.Entity) error {
return nil // TODO
}
// validateLabels validates the given map of label names to their values.
func validateLabels(map[string]string) error {
// this should be called by validateEntity
return nil // TODO
}
// validateFields validates the given map of fields names to their values.
func validateFields(map[string]string) error {
// this should be called by validateEntity
return nil // TODO
}