-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathloadSpec.yml
More file actions
49 lines (46 loc) · 1.72 KB
/
loadSpec.yml
File metadata and controls
49 lines (46 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Define the requested entities
entities:
# Entity name
- name: "merchant_id"
# Type of entity. Supported types: int64, int32, float, double, bool, string
type: "int64"
# Generate values from file
fileSource:
# Path to a file that contains the possible values of the entity. The number of
# lines must be greater than the entity count for the request.
path: "example/restaurant_id.txt"
- name: "customer_id"
type: "int64"
# Applicable only for integer type entities, and if a source file is not defined.
# The entity value will be generated randomly based on the min and max values (inclusive).
randInt:
min: 1
max: 100
# Each entry defines a request that would be send when the /send endpoint is called.
# If they are multiple requests, each request will be sent within a goroutine, and the call
# will return when all requests succesfully receive a response.
requests:
# Entity(s) that corresponds to the features to be retrieved
- entities:
- "customer_id"
# Retrieved features
features:
- "merchant_orders:lifetime_avg_basket_size"
- "merchant_orders:weekday_completed_order"
- "merchant_orders:weekend_completed_order"
# Number of entities in the request. The entity value are chosen randomly from the source
# file defined above.
entityCount: 5
- entities:
- "merchant_id"
features:
- "customer_orders:cust_total_orders_3months"
- "customer_orders:cust_orders_uniq_restaurants_3months"
entityCount: 5
- entities:
- "customer_id"
- "merchant_id"
features:
- "merchant_customer_orders:days_since_last_order"
- "merchant_customer_orders:int_order_count_90days"
entityCount: 5