POST v1/applicationlogging/logevent
Request Information
URI Parameters
None.
Body Parameters
LogEvent| Name | Description | Type | Additional information |
|---|---|---|---|
| Severity | integer |
None. |
|
| AccountId | string |
None. |
|
| FacilityId | globally unique identifier |
None. |
|
| FacilityName | string |
None. |
|
| TenantName | string |
None. |
|
| TenantId | string |
None. |
|
| ConsumerId | globally unique identifier |
None. |
|
| Source | integer |
None. |
|
| SubSource | string |
None. |
|
| Event | integer |
None. |
|
| Title | string |
None. |
|
| Message | string |
None. |
|
| User | string |
None. |
|
| Ip | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Severity": 1,
"AccountId": "sample string 2",
"FacilityId": "8066417f-0b33-4bd8-8b2b-b7f3bb5deadb",
"FacilityName": "sample string 3",
"TenantName": "sample string 4",
"TenantId": "sample string 5",
"ConsumerId": "67d41afa-d99f-45b0-9e6f-e148f7bcfea4",
"Source": 6,
"SubSource": "sample string 7",
"Event": 8,
"Title": "sample string 9",
"Message": "sample string 10",
"User": "sample string 11",
"Ip": "sample string 12"
}
application/xml, text/xml
Sample:
<ApplicationLoggingModel.LogEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.Application_Logging"> <AccountId>sample string 2</AccountId> <ConsumerId>67d41afa-d99f-45b0-9e6f-e148f7bcfea4</ConsumerId> <Event>8</Event> <FacilityId>8066417f-0b33-4bd8-8b2b-b7f3bb5deadb</FacilityId> <FacilityName>sample string 3</FacilityName> <Ip>sample string 12</Ip> <Message>sample string 10</Message> <Severity>1</Severity> <Source>6</Source> <SubSource>sample string 7</SubSource> <TenantId>sample string 5</TenantId> <TenantName>sample string 4</TenantName> <Title>sample string 9</Title> <User>sample string 11</User> </ApplicationLoggingModel.LogEvent>
Response Information
Resource Description
LogEventReturn| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors | Collection of Exception |
None. |
|
| IsSuccess | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Errors": [
{
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
},
{
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
}
],
"IsSuccess": true
}
application/xml, text/xml
Sample:
<ApplicationLoggingModel.LogEventReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.Application_Logging">
<Errors xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.BindingModels">
<d2p1:Exception>
<ClassName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.Exception</ClassName>
<Message i:nil="true" xmlns="" />
<Data i:nil="true" xmlns="" />
<InnerException i:nil="true" xmlns="" />
<HelpURL xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 1</HelpURL>
<StackTraceString i:nil="true" xmlns="" />
<RemoteStackTraceString i:nil="true" xmlns="" />
<RemoteStackIndex xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">0</RemoteStackIndex>
<ExceptionMethod i:nil="true" xmlns="" />
<HResult xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">3</HResult>
<Source xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 2</Source>
<WatsonBuckets i:nil="true" xmlns="" />
</d2p1:Exception>
<d2p1:Exception>
<ClassName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.Exception</ClassName>
<Message i:nil="true" xmlns="" />
<Data i:nil="true" xmlns="" />
<InnerException i:nil="true" xmlns="" />
<HelpURL xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 1</HelpURL>
<StackTraceString i:nil="true" xmlns="" />
<RemoteStackTraceString i:nil="true" xmlns="" />
<RemoteStackIndex xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">0</RemoteStackIndex>
<ExceptionMethod i:nil="true" xmlns="" />
<HResult xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">3</HResult>
<Source xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 2</Source>
<WatsonBuckets i:nil="true" xmlns="" />
</d2p1:Exception>
</Errors>
<IsSuccess xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.BindingModels">true</IsSuccess>
</ApplicationLoggingModel.LogEventReturn>