Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
f2d87dee
Commit
f2d87dee
authored
3 years ago
by
Björn Vonheiden
Browse files
Options
Downloads
Patches
Plain Diff
add documentation to the slo checker factory for the creation of different type of slo checkers
parent
4f0d7926
No related branches found
No related tags found
1 merge request
!172
Use the properties of the slo checker and add lag trend percent
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite/src/main/kotlin/theodolite/evaluation/SloCheckerFactory.kt
+22
-4
22 additions, 4 deletions
...rc/main/kotlin/theodolite/evaluation/SloCheckerFactory.kt
with
22 additions
and
4 deletions
theodolite/src/main/kotlin/theodolite/evaluation/SloCheckerFactory.kt
+
22
−
4
View file @
f2d87dee
...
...
@@ -10,12 +10,30 @@ class SloCheckerFactory {
/**
* Creates different [SloChecker]s.
* Supports: lag type.
*
* Supports: `lag trend` and `lag trend percent` as arguments for `sloType`
*
* ### `lag trend`
* Creates an [ExternalSloChecker] with defined parameters.
*
* The properties map needs the following fields:
* - `externalSlopeURL`: Url to the concrete SLO checker service.
* - `threshold`: fixed value used for the slope.
* - `warmup`: time from the beginning to skip in the analysis.
*
*
* ### `lag trend percent`
* Creates an [ExternalSloChecker] with defined parameters.
* The required threshold is computed using a percentage and the load of the experiment.
*
* The properties map needs the following fields:
* - `externalSlopeURL`: Url to the concrete SLO checker service.
* - `percent`: of the executed load that is accepted for the slope.
* - `warmup`: time from the beginning to skip in the analysis.
*
* @param sloType Type of the [SloChecker].
* @param externalSlopeURL Url to the concrete [SloChecker].
* @param threshold for the [SloChecker].
* @param warmup for the [SloChecker].
* @param properties map of properties to use for the SLO checker creation.
* @param load that is executed in the experiment.
*
* @return A [SloChecker]
* @throws IllegalArgumentException If [sloType] not supported.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment