mirror of
https://github.com/itsdave-de/msp.git
synced 2025-05-06 15:35:12 +02:00
Merge pull request #19 from itsdave-de/hotfix/17-fix-empty-response-and-improve-request-query-to-obtain-results
#17 | Comment line and change data displayed to match oitc one
This commit is contained in:
commit
0b5157c634
10
msp/hooks.py
10
msp/hooks.py
@ -87,11 +87,11 @@ jenv = {
|
|||||||
# ---------------
|
# ---------------
|
||||||
# Hook on document methods and events
|
# Hook on document methods and events
|
||||||
|
|
||||||
doc_events = {
|
# doc_events = {
|
||||||
"Customer": {
|
# "Customer": {
|
||||||
"on_update": "msp.msp.customer_quick_entry.custom_customer_info"
|
# "on_update": "msp.msp.customer_quick_entry.custom_customer_info"
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
# Scheduled Tasks
|
# Scheduled Tasks
|
||||||
# ---------------
|
# ---------------
|
||||||
|
@ -30,7 +30,7 @@ class ITObject(Document):
|
|||||||
'currentState': host_data['Hoststatus']['humanState'],
|
'currentState': host_data['Hoststatus']['humanState'],
|
||||||
'lastCheck': host_data['Hoststatus']['lastCheckInWords'],
|
'lastCheck': host_data['Hoststatus']['lastCheckInWords'],
|
||||||
'nextCheck': host_data['Hoststatus']['nextCheckInWords'],
|
'nextCheck': host_data['Hoststatus']['nextCheckInWords'],
|
||||||
'currentStateSince': host_data['Hoststatus']['lastHardStateChangeInWords']
|
'currentStateSince': host_data['Hoststatus']['last_state_change_in_words']
|
||||||
},
|
},
|
||||||
'servicesStatus': {
|
'servicesStatus': {
|
||||||
'totalServices': host_data['ServicestatusSummary']['total'],
|
'totalServices': host_data['ServicestatusSummary']['total'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user