palantir.api.Optique1API
- class palantir.api.Optique1API
Deals with the API of the partner monitoring optical equipments
- __init__()
Methods
__init__
()fillHeaders
(headers)getLocation
(stationID)Returns a location object from eXail database
getLocations
()getResources
(uri[, resources])Executes a GET HTTP request to eyeOfSauron API.
makeHeadersAuth
([headers])Does nothing because there is no authentication system yet
postResources
(uri[, payload])Executes a POST HTTP request to eyeOfSauron API.
request
(uri, method[, payload, resources, ...])Executes a POST HTTP request to eyeOfSauron API.
sendAlert
(channelType, alertCode, detail[, ...])transformURI
(uri)Attributes
ALERT_INFRA
ALERT_SI
API_URL
EMAIL_CHANNEL
EXTERNAL_API
INVALID_CREDENTIALS
REDMINE_CHANNEL
RESPONSE_FORMAT
SERVER_ERROR