Op Intel Reference

Op Intel Format Reference

The underlying data records in Op Intel have the following types:

Common Internal Fields

The following fields are internal and appear on every record type.

Field NameTypeExplanationSample value
@timestampTimestampThe timestamp of the record, transformed to the local timezone.November 30th 2015, 08:34:48.195
@versionTextThe internal version of the record1
_idTextOp Intel entry Id"AVFYmlrITZ2kShm7pFRJ"
_sourceTextOp Intel entry{large JSON object}
typeTextThe type of the log entry. Can be one of the supported Op Intel types.baas

Log entry baas

Data record of type baas corresponds to a request made from a client to Kinvey.

Field NameTypeExplanationSample value
appNameTextThe app nameBook Reviews
environmentNameTextThe environment nameProduction
collectionTextThe collection namebooks
credentialsUsedTextThe credentials used to authenticate the requestuser
kinveyEnvironmentTextThe environment id for this requestkid_A1bCdeF3g
methodTextThe HTTP request methodGET
urlTextThe path of the url being requested, urlencoded/appdata/kid_A1bCdeF3g/books/?query=%7B%22Category%22%3A%22Action%22%7D
queryTextThe HTTP query string{"Category":"Action"}
statusCodeNumberThe HTTP response code200
requestHeadersObjectA set of key value pairs representing the HTTP request headers{large JSON object}
requestHeaders.user-agentTextThe user agent of the clientandroid-kinvey-http/2.9.5
requestHeaders.x-kinvey-api-versionTextThe Kinvey API version requested3
requestHeaders.x-kinvey-custom-request-propertiesTextCustom properties attached to the request{"token":"196998cb"}
requestHeaders.x-kinvey-device-informationTextDetailed device infosamsung/SM-T230NU Android 4.4.2 196998cb-9ea2-3762-aeb5-670afe0d8b43
responseHeadersObjectA set of key value pairs representing the HTTP response headers
responseHeaders.content-typeTextThe content type of the HTTP responseapplication/json; charset=utf-8
responseHeaders.content-lengthNumberThe content length of the HTTP response348
responseHeaders.x-kinvey-api-versionTextThe Kinvey API version used3
responseHeaders.x-kinvey-executed-collection-hooksTextA comma-separated list of executed Kinvey hooksPost-Fetch
clientIPTextThe IP address of the client205.251.251.80
kinveyAPITextThe API type of the request - one of (user, ping, appdata)appdata
requestDurationNumberThe duration of the request, in milliseconds36
requestIdTextA unique request Id, generated by Kinvey19b24ebb61c547709303ec04018d9a72
outgoingTimestampTimestampThe internal record timestamp2015-11-30T13:34:35.386Z

Geolocation fields

Logs of type baas also contain a set of fields that geolocate the client making the request.

Field NameTypeExplanationSample value
geoipObjectThe location of the client{large JSON object}
geoip.area_codeNumberArea code610
geoip.city_nameTextCity nameCatasauqua
geoip.continent_codeTextFull country nameNA
geoip.country_code2TextCountry code 2US
geoip.country_code3TextCountry code 3USA
geoip.country_nameTextFull country nameUnited States
geoip.dma_codeNumberDMA code504
geoip.ipTextThe IP Address that is geolocated24.229.128.215
geoip.latitudeNumberLatitude40.65629999999999
geoip.longitudeNumberLongitude-75.4661
geoip.locationCoordinatesThe IP Address that is geolocated[-75.4661, 40.65629999999999]
geoip.region_nameTextRegion namePA
geoip.postal_codeTextPostal code18032
geoip.real_region_nameTextComplete region namePennsylvania
geoip.timezoneTextTimezoneAmerica/New_York

Log entry dlc

Data record of type dlc corresponds to a request from Kinvey to configured Data Link Connector.

Field NameData TypeExplanationExamples
kinveyEnvironmentTextThe environment id for this requestkid_A1bCdeF3g
methodTextThe HTTP request methodGET
urlTextThe path of the url being requested, urlencoded
queryTextThe HTTP query string{"Category":"Action"}
statusCodeNumberThe HTTP response code200
requestHeadersObjectA set of key value pairs representing the HTTP request headers{large JSON object}
requestHeaders.content-typeTextThe Kinvey API version requestedapplication/json
requestHeaders.user-agentTextThe user agent of the clientandroid-kinvey-http/2.9.5
requestHeaders.x-kinvey-custom-request-propertiesTextCustom properties attached to the request{"token":"196998cb"}
requestHeaders.x-auth-keyClearedThe key used to authenticate the DLC request<cleared>
requestHeaders.X-Kinvey-Request-IdTextA unique request Id, generated by Kinvey630214c3237f490dae5bb6fea44981cd
requestBodyClearedThe body of the HTTP request<cleared>
responseHeadersObjectA set of key value pairs representing the HTTP response headers{large JSON object}
responseBodyClearedThe body of the HTTP response<cleared>
requestDurationNumberThe duration of the request, in milliseconds517.068
requestIdTextA unique request Id, generated by Kinvey630214c3237f490dae5bb6fea44981cd
timestampTimestampThe internal record timestamp2015-11-30T13:34:35.386Z

Log entry bl

Records of type bl correspond to an execution of a Business Logic script.

