Variants and Flag Types

이 제품은 선택한 Datadog 사이트에서 지원되지 않습니다. ().
이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Overview

Each feature flag has a variant type that defines the data type of values the flag can return. Variants are the specific values your application can receive when it evaluates the flag.

Flag types

Datadog Feature Flags support five data types:

TypeDescription
Booleantrue or false
StringText values
IntegerWhole numbers
NumberFloating-point numbers
JSONStructured JSON objects

Note: The flag key and variant type cannot be changed after you create the flag.

Add a variant

  1. Navigate to your feature flag’s details page.
  2. Open the Manage Implementation & Variants side panel.
  3. Click Add Variant.
  4. Enter the variant name and value, then save.

Note: You cannot add variants to Boolean flags. Boolean flags are limited to true and false.

Edit a variant

  1. Navigate to your feature flag’s details page.
  2. Open the Manage Implementation & Variants side panel.
  3. Click the pencil icon next to the variant you want to modify.
  4. Update the variant’s name, value, or both, then save.
Changing the value of a variant that is being served as part of a running experiment may invalidate the results of that experiment.

Further reading

추가 유용한 문서, 링크 및 기사: