Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.toolbox
Commits
2d1bb89d
Commit
2d1bb89d
authored
Feb 12, 2020
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
promise: Allow to configure failure-amount in check_surykatka_json
parent
b23411a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
slapos/promise/plugin/check_surykatka_json.py
slapos/promise/plugin/check_surykatka_json.py
+5
-1
No files found.
slapos/promise/plugin/check_surykatka_json.py
View file @
2d1bb89d
...
@@ -24,6 +24,9 @@ class RunPromise(GenericPromise):
...
@@ -24,6 +24,9 @@ class RunPromise(GenericPromise):
super
(
RunPromise
,
self
).
__init__
(
config
)
super
(
RunPromise
,
self
).
__init__
(
config
)
# Set frequency compatible to default surykatka interval - 2 minutes
# Set frequency compatible to default surykatka interval - 2 minutes
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
2
)))
self
.
setPeriodicity
(
float
(
self
.
getConfig
(
'frequency'
,
2
)))
self
.
failure_amount
=
int
(
self
.
getConfig
(
'failure-amount'
,
self
.
getConfig
(
'failure_amount'
,
3
)))
self
.
result_count
=
self
.
failure_amount
self
.
error_list
=
[]
self
.
error_list
=
[]
self
.
info_list
=
[]
self
.
info_list
=
[]
...
@@ -268,4 +271,5 @@ class RunPromise(GenericPromise):
...
@@ -268,4 +271,5 @@ class RunPromise(GenericPromise):
self
.
emitLog
()
self
.
emitLog
()
def
anomaly
(
self
):
def
anomaly
(
self
):
return
self
.
_test
(
result_count
=
3
,
failure_amount
=
3
)
return
self
.
_test
(
result_count
=
self
.
result_count
,
failure_amount
=
self
.
failure_amount
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment