Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

POST /config/event_sources/custom_properties/property_calculated_expressions

SUMMARY Creates a new Custom Property Calculated Expression. Requires the System Administrator, Security Admin or User Defined Event Properties permission.

Creates a new Custom Property Calculated Expression. Requires the System Administrator, Security Admin or User Defined Event Properties permission.

Table 1: POST /config/event_sources/custom_properties/property_calculated_expressions resource details:

POST /config/event_sources/custom_properties/property_calculated_expressions resource details

MIME Type

application/json

Table 2: POST /config/event_sources/custom_properties/property_calculated_expressions request parameter details:

POST /config/event_sources/custom_properties/property_calculated_expressions request parameter details

Parameter Type Optionality Data Type MIME Type Description

fields

header

Optional

String

text/plain

Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas.

Table 3: POST /config/event_sources/custom_properties/property_calculated_expressions request body details:

POST /config/event_sources/custom_properties/property_calculated_expressions request body details

Parameter Data Type MIME Type Description Sample

data

Object

application/json

Required - A JSON representation of the Calculated expression object
  • regex_property_identifier - Required - String - The identifier of the event regex property to which this expression belongs.
  • enabled - Optional - Boolean - Flag that indicates whether this expression is enabled. It defaults to true if not provided.
  • first_operand - Required - Operand Object - An object describing the first operand in the expression.
  • second_operand - Required - Operand Object - An object describing the second operand in the expression.
  • operator - Optional -String - A string that represents one of the basic arithmetic operations in the expression. Defaults to "ADD".
  • payload - Optional - String - Test payload. This parameter is only used in the UI so that you can verify that your expression matches the expected payload.
  • log_source_type_id - Required - Integer - The expression is only applied to events for this log source type.
  • log_source_id - Optional - Integer - The expression is only applied to events for this log source (more specific than type alone).
  • qid - Optional - Integer - The expression is only applied to events associated with this QID record.
  • low_level_category_id - Optional - Integer - The expression is only applied to events with this low level category.

{ "creation_date": 42, "enabled": true, "first_operand": { "numeric_value": 42.5, "property_name": "String", "type": "String <one of: STATIC, PROPERTY>" }, "id": 42, "identifier": "String", "log_source_id": 42, "log_source_type_id": 42, "low_level_category_id": 42, "modification_date": 42, "operator": "String <one of: ADD, SUBTRACT, MULTIPLY, DIVIDE>", "payload": "String", "qid": 42, "regex_property_identifier": "String", "second_operand": { "numeric_value": 42.5, "property_name": "String", "type": "String <one of: STATIC, PROPERTY>" }, "username": "String" }

Table 4: POST /config/event_sources/custom_properties/property_calculated_expressions response codes:

POST /config/event_sources/custom_properties/property_calculated_expressions response codes

HTTP Response Code Unique Code Description

201

A new Calculated expression was created.

422

1005

One or more request parameter are invalid in request.

500

1020

An error occurred during the attempt to create a new Calculated expression.

Response Description

The newly created Calculated expression that contains the following fields:
  • id - Integer - The sequence ID of the Calculated expression.
  • identifier - String - The unique ID of the Calculated expression. This value is in the form of a UUID.
  • regex_property_identifier - String - The identifier of the event regex property to which this expression belongs.
  • enabled - Boolean - Flag that indicates whether this expression is enabled.
  • first_operand - Operand Object - An operand object describing the first operand in the expression.
  • second_operand - Operand Object - An operand object describing the second operand in the expression.
  • operator - String - A string that represents one of the basic arithmetic operations in the expression.
  • creation_date - Long - The epoch timestamp in milliseconds of the time the expression was created.
  • modification_date - Long - The epoch timestamp in milliseconds of the time the expression was last modified.
  • payload - String - Test payload. This parameter is only used in the UI so that you can verify that your expression matches the expected payload.
  • log_source_type_id - Integer - The expression is only applied to events for this log source type.
  • log_source_id - Integer - The expression is only applied to events for this log source (more specific than type alone).
  • qid - Integer - The expression is only applied to events associated with this QID record.
  • low_level_category_id - Integer - The expression is only applied to events with this low level category.
  • username - String - The owner of the Calculated expression.
An operand object contains the following fields:
  • type - String - can be "STATIC" (for numeric operand) or "PROPERTY" (for operand that is a property).
  • numeric_value - Number - when property_type is "STATIC", this is the value of the operand; otherwise, it is suppressed.
  • property_name - String - when property_type is "PROPERTY", this is the name of the property that is being used as the operand; otherwise, it is suppressed.

Response Sample