Sensors Data Trigger Strategy API

The Trigger Strategy API from Sensors Data — 9 operation(s) for trigger strategy.

Operations 9

POST /trigger-strategy/create 创建触发策略 #
POST /trigger-strategy/start 启动触发策略 #
POST /trigger-strategy/stop 停止触发策略 #
POST /trigger-strategy/delete 删除触发策略 #
GET /trigger-strategy/get 获取触发策略详情 #
GET /trigger-strategy/query 查询触发策略 #
POST /trigger-strategy/modify 修改触发策略 #
POST /trigger-strategy/check 校验触发策略 ID #
POST /trigger-strategy/quota/query 查询触发策略 Quota #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sensors-data-trigger-strategy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sensors-data-trigger-strategy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 触发策略相关接口
  title: 神策智能运营 Trigger Strategy API
  version: ''
servers:
- url: /api/v3/focus/v1
tags:
- name: Trigger Strategy
paths:
  /trigger-strategy/create:
    post:
      description: 创建触发策略
      operationId: CreateTriggerStrategy
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.CreateTriggerStrategyRequest'
        description: 创建触发策略的请求体
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data: {}
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.CreateTriggerStrategyResponseHttpApiResult'
          description: sensorsdata.focus.v1.CreateTriggerStrategyResponse
      summary: 创建触发策略
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.CreateTriggerStrategyResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.CreateTriggerStrategyRequest
        grpcServiceBase: com.sensorsdata.focus.v1.WebStrategyServiceGrpc.WebStrategyServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: CreateTriggerStrategyRequest
      tags:
      - Trigger Strategy
  /trigger-strategy/start:
    post:
      description: 启动触发策略
      operationId: StartTriggerStrategy
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.StartTriggerStrategyRequest'
        description: 启动触发策略的请求体
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data: {}
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.StartTriggerStrategyResponseHttpApiResult'
          description: sensorsdata.focus.v1.StartTriggerStrategyResponse
      summary: 启动触发策略
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.StartTriggerStrategyResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.StartTriggerStrategyRequest
        grpcServiceBase: com.sensorsdata.focus.v1.WebStrategyServiceGrpc.WebStrategyServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: StartTriggerStrategyRequest
      tags:
      - Trigger Strategy
  /trigger-strategy/stop:
    post:
      description: 停止触发策略
      operationId: StopTriggerStrategy
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.StopTriggerStrategyRequest'
        description: 停止触发策略的请求体
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data: {}
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.StopTriggerStrategyResponseHttpApiResult'
          description: sensorsdata.focus.v1.StopTriggerStrategyResponse
      summary: 停止触发策略
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.StopTriggerStrategyResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.StopTriggerStrategyRequest
        grpcServiceBase: com.sensorsdata.focus.v1.WebStrategyServiceGrpc.WebStrategyServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: StopTriggerStrategyRequest
      tags:
      - Trigger Strategy
  /trigger-strategy/delete:
    post:
      description: 删除触发策略
      operationId: DeleteTriggerStrategy
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.DeleteTriggerStrategyRequest'
        description: 删除触发策略的请求体
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data: {}
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.DeleteTriggerStrategyResponseHttpApiResult'
          description: sensorsdata.focus.v1.DeleteTriggerStrategyResponse
      summary: 删除触发策略
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.DeleteTriggerStrategyResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.DeleteTriggerStrategyRequest
        grpcServiceBase: com.sensorsdata.focus.v1.WebStrategyServiceGrpc.WebStrategyServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: DeleteTriggerStrategyRequest
      tags:
      - Trigger Strategy
  /trigger-strategy/get:
    get:
      description: 获取触发策略详情
      operationId: GetTriggerStrategy
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      - description: 触发策略 业务 ID
        in: query
        name: biz_id
        required: true
        schema:
          type: string
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data:
                  trigger_strategy:
                    event_entry_config:
                      stream_event_do_entry_rule:
                        event_component_group_rule:
                          event_component_params:
                          - {}
                        time_range:
                          start_time:
                            relative_time:
                              time_interval: {}
                        event_measure_user_groups:
                        - events:
                            condition:
                              index: 10
                              conditions:
                              - function: EQUAL
                                index: 10
                                params:
                                - expression: user.p1/user.p2+user.p3
                                  field: '#ResourceId'
                                  variable: $ENTRY_TIME
                                  value: {}
                                  param_type: FIELD
                              operator: AND
                    re_entry_config:
                      reentry_limit: {}
                    audience_entry_config:
                      user_group_rule:
                        groups:
                        - profile_dimension_user_group:
                            dimension_table:
                              predicates:
                                simple_predicates:
                                - measures:
                                  - sub_dimension_measure: {}
                          group_expression_user_group: {}
                          external_measure_user_group:
                            rows: {}
                          pql_user_group: {}
                          external_profile_user_group: {}
                          event_compound_measure_user_group:
                            measure:
                              measures:
                              - {}
                          event_sequence_user_group:
                            event_steps:
                            - {}
                          sql_user_group:
                            query_options:
                            - {}
                          profile_user_group: {}
                        tailor:
                          rank_field:
                            orders:
                            - measure:
                                aggregator_field: {}
                        sort_info: {}
                      audience_rule_detail_param:
                        segment_rule_expression:
                          eql_segment_rule:
                            eql: 'user.$SegmentMembership.user_segment_t111111.is_not_null()

                              and

                              user.user_tag_c4 == ''标签值1''

                              and

                              user.vip_level in [''高级VIP'',''普通用户'']'
                          entity_set_rules:
                          - {}
                          used_fields:
                          - user.id
                          sql_segment_rule:
                            query_options:
                              option: TIMEOUT
                              value: '120'
                            sql: select user_id as id from user where user_id > 100
                          loading_segment_rule:
                            matched_field: user.$identity_login_id
                            sync_flag: false
                            loading_type: TAG_LOADING_TYPE_OVERWRITE
                          custom_rule: {}
                          event_sequence_rule:
                            simple_event_sequences:
                            - time_window:
                                unit: DAY
                              time_range:
                                start_time:
                                  type: RELATIVE
                                  trunc_unit: DAY
                                  base_time: $TASK_TIME
                                  time_interval: -7
                                end_time:
                                  type: RELATIVE
                                  trunc_unit: DAY
                                  base_time: $TASK_TIME
                                  time_interval: -1
                              event_steps:
                              - condition:
                                  operator: AND
                                  conditions:
                                  - function: IS_TRUE
                                    params:
                                    - param_type: FIELD
                                      field: user.$Events.$AppStart.$is_login_id
                                event_name: user.$Events.AppStart
                            operator: UNION
                          tailor:
                            function: LESS_EQUAL
                            rank_field:
                              type: PERCENT_ORDER_RANK
                              orders:
                              - measure:
                                  type: EQL_MEASURE_FIELD
                                  eql_measure: "user.$Events.virtual_event_for_tag.filter_event(\n  datetime_add(${var:base_time}, -1, 'DAY'),\n  datetime_add(${var:base_time}, -1, 'DAY')\n).count()"
                                is_asc: false
                            params:
                            - param_type: VALUE
                              value:
                                data_type: NUMBER
                                number_value: 0.1
                          type: SQL_BASED
                          version: 2
                          group_expression_rule:
                            group_expression: $1-$2
                    msg_send_config: {}
                  events:
                  - {}
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.GetTriggerStrategyResponseHttpApiResult'
          description: sensorsdata.focus.v1.GetTriggerStrategyResponse
      summary: 获取触发策略详情
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.GetTriggerStrategyResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.GetTriggerStrategyRequest
        grpcServiceBase: com.sensorsdata.focus.v1.WebStrategyServiceGrpc.WebStrategyServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      tags:
      - Trigger Strategy
  /trigger-strategy/query:
    get:
      description: 查询触发策略
      operationId: QueryTriggerStrategy
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      - description: 触发策略业务 ID 或者触发策略业务名称
        in: query
        name: biz_key
        schema:
          type: string
      - description: 触发策略状态
        in: query
        name: status
        schema:
          type: string
      - description: 触发策略类型
        in: query
        name: type
        schema:
          type: string
      - description: 触发策略创建开始时间
        in: query
        name: create_time_start
        schema:
          type: string
      - description: 触发策略创建结束时间
        in: query
        name: create_time_end
        schema:
          type: string
      - description: 页码
        in: query
        name: page_num
        required: true
        schema:
          format: int32
          type: integer
      - description: 页大小
        in: query
        name: page_size
        required: true
        schema:
          format: int32
          type: integer
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data:
                  strategies:
                  - event_entry_config:
                      stream_event_do_entry_rule:
                        event_component_group_rule:
                          event_component_params:
                          - {}
                        time_range:
                          start_time:
                            relative_time:
                              time_interval: {}
                        event_measure_user_groups:
                        - events:
                            condition:
                              index: 10
                              conditions:
                              - function: EQUAL
                                index: 10
                                params:
                                - expression: user.p1/user.p2+user.p3
                                  field: '#ResourceId'
                                  variable: $ENTRY_TIME
                                  value: {}
                                  param_type: FIELD
                              operator: AND
                    re_entry_config:
                      reentry_limit: {}
                    audience_entry_config:
                      user_group_rule:
                        groups:
                        - profile_dimension_user_group:
                            dimension_table:
                              predicates:
                                simple_predicates:
                                - measures:
                                  - sub_dimension_measure: {}
                          group_expression_user_group: {}
                          external_measure_user_group:
                            rows: {}
                          pql_user_group: {}
                          external_profile_user_group: {}
                          event_compound_measure_user_group:
                            measure:
                              measures:
                              - {}
                          event_sequence_user_group:
                            event_steps:
                            - {}
                          sql_user_group:
                            query_options:
                            - {}
                          profile_user_group: {}
                        tailor:
                          rank_field:
                            orders:
                            - measure:
                                aggregator_field: {}
                        sort_info: {}
                      audience_rule_detail_param:
                        segment_rule_expression:
                          eql_segment_rule:
                            eql: 'user.$SegmentMembership.user_segment_t111111.is_not_null()

                              and

                              user.user_tag_c4 == ''标签值1''

                              and

                              user.vip_level in [''高级VIP'',''普通用户'']'
                          entity_set_rules:
                          - {}
                          used_fields:
                          - user.id
                          sql_segment_rule:
                            query_options:
                              option: TIMEOUT
                              value: '120'
                            sql: select user_id as id from user where user_id > 100
                          loading_segment_rule:
                            matched_field: user.$identity_login_id
                            sync_flag: false
                            loading_type: TAG_LOADING_TYPE_OVERWRITE
                          custom_rule: {}
                          event_sequence_rule:
                            simple_event_sequences:
                            - time_window:
                                unit: DAY
                              time_range:
                                start_time:
                                  type: RELATIVE
                                  trunc_unit: DAY
                                  base_time: $TASK_TIME
                                  time_interval: -7
                                end_time:
                                  type: RELATIVE
                                  trunc_unit: DAY
                                  base_time: $TASK_TIME
                                  time_interval: -1
                              event_steps:
                              - condition:
                                  operator: AND
                                  conditions:
                                  - function: IS_TRUE
                                    params:
                                    - param_type: FIELD
                                      field: user.$Events.$AppStart.$is_login_id
                                event_name: user.$Events.AppStart
                            operator: UNION
                          tailor:
                            function: LESS_EQUAL
                            rank_field:
                              type: PERCENT_ORDER_RANK
                              orders:
                              - measure:
                                  type: EQL_MEASURE_FIELD
                                  eql_measure: "user.$Events.virtual_event_for_tag.filter_event(\n  datetime_add(${var:base_time}, -1, 'DAY'),\n  datetime_add(${var:base_time}, -1, 'DAY')\n).count()"
                                is_asc: false
                            params:
                            - param_type: VALUE
                              value:
                                data_type: NUMBER
                                number_value: 0.1
                          type: SQL_BASED
                          version: 2
                          group_expression_rule:
                            group_expression: $1-$2
                    msg_send_config: {}
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.QueryTriggerStrategyResponseHttpApiResult'
          description: sensorsdata.focus.v1.QueryTriggerStrategyResponse
      summary: 查询触发策略
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.QueryTriggerStrategyResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.QueryTriggerStrategyRequest
        grpcServiceBase: com.sensorsdata.focus.v1.WebStrategyServiceGrpc.WebStrategyServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      tags:
      - Trigger Strategy
  /trigger-strategy/modify:
    post:
      description: 修改触发策略
      operationId: ModifyTriggerStrategy
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.ModifyTriggerStrategyRequest'
        description: 修改触发策略请求
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data: {}
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.ModifyTriggerStrategyResponseHttpApiResult'
          description: sensorsdata.focus.v1.ModifyTriggerStrategyResponse
      summary: 修改触发策略
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.ModifyTriggerStrategyResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.ModifyTriggerStrategyRequest
        grpcServiceBase: com.sensorsdata.focus.v1.WebStrategyServiceGrpc.WebStrategyServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: ModifyTriggerStrategyRequest
      tags:
      - Trigger Strategy
  /trigger-strategy/check:
    post:
      description: 校验触发策略ID是否唯一;格式是否合法(大写字母(A-Z)、小写字母(a-z)、数字(0-9)和下划线(_)组成);字符串长度上限:64
      operationId: CheckTriggerStrategyBizId
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.CheckTriggerStrategyBizIdRequest'
        description: 检查触发策略业务 ID 是否合规请求
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data: {}
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.CheckTriggerStrategyBizIdResponseHttpApiResult'
          description: sensorsdata.focus.v1.CheckTriggerStrategyBizIdResponse
      summary: 校验触发策略 ID
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.CheckTriggerStrategyBizIdResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.CheckTriggerStrategyBizIdRequest
        grpcServiceBase: com.sensorsdata.focus.v1.WebStrategyServiceGrpc.WebStrategyServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: CheckTriggerStrategyBizIdRequest
      tags:
      - Trigger Strategy
  /trigger-strategy/quota/query:
    post:
      description: 查询触发策略 Quota
      operationId: QueryTriggerStrategyQuota
      parameters:
      - description: 全局唯一的密钥,用于验证和授权访问 API 接口
        in: header
        name: api-key
        required: true
        schema:
          type: string
      - description: 项目名, 指定请求所属项目
        in: header
        name: sensorsdata-project
        required: true
        schema:
          type: string
      - description: 租户 ID, 用于请求所属租户
        in: header
        name: X-Organization-Id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sensorsdata.focus.v1.QueryTriggerStrategyQuotaRequest'
        description: 查询触发策略请求
        required: false
      responses:
        default:
          content:
            application/json:
              example:
                code: SUCCESS
                data: {}
                request_id: '1'
              schema:
                $ref: '#/components/schemas/sensorsdata.focus.v1.QueryTriggerStrategyQuotaResponseHttpApiResult'
          description: sensorsdata.focus.v1.QueryTriggerStrategyQuotaResponse
      summary: 查询触发策略 Quota
      x-sd-openapi:
        responseClass: com.sensorsdata.focus.v1.QueryTriggerStrategyQuotaResponse
        isServerStreaming: false
        requestClass: com.sensorsdata.focus.v1.QueryTriggerStrategyQuotaRequest
        grpcServiceBase: com.sensorsdata.focus.v1.WebStrategyServiceGrpc.WebStrategyServiceImplBase
        internalDesc: classes in template for grpc service dynamic invoking
        isClientStreaming: false
      x-codegen-request-body-name: QueryTriggerStrategyQuotaRequest
      tags:
      - Trigger Strategy
