Pay per event example
This Actor is paid per event
Pay per event example
This Actor is paid per event
This is an example pay-per-event Actor. When running it, you don't pay for the underlying platform usage, just for the Actor start event, and trivia facts it generates.
Example pay-per-event Actor generating cool trivia facts
This actor features new Actor pay-per-event model. You can ask it to generate trivia facts about various popular movies (see below). When running this Actor, you do not pay for the underlying platform usage for the run, just for a specific events, such as starting the Actor, or generating a trivia fact from a specific category (see the pricing below).
In the run options of the run, you can also specify the maximum cost you are willing to pay for a run, in US dollars.
Pricing
Event | Cost |
---|---|
Actor start | $0.1 |
Star wars trivia | $0.2 |
Harry Potter trivia | $0.3 |
Lord of the Rings trivia | $0.5 |
Input
The input is array of object in form
1{ 2 "name": TRIVIA_NAME, 3 "count": COUNT 4}
where TRIVIA_NAME
can be anything from
- lord-of-the-rings
- harry-potter
- star-wars
and
COUNT
can be any number up to 10.
The trivia are generated in the order provided in the input.
Example input
1[ 2 { 3 "name": "lord-of-the-rings", 4 "count": 1 5 }, 6 { 7 "name": "harry-potter", 8 "count": 5 9 }, 10 { 11 "name": "star-wars", 12 "count": 10 13 } 14]
Output
The trivia facts the Actor generates are stored in a default dataset. You can also read them in logs, together with charges that have been performed.
Actor Metrics
3 monthly users
-
3 stars
>99% runs succeeded
Created in Sep 2024
Modified a month ago