Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
brian-polling-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
brian
brian-polling-manager
Commits
63ad283b
Commit
63ad283b
authored
3 years ago
by
Release Webservice
Browse files
Options
Downloads
Plain Diff
Finished release 0.4.
parents
6b8a43ef
6465cd8e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Changelog.md
+3
-0
3 additions, 0 deletions
Changelog.md
brian_polling_manager/main.py
+4
-2
4 additions, 2 deletions
brian_polling_manager/main.py
brian_polling_manager/sensu.py
+5
-0
5 additions, 0 deletions
brian_polling_manager/sensu.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
13 additions
and
3 deletions
Changelog.md
+
3
−
0
View file @
63ad283b
...
...
@@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
## [0.4] - 2021-08-24
-
bugfix (POL1-492)
## [0.3] - 2021-08-20
-
less strict inventory response validation
-
gws direct & indirect checks
...
...
This diff is collapsed.
Click to expand it.
brian_polling_manager/main.py
+
4
−
2
View file @
63ad283b
...
...
@@ -29,8 +29,8 @@ import click
import
jsonschema
from
statsd
import
StatsClient
from
brian_polling_manager
\
import
inventory
,
configuration
,
interfaces
,
gws_direct
,
gws_indirect
from
brian_polling_manager
import
inventory
,
configuration
,
\
interfaces
,
gws_direct
,
gws_indirect
,
sensu
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -74,6 +74,8 @@ def refresh(config, force=False):
:param force: if True, reload inventory data even if timestamp is same
:return: a dict, formatted as above
"""
sensu
.
clear_cached_values
()
state
=
configuration
.
State
(
config
[
'
statedir
'
])
last
=
inventory
.
last_update_timestamp
(
config
[
'
inventory
'
])
if
force
or
not
last
or
last
!=
state
.
last
:
...
...
This diff is collapsed.
Click to expand it.
brian_polling_manager/sensu.py
+
5
−
0
View file @
63ad283b
...
...
@@ -12,6 +12,11 @@ logger = logging.getLogger(__name__)
_cached_checks
=
None
# not using lru_cache, since params is a dict
def
clear_cached_values
():
global
_cached_checks
_cached_checks
=
None
def
load_all_checks
(
params
,
namespace
=
'
default
'
):
global
_cached_checks
if
_cached_checks
is
not
None
:
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
63ad283b
...
...
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup
(
name
=
'
brian-polling-manager
'
,
version
=
"
0.
3
"
,
version
=
"
0.
4
"
,
author
=
'
GEANT
'
,
author_email
=
'
swd@geant.org
'
,
description
=
'
service for managing BRIAN polling checks
'
,
...
...
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