Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cachet-monitor
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Janne Mareike Koschinski
cachet-monitor
Commits
dab2264c
Commit
dab2264c
authored
8 years ago
by
Matej Kramny
Browse files
Options
Downloads
Patches
Plain Diff
Comment out unused code
parent
021871b7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dns.go
+1
-3
1 addition, 3 deletions
dns.go
monitor.go
+3
-3
3 additions, 3 deletions
monitor.go
with
4 additions
and
6 deletions
dns.go
+
1
−
3
View file @
dab2264c
...
@@ -2,10 +2,8 @@ package cachet
...
@@ -2,10 +2,8 @@ package cachet
import
(
import
(
"net"
"net"
"strings"
"regexp"
"regexp"
"strings"
"github.com/Sirupsen/logrus"
"github.com/Sirupsen/logrus"
"github.com/miekg/dns"
"github.com/miekg/dns"
...
...
This diff is collapsed.
Click to expand it.
monitor.go
+
3
−
3
View file @
dab2264c
...
@@ -50,10 +50,10 @@ type AbstractMonitor struct {
...
@@ -50,10 +50,10 @@ type AbstractMonitor struct {
// lag / average(lagHistory) * 100 = percentage above average lag
// lag / average(lagHistory) * 100 = percentage above average lag
// PerformanceThreshold sets the % limit above which this monitor will trigger degraded-performance
// PerformanceThreshold sets the % limit above which this monitor will trigger degraded-performance
PerformanceThreshold
float32
//
PerformanceThreshold float32
history
[]
bool
history
[]
bool
lagHistory
[]
float32
//
lagHistory []float32
lastFailReason
string
lastFailReason
string
incident
*
Incident
incident
*
Incident
config
*
CachetMonitor
config
*
CachetMonitor
...
...
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