Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.93 KB

ContextInstanceRecord.md

File metadata and controls

30 lines (24 loc) · 1.93 KB

LaunchDarklyApi::ContextInstanceRecord

Properties

Name Type Description Notes
last_seen Time Timestamp of the last time an evaluation occurred for this context instance [optional]
id String The context instance ID
application_id String An identifier representing the application where the LaunchDarkly SDK is running [optional]
anonymous_kinds Array<String> A list of the context kinds this context was associated with that the SDK removed because they were marked as anonymous at flag evaluation [optional]
context Object The context, including its kind and attributes
_links Hash<String, Link> The location and content type of related resources [optional]
_access Access [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::ContextInstanceRecord.new(
  last_seen: 2022-04-15T15:00:57.526470334Z,
  id: b3JnOmxhdW5jaGRhcmtseQ,
  application_id: GoSDK/1.2,
  anonymous_kinds: [&quot;device&quot;,&quot;privateKind&quot;],
  context: {&quot;kind&quot;: &quot;user&quot;, &quot;key&quot;: &quot;context-key-123abc&quot;, &quot;name&quot;: &quot;Sandy Smith&quot;, &quot;email&quot;: &quot;sandy@example.com&quot;},
  _links: {&quot;parent&quot;:{&quot;href&quot;:&quot;/api/v2/projects/my-project/environments/my-environment&quot;,&quot;type&quot;:&quot;application/json&quot;},&quot;self&quot;:{&quot;href&quot;:&quot;/api/v2/projects/my-project/environments/my-env/context-instances/organization:launch-darkly:user:henry?filter&#x3D;applicationId:\&quot;GoSDK/1.2\&quot;&quot;,&quot;type&quot;:&quot;application/json&quot;},&quot;site&quot;:{&quot;href&quot;:&quot;/my-project/my-environment/context-instances/organization:launch-darkly:user:henry&quot;,&quot;type&quot;:&quot;text/html&quot;}},
  _access: null
)