Context
Topics covered in this chapter:
Types
-
a record containing information about the context in which the app is executing.insighturl : stringthe URL of the Insight component executing the app.traceid : textthe B3 Propagation TraceId value; every span in a trace shares this ID.spanid : textthe B3 Propagation SpanId value.parentspanid : textthe B3 Propagation ParentSpanId value, or an empty string if not present.sampled : textthe B3 Propagation Sampled value; either "1", "0" or empty string if not present.dmp : insightdmpcontextrecord containing context information relating to DMP.NoteUse the ispopulated field of the dmp record to distinguish between an app executing within DMP ( true) and on-premise ( false).See also
-
a record containing information about the context in which the app is executing in DMP.ispopulated : booleanwhether the other fields of this record have meaningful values. false when the app is executing outside DMP.managerurl : stringthe URL of DMP Manager, which can be used to call DMP Manager webservice endpoints.environment : stringthe lifecycle environment of the component instance exeucting the Insight app, e.g. "design".tenantid : stringthe ID of the DMP tenant to which the Insight component belongs.solutionid : stringthe ID of the DMP solution to which the Insight component belongs.componentid : stringthe ID of the Insight component that is executing the app.compinstid : stringthe ID of the Insight component instance that is executing the app.soltoken : texta bearer token that can be used to authorize requests to this component and other DMP resources, under the authority of the solution user.soltokenexpiry : realthe expiry time of the given solution token, expressed in milliseconds since 1/1/1970.soltokenenv : stringthe lifecycle environment for which the solution token was authorized, e.g. "design".pftoken : texta bearer token that can be used to authorize requests for the platform resources, under the authority of the platform client id.pftokenexpiry : realthe expiry time of the given platform token, expressed in milliseconds since 1/1/1970.Notes1. The ispopulated field of this record can be used to distinguish between an app executing within DMP ( true) and on-premise ( false).
2. Where a specific environment was passed to insightgetcontext, the returned solution token will be a token for that environment. Otherwise, it will be a token for the component's current environment.
See also
-
a record containing information about the solution database in the DMP solution in which the app is executing.drivername : stringthe name of the ODBC driver that can be used to connect to the solution database.server : stringthe hostname of the solution database server.port : integerthe port on which to connect to the solution database server.username : stringthe username to use for accessing to the solution database.password : textthe password to use for accessing to the solution database.database : stringthe name of the solution database.odbcparams : array(set of string) of textadditional parameters that Insight recommends be used in the ODBC connnection string.See also
Subroutines
Get information about the context in which the app is executing (e.g. information about Insight server and any DMP solution), including an authorization token for any DMP solution.
|
|
Get information about the solution database for the current DMP solution.
|
|
Get an ODBC connection string for the solution database in the current DMP solution.
|
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.