model

package
v0.0.0-...-4a5832f Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package model contains the model for the assessment process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluationGtResult

type EvaluationGtResult struct {
	Metrics    GuaranteeData     // violent metrics
	Violations []model.Violation // violations occurred as of violated metrics
}

EvaluationGtResult is the result of the evaluation of a guarantee term

It contains the failed metrics and associated violations if any.

type ExpressionData

type ExpressionData map[string]model.MetricValue

ExpressionData represents the set of values needed to evaluate an expression at a single time

type GuaranteeData

type GuaranteeData []ExpressionData

GuaranteeData represents the list of values needed to evaluate an expression at several points in time

type Result

type Result struct {
	Violated      map[string]EvaluationGtResult // terms that were violated
	LastValues    map[string]ExpressionData     // last value of variables in the term
	LastExecution map[string]time.Time          // last execution of a guarantee
}

Result is the result of the agreement assessment

func (*Result) GetViolations

func (r *Result) GetViolations() []model.Violation

GetViolations return the violations contained in a Result

Jump to

Keyboard shortcuts

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