import requests
url = "https://{FUSION HOST}/api/history/{service}/items/{item}"
response = requests.get(url)
print(response.text){
"events": [
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"source": "<string>",
"type": "<string>",
"status": "<string>",
"details": {},
"error": {
"httpStatusCode": 123,
"error": "<string>",
"message": "<string>",
"details": "<string>",
"cause": {
"cause": "<unknown>",
"stackTrace": [
{
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"className": "<string>",
"nativeMethod": true
}
],
"message": "<string>",
"localizedMessage": "<string>",
"suppressed": "<array>"
},
"stackTrace": [
{
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"className": "<string>",
"nativeMethod": true
}
],
"localizedMessage": "<string>",
"suppressed": [
{
"cause": "<unknown>",
"stackTrace": [
{
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"className": "<string>",
"nativeMethod": true
}
],
"message": "<string>",
"localizedMessage": "<string>",
"suppressed": "<array>"
}
],
"class": "<string>",
"httpStatusMessage": "<string>",
"requestId": "<string>"
}
}
]
}Return a specific item in a service’s history.
import requests
url = "https://{FUSION HOST}/api/history/{service}/items/{item}"
response = requests.get(url)
print(response.text){
"events": [
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"source": "<string>",
"type": "<string>",
"status": "<string>",
"details": {},
"error": {
"httpStatusCode": 123,
"error": "<string>",
"message": "<string>",
"details": "<string>",
"cause": {
"cause": "<unknown>",
"stackTrace": [
{
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"className": "<string>",
"nativeMethod": true
}
],
"message": "<string>",
"localizedMessage": "<string>",
"suppressed": "<array>"
},
"stackTrace": [
{
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"className": "<string>",
"nativeMethod": true
}
],
"localizedMessage": "<string>",
"suppressed": [
{
"cause": "<unknown>",
"stackTrace": [
{
"methodName": "<string>",
"fileName": "<string>",
"lineNumber": 123,
"className": "<string>",
"nativeMethod": true
}
],
"message": "<string>",
"localizedMessage": "<string>",
"suppressed": "<array>"
}
],
"class": "<string>",
"httpStatusMessage": "<string>",
"requestId": "<string>"
}
}
]
}The name of a service.
The name of a history item.
Time range in Solr format. Default value is [NOW-30DAYS/DAY TO NOW].
Maximum number of history elements to retrieve. Default value is 50. For values greater than 500, only 500 history elements will be retrieved.
successful operation
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?