mirror of
https://github.com/itsdave-de/msp.git
synced 2025-05-06 07:25:13 +02:00
#17 | Comment line and change data displayed to match oitc one
This commit is contained in:
parent
685fd6178e
commit
c7d5d61676
10
msp/hooks.py
10
msp/hooks.py
@ -87,11 +87,11 @@ jenv = {
|
||||
# ---------------
|
||||
# Hook on document methods and events
|
||||
|
||||
doc_events = {
|
||||
"Customer": {
|
||||
"on_update": "msp.msp.customer_quick_entry.custom_customer_info"
|
||||
}
|
||||
}
|
||||
# doc_events = {
|
||||
# "Customer": {
|
||||
# "on_update": "msp.msp.customer_quick_entry.custom_customer_info"
|
||||
# }
|
||||
# }
|
||||
|
||||
# Scheduled Tasks
|
||||
# ---------------
|
||||
|
@ -30,7 +30,7 @@ class ITObject(Document):
|
||||
'currentState': host_data['Hoststatus']['humanState'],
|
||||
'lastCheck': host_data['Hoststatus']['lastCheckInWords'],
|
||||
'nextCheck': host_data['Hoststatus']['nextCheckInWords'],
|
||||
'currentStateSince': host_data['Hoststatus']['lastHardStateChangeInWords']
|
||||
'currentStateSince': host_data['Hoststatus']['last_state_change_in_words']
|
||||
},
|
||||
'servicesStatus': {
|
||||
'totalServices': host_data['ServicestatusSummary']['total'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user