|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +--- |
| 4 | + |
| 5 | +## LoggerRestResource class |
| 6 | + |
| 7 | +REST Resource class for external integrations to interact with Nebula Logger |
| 8 | + |
| 9 | +--- |
| 10 | + |
| 11 | +### Properties |
| 12 | + |
| 13 | +#### `body` → `String` |
| 14 | + |
| 15 | +#### `endpointRequest` → `EndpointRequest` |
| 16 | + |
| 17 | +#### `errors` → `List<EndpointError>` |
| 18 | + |
| 19 | +#### `headerKeys` → `List<String>` |
| 20 | + |
| 21 | +#### `httpMethod` → `String` |
| 22 | + |
| 23 | +#### `isSuccess` → `Boolean` |
| 24 | + |
| 25 | +#### `message` → `String` |
| 26 | + |
| 27 | +#### `name` → `String` |
| 28 | + |
| 29 | +#### `parameters` → `Map<String, String>` |
| 30 | + |
| 31 | +#### `particle` → `String` |
| 32 | + |
| 33 | +#### `statusCode` → `Integer` |
| 34 | + |
| 35 | +#### `type` → `String` |
| 36 | + |
| 37 | +#### `uri` → `String` |
| 38 | + |
| 39 | +--- |
| 40 | + |
| 41 | +### Methods |
| 42 | + |
| 43 | +#### `EndpointError(System.Exception apexException)` → `public` |
| 44 | + |
| 45 | +#### `EndpointError(String message)` → `public` |
| 46 | + |
| 47 | +#### `EndpointError(String message, String type)` → `public` |
| 48 | + |
| 49 | +#### `EndpointRequest(System.RestRequest restRequest)` → `public` |
| 50 | + |
| 51 | +#### `addError(System.Exception apexException)` → `EndpointResponse` |
| 52 | + |
| 53 | +#### `addError(EndpointError endpointError)` → `EndpointResponse` |
| 54 | + |
| 55 | +#### `handlePost()` → `void` |
| 56 | + |
| 57 | +Processes any HTTP POST requests sent |
| 58 | + |
| 59 | +#### `handlePost(EndpointRequest endpointRequest)` → `EndpointResponse` |
| 60 | + |
| 61 | +#### `handlePost(EndpointRequest endpointRequest)` → `EndpointResponse` |
| 62 | + |
| 63 | +#### `handlePost(EndpointRequest endpointRequest)` → `EndpointResponse` |
| 64 | + |
| 65 | +#### `setStatusCode(Integer statusCode)` → `EndpointResponse` |
| 66 | + |
| 67 | +--- |
| 68 | + |
| 69 | +### Inner Classes |
| 70 | + |
| 71 | +#### LoggerRestResource.OTelAttribute class |
| 72 | + |
| 73 | +--- |
| 74 | + |
| 75 | +##### Constructors |
| 76 | + |
| 77 | +###### `OTelAttribute(String key, String value)` |
| 78 | + |
| 79 | +--- |
| 80 | + |
| 81 | +##### Properties |
| 82 | + |
| 83 | +###### `key` → `String` |
| 84 | + |
| 85 | +###### `value` → `OTelAttributeValue` |
| 86 | + |
| 87 | +--- |
| 88 | + |
| 89 | +#### LoggerRestResource.OTelAttributeValue class |
| 90 | + |
| 91 | +--- |
| 92 | + |
| 93 | +##### Constructors |
| 94 | + |
| 95 | +###### `OTelAttributeValue(String value)` |
| 96 | + |
| 97 | +--- |
| 98 | + |
| 99 | +##### Properties |
| 100 | + |
| 101 | +###### `stringValue` → `String` |
| 102 | + |
| 103 | +--- |
| 104 | + |
| 105 | +#### LoggerRestResource.OTelLogRecord class |
| 106 | + |
| 107 | +--- |
| 108 | + |
| 109 | +##### Properties |
| 110 | + |
| 111 | +###### `attributes` → `List<OTelAttribute>` |
| 112 | + |
| 113 | +###### `body` → `OTelAttributeValue` |
| 114 | + |
| 115 | +###### `severityText` → `String` |
| 116 | + |
| 117 | +###### `timeUnixNano` → `String` |
| 118 | + |
| 119 | +--- |
| 120 | + |
| 121 | +##### Methods |
| 122 | + |
| 123 | +###### `getLogEntryEvent()` → `LogEntryEvent__e` |
| 124 | + |
| 125 | +--- |
| 126 | + |
| 127 | +#### LoggerRestResource.OTelLogsPayload class |
| 128 | + |
| 129 | +--- |
| 130 | + |
| 131 | +##### Properties |
| 132 | + |
| 133 | +###### `resourceLogs` → `List<OTelResourceLog>` |
| 134 | + |
| 135 | +--- |
| 136 | + |
| 137 | +##### Methods |
| 138 | + |
| 139 | +###### `getConvertedLogEntryEvents()` → `List<LogEntryEvent__e>` |
| 140 | + |
| 141 | +--- |
| 142 | + |
| 143 | +#### LoggerRestResource.OTelResource class |
| 144 | + |
| 145 | +--- |
| 146 | + |
| 147 | +##### Properties |
| 148 | + |
| 149 | +###### `attributes` → `List<OTelAttribute>` |
| 150 | + |
| 151 | +--- |
| 152 | + |
| 153 | +#### LoggerRestResource.OTelResourceLog class |
| 154 | + |
| 155 | +--- |
| 156 | + |
| 157 | +##### Properties |
| 158 | + |
| 159 | +###### `resource` → `OTelResource` |
| 160 | + |
| 161 | +###### `scopeLogs` → `List<OTelScopeLog>` |
| 162 | + |
| 163 | +--- |
| 164 | + |
| 165 | +##### Methods |
| 166 | + |
| 167 | +###### `getLogEntryEvents()` → `List<LogEntryEvent__e>` |
| 168 | + |
| 169 | +--- |
| 170 | + |
| 171 | +#### LoggerRestResource.OTelScope class |
| 172 | + |
| 173 | +--- |
| 174 | + |
| 175 | +##### Properties |
| 176 | + |
| 177 | +###### `name` → `String` |
| 178 | + |
| 179 | +###### `version` → `String` |
| 180 | + |
| 181 | +--- |
| 182 | + |
| 183 | +#### LoggerRestResource.OTelScopeLog class |
| 184 | + |
| 185 | +--- |
| 186 | + |
| 187 | +##### Properties |
| 188 | + |
| 189 | +###### `logRecords` → `List<OTelLogRecord>` |
| 190 | + |
| 191 | +###### `scope` → `OTelScope` |
| 192 | + |
| 193 | +--- |
0 commit comments