This repository has been archived by the owner on May 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
77,129 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
create kafka-config | ||
|
||
kafka { | ||
bootstrap.servers="localhost:9092" | ||
key.serializer = "org.apache.kafka.common.serialization.StringSerializer" | ||
value.serializer = "org.apache.kafka.common.serialization.StringSerializer" | ||
} | ||
|
||
|
||
create twirl-template | ||
|
||
@import scala.util.Random | ||
@import com.stratio.khermes.helpers.faker.generators.Positive | ||
@import com.stratio.khermes.helpers.faker.Faker | ||
@(faker: Faker) | ||
@defining(faker.TicketsStratio.generateTicket) { case (randomTicket) => { | ||
"id": "@(randomTicket.id)", | ||
"idSale": "@(randomTicket.idSale)", | ||
"dateFlat": @(randomTicket.dateFlat), | ||
"date": "@(randomTicket.date)", | ||
"cashier": "@(randomTicket.cashier)", | ||
"clientId": "@(randomTicket.clientId)", | ||
"clientName": "@(randomTicket.clientName)", | ||
"storeId": "@(faker.Number.number(3,Positive))", | ||
"totalSale": @(randomTicket.totalSale), | ||
"lines": [@(randomTicket.lines)], | ||
"pays": [@(randomTicket.pays)] | ||
}} | ||
|
||
|
||
create generator-config | ||
|
||
khermes { | ||
templates-path = "/tmp/khermes/templates" | ||
topic = "tickets" | ||
template-name = "khermestemplate" | ||
i18n = "ALL" | ||
|
||
timeout-rules { | ||
number-of-events: 100 | ||
duration: 5 seconds | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.