Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 960 Bytes

TriggerPost.md

File metadata and controls

22 lines (16 loc) · 960 Bytes

LaunchDarklyApi::TriggerPost

Properties

Name Type Description Notes
comment String Optional comment describing the trigger [optional]
instructions Array<Hash> The action to perform when triggering. This should be an array with a single object that looks like <code>{&quot;kind&quot;: &quot;flag_action&quot;}</code>. Supported flag actions are <code>turnFlagOn</code> and <code>turnFlagOff</code>. [optional]
integration_key String The unique identifier of the integration for your trigger. Use <code>generic-trigger</code> for integrations not explicitly supported.

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::TriggerPost.new(
  comment: example comment,
  instructions: [{&quot;kind&quot;:&quot;turnFlagOn&quot;}],
  integration_key: generic-trigger
)