components:
  schemas:
    sensorsdata.horizon.v1.SegmentRule:
      description: ''
      properties:
        entity_name:
          description: ''
          type: string
        name:
          description: ''
          type: string
        display_name:
          description: ''
          type: string
        comment:
          description: ''
          type: string
        id:
          description: ''
          format: int32
          type: integer
        status:
          description: ''
          enum:
          - STATUS_UNSPECIFIED
          - ACTIVE
          - INACTIVE
          - DELETE_REQUESTED
          type: string
        expression:
          $ref: '#/components/schemas/sensorsdata.horizon.v1.SegmentRuleExpression'
        version:
          description: ''
          type: string
        rule_available:
          description: ''
          type: boolean
        created_by:
          description: ''
          type: string
        custom_params:
          additionalProperties:
            $ref: '#/components/schemas/sensorsdata.common.Literal'
          description: ''
          type: object
        creator_id:
          description: ''
          type: string
        modifier_id:
          description: ''
          type: string
        create_time:
          description: ''
          format: date-time
          type: string
        update_time:
          description: ''
          format: date-time
          type: string
        type:
          description: ''
          enum:
          - TYPE_UNSPECIFIED
          - SEGMENT_DEFINITION_RULE
          - ENTITY_SET_RULE
          type: string
        read_only:
          description: ''
          type: boolean
        delete_flag:
          description: ''
          format: int64
          type: integer
      required:
      - entity_name
      - expression
      title: SegmentRule
      type: object
    sensorsdata.horizon.v1.SegmentRuleExpression:
      description: ''
      properties:
        type:
          description: "分群规则类型\n```\n  SQL_BASED: 基于 SQL 的分群规则\n  EQL_BASED: 基于 EQL 的分群规则\n  LOADING_BASED: 基于文件加载的分群规则\n  CUSTOM_BASED: 基于自定义组件的分群规则\n  EVENT_SEQUENCE_BASED: 基于行为序列的分群规则\n  GROUP_EXPRESSION_BASED: 基于规则组的分群规则\n  ALL: 表示全部实体, 该类型比较特殊, 无实际的规则信息。\n```"
          enum:
          - SIMPLE_USER_GROUP_TYPE_UNSPECIFIED
          - SQL_BASED
          - EQL_BASED
          - LOADING_BASED
          - CUSTOM_BASED
          - EVENT_SEQUENCE_BASED
          - GROUP_EXPRESSION_BASED
          - ALL
          example: SQL_BASED
          type: string
        sql_segment_rule:
          $ref: '#/components/schemas/sensorsdata.horizon.v1.SqlSegmentRuleExpression'
        eql_segment_rule:
          $ref: '#/components/schemas/sensorsdata.horizon.v1.EqlSegmentRuleExpression'
        loading_segment_rule:
          $ref: '#/components/schemas/sensorsdata.horizon.v1.LoadingSegmentRuleExpression'
        custom_rule:
          $ref: '#/components/schemas/sensorsdata.horizon.v1.CustomSegmentRuleExpression'
        event_sequence_rule:
     

# --- truncated at 32 KB (98 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/sensors-data/refs/heads/main/openapi/sensors-data-trigger-strategy-api-openapi.yml