Skip to content

Create Rule

frauddetector_create_rule R Documentation

Creates a rule for use with the specified detector

Description

Creates a rule for use with the specified detector.

Usage

frauddetector_create_rule(ruleId, detectorId, description, expression,
  language, outcomes, tags)

Arguments

ruleId

[required] The rule ID.

detectorId

[required] The detector ID for the rule's parent detector.

description

The rule description.

expression

[required] The rule expression.

language

[required] The language of the rule.

outcomes

[required] The outcome or outcomes returned when the rule expression matches.

tags

A collection of key and value pairs.

Value

A list with the following syntax:

list(
  rule = list(
    detectorId = "string",
    ruleId = "string",
    ruleVersion = "string"
  )
)

Request syntax

svc$create_rule(
  ruleId = "string",
  detectorId = "string",
  description = "string",
  expression = "string",
  language = "DETECTORPL",
  outcomes = list(
    "string"
  ),
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)