Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.79 KB

ContextRecord.md

File metadata and controls

28 lines (22 loc) · 1.79 KB

LaunchDarklyApi::ContextRecord

Properties

Name Type Description Notes
last_seen Time Timestamp of the last time an evaluation occurred for this context [optional]
application_id String An identifier representing the application where the LaunchDarkly SDK is running. Populated when you get contexts by kind and key. Empty in search results, which return each context's most recently reported data. [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]
associated_contexts Integer Deprecated. This value is always 1. [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::ContextRecord.new(
  last_seen: 2022-04-15T15:00:57.526470334Z,
  application_id: GoSDK/1.2,
  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/contexts/organization:launch-darkly:user:henry?filter&#x3D;applicationid+equals+%22GoSDK%2F1.2%22&quot;,&quot;type&quot;:&quot;application/json&quot;},&quot;site&quot;:{&quot;href&quot;:&quot;/my-project/my-environment/context/organization:launch-darkly:user:henry&quot;,&quot;type&quot;:&quot;text/html&quot;}},
  _access: null,
  associated_contexts: 1
)