Pay per event example
Pricing
Pay per event
Pay per event example
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.
Pricing
Pay per event
Rating
0.0
(0)
Developer

Matej Hamas
Actor stats
3
Bookmarked
7
Total users
2
Monthly active users
a year ago
Last modified
Categories
Share
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
{"name": TRIVIA_NAME,"count": COUNT}
where TRIVIA_NAME can be anything from
- lord-of-the-rings
- harry-potter
- star-wars
and
COUNTcan be any number up to 10.
The trivia are generated in the order provided in the input.
Example input
[{"name": "lord-of-the-rings","count": 1},{"name": "harry-potter","count": 5},{"name": "star-wars","count": 10}]
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.