Field NameData TypeExplanationExamples
collectionTextThe name of the collection or Custom Endpointbooks or sendNotifications
kinveyEnvironmentTextThe environment id for this requestkid_A1bCdeF3g
requestIdTextA unique Id covering all processing within Kinvey630214c3237f490dae5bb6fea44981cd
resultTextThe result from the script call.SUCCESS or an error structure
targetFunctionTextThe outer function for this scriptonPostFetch or onRequest (for Custom Endpoints)
taskIdTextA unique Id covering the script calld98c950810bf4c71adbaffa87b981c62
totalTaskTimeNumberThe duration of the script call, in milliseconds619

Log entry fsr

Records of type fsr correspond to an execution of a Flex service that runs on the FlexService Runtime (FSR), also known as an internal Flex service.

Field NameData TypeExplanationExamples
appNameTextThe name of the app to which the Flex service is connected.MyConverter
applicationIdTextThe ID of the app to which the Flex service is connected.58e96d74ec134ee2935702954348ff00
kinveyEnvironmentTextThe App Key of the app environmentkid_A1bCdeF3g
requestIdTextAn ID uniquely identifying the request while processing.630214c3237f490dae5bb6fea44981cd
resultTextThe result from the Flex code execution.SUCCESS or an error structure
serviceObjectNameTextThe name of the Flex service object.Books
totalTaskTimeNumberThe duration of the Flex service execution, in milliseconds.619
taskIdTextAn ID uniquely identifying the Flex code execution.d98c950810bf4c71adbaffa87b981c62
taskTypeTextAlways set to businessLogic.businessLogic

Log entry rapid

Logs of type rapid contain information for requests between RAPID and the system of record.

Field NameData TypeExplanationExamples
appNameTextThe app nameBook Reviews
applicationIdTextA unique Id for the app5e23a6a262e147b6a64690867aa4c942
authTypeTextThe type of authentication used for this requestNone, ServiceAccount, MIC
connectorTypeTextThe type of connector used for this requestrest, salesforce, saprfc
hostTextThe host this request went tohttps://example.com
methodTextThe method used for this requestget, post
queryTextThe query used for this reuest{"Category":"Action"}
entityIdTextThe ID of the entity requested123
environmentNameTextThe environment nameProduction
kinveyEnvironmentTextThe environment id for this requestkid_A1bCdeF3g
operationTextThe operation performed against the service objectinsert, getCountByQuery
requestDurationNumberThe duration of the request, in milliseconds517.068
requestEntityTextThe stringified JSON for any entity passed, usually on insert/update.{}
requestIdTextA unique Id covering all processing within Kinvey630214c3237f490dae5bb6fea44981cd
responseBodyTextThe body of the response returned from the system of record{}
responseLengthNumberThe length of body returned from the system of record146
serviceObjectNameTextThe name of the service objectpartners, accounts
sourceObjectTextAn connector-specific set of properties of the request made to the system of record{}
statusNumberA status code returned from the system of record, adapted to HTTP sematics200, 500

Log entry baas-auth

Logs of type baas-auth contain information for request between MIC and clients, and also include the common geolocation fields

Field NameData TypeExplanationExamples
apiVersionNumberThe MIC API version3
clientIPTextThe IP address of the client205.251.251.80
methodTextThe method used for this requestGET, POST
queryTextThe query string used for this request (needs x-kinvey-force-debug-log-querystring:true){}
requestBodyTextThe request body (for login requires x-kinvey-force-debug-log-credentials:true){}
applicationIdTextA unique Id for the app5e23a6a262e147b6a64690867aa4c942
appNameTextThe app nameBook Reviews
kinveyEnvironmentTextThe environment id for this requestkid_A1bCdeF3g
environmentNameTextThe environment nameProduction
requestDurationNumberThe duration of the request, in milliseconds517.068
requestHeaders.authorizationTextRequest authorization header (requires x-kinvey-force-debug-log-credentials:true)Authorization: *
requestHeaders.user-agentTextThe client user-agent headerAppcelerator Titanium/3.4.0 (LG-H815; Android API Level: 23; en-GB;)
requestHeaders.x-kinvey-device-informationTextKinvey library provided string including device informationunknown/Android_SDK_built_for_x86 Android 6.0 f9d09a25-560f-3e50-a60e-549bf6d18353
requestHeaders.x-kinvey-force-debug-log-credentialsTextA header to enable debug logging of credentialstrue
requestHeaders.x-kinvey-force-debug-log-querystringTextA header to enable debug logging for query stringstrue
requestIdTextA unique Id covering all processing within Kinvey630214c3237f490dae5bb6fea44981cd
responseBodyTextThe response body returned to the client, cleared by default<cleared>
sessionIdTextA session Id encompassing the full method-specific flow between the client and MIC4pO4ypIISAJ7CZKGtJLifRqv_db6EdL5
statusCodeNumberThe HTTP response code200
urlTextThe path of the url being requested, urlencoded/oauth/validate

Tracking custom events

You can use Operational Intelligence to track custom events. Custom events can be triggered from any part of the application code with a single method call. They are designed specifically to address multi-view scenarios and are best used for tracking events that are specific to the business use case.

A custom event is modeled along a custom endpoint, which is created in Kinvey's Management Console. Storing an event is as easy as posting to the endpoint, and the event automatically appears in Operational Intelligence, where the full set of charting dashboarding features are available to aggregate the events.