Skip to content

Commit

Permalink
Update veeam_o365.py
Browse files Browse the repository at this point in the history
Fix graphing
  • Loading branch information
jiuka committed Jun 10, 2024
1 parent 1dc6adf commit 46f3b3c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions graphing/veeam_o365.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
'transferred': t.RenameTo('veeam_o365jobs_transferred'),
'duration': t.RenameTo('veeam_o365jobs_duration'),
'items': t.RenameTo('veeam_o365jobs_items'),
'age': t.RenameTo('veeam_o365jobs_age'),
}
)

Expand All @@ -56,7 +57,7 @@
color=m.Color.GREEN,
)

metric_veeam_o365jobs_transferred = m.Metric(
metric_veeam_o365jobs_items = m.Metric(
name='veeam_o365jobs_items',
title=m.Title('Items Transferred'),
unit=m.Unit(m.DecimalNotation(""), m.StrictPrecision(0)),
Expand All @@ -73,7 +74,7 @@
graph_veeam_o365jobs_transferred = g.Graph(
name='veeam_o365jobs_transferred',
title=g.Title('Veeam for Office 365 Job'),
minimal_range=g.MinimalRange(0, m.MaximumOf('veeam_o365jobs_transferred')),
minimal_range=g.MinimalRange(0, m.MaximumOf('veeam_o365jobs_transferred', m.Color.BLACK)),
compound_lines=['veeam_o365jobs_transferred'],
simple_lines=[
m.WarningOf('veeam_o365jobs_transferred'),
Expand All @@ -84,7 +85,7 @@
graph_veeam_o365jobs_duration = g.Graph(
name='veeam_o365jobs_duration',
title=g.Title('Veeam for Office 365 Job'),
minimal_range=g.MinimalRange(0, m.MaximumOf('veeam_o365jobs_duration')),
minimal_range=g.MinimalRange(0, m.MaximumOf('veeam_o365jobs_duration', m.Color.BLACK)),
compound_lines=['veeam_o365jobs_duration'],
simple_lines=[
m.WarningOf('veeam_o365jobs_duration'),
Expand All @@ -95,7 +96,7 @@
graph_veeam_o365jobs_items = g.Graph(
name='veeam_o365jobs_items',
title=g.Title('Veeam for Office 365 Job'),
minimal_range=g.MinimalRange(0, m.MaximumOf('veeam_o365jobs_items')),
minimal_range=g.MinimalRange(0, m.MaximumOf('veeam_o365jobs_items', m.Color.BLACK)),
compound_lines=['veeam_o365jobs_items'],
simple_lines=[
m.WarningOf('veeam_o365jobs_items'),
Expand All @@ -106,7 +107,7 @@
graph_veeam_o365licenses_licenses = g.Graph(
name='veeam_o365licenses_licenses',
title=g.Title('Veeam for Office 365 licenses'),
minimal_range=g.MinimalRange(0, m.MaximumOf('veeam_o365licenses_licenses')),
minimal_range=g.MinimalRange(0, m.MaximumOf('veeam_o365licenses_licenses', m.Color.BLACK)),
compound_lines=['veeam_o365licenses_licenses'],
simple_lines=[
m.WarningOf('veeam_o365licenses_licenses'),
Expand All @@ -119,18 +120,18 @@
name='veeam_o365jobs',
upper=p.Perfometer(
name='veeam_o365jobs_transferred',
focus_range=p.FocusRange(p.Closed(0), p.Open(m.WarningOf('veeam_o365jobs_transferred'))),
focus_range=p.FocusRange(p.Closed(0), p.Open(100)),
segments=['veeam_o365jobs_transferred'],
),
lower=p.Perfometer(
name='veeam_o365jobs_duration',
focus_range=p.FocusRange(p.Closed(0), p.Open(m.WarningOf('veeam_o365jobs_duration'))),
focus_range=p.FocusRange(p.Closed(0), p.Open(100)),
segments=['veeam_o365jobs_duration'],
),
)

perfometer_veeam_o365licenses_licenses = p.Perfometer(
name='veeam_o365licenses_licenses',
focus_range=p.FocusRange(p.Closed(0), p.Open(m.MaximumOf('veeam_o365licenses_licenses'))),
focus_range=p.FocusRange(p.Closed(0), p.Open(m.MaximumOf('veeam_o365licenses_licenses', m.Color.BLACK))),
segments=['veeam_o365licenses_licenses'],
)

0 comments on commit 46f3b3c

Please sign in to comment.