Skip to content

Commit 4d5cdf8

Browse files
committed
Change swisClient to utilize variables
1 parent 11df276 commit 4d5cdf8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

samples/get_alert_suppression_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
ip_address = '192.168.1.1' # change this to the node you want to check
77

88

9-
sw = orionsdk.SwisClient('server', 'username', 'password')
9+
sw = orionsdk.SwisClient(server, username, password)
1010
uri = sw.query("SELECT Uri FROM Orion.Nodes WHERE NodeID=@node_id", IPAddress=ip_address)['results'][0]['Uri']
1111

1212
data = sw.invoke('Orion.AlertSuppression', 'GetAlertSuppressionState', [uri])

samples/resume_node_alerts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
ip_address = '192.168.1.1' # change this to the node you want to use
88

99

10-
sw = orionsdk.SwisClient('server', 'username', 'password')
10+
sw = orionsdk.SwisClient(server, username, password)
1111
uri = sw.query("SELECT Uri FROM Orion.Nodes WHERE NodeID=@node_id", IPAddress=ip_address)['results'][0]['Uri']
1212

1313
sw.invoke('Orion.AlertSuppression', 'ResumeAlerts', [uri])

samples/suppress_node_alerts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
ip_address = '192.168.1.1' # change this to the node you want to use
88

99

10-
sw = orionsdk.SwisClient('server', 'username', 'password')
10+
sw = orionsdk.SwisClient(server, username, password)
1111
uri = sw.query("SELECT Uri FROM Orion.Nodes WHERE NodeID=@node_id", IPAddress=ip_address)['results'][0]['Uri']
1212

1313
# to specify an end time change None to a datetime object

0 commit comments

Comments
 (0)