Skip to content

Instantly share code, notes, and snippets.

View haigopi's full-sized avatar
💭
Who loves to code!

Gopi haigopi

💭
Who loves to code!
View GitHub Profile
compile group: 'org.springframework.cloud', name: 'spring-cloud-config-server'
group: 'org.springframework.cloud', name: 'spring-cloud-starter-config'
spring.application.name=MYAPP
spring.cloud.config.uri=http://localhost:8080
@haigopi
haigopi / CreateRule.json
Created August 18, 2019 14:13
CreateRule Apakche Unomi
/// REQUEST
{
"metadata": {
"id": "setContactInfo",
"name": "Copy the received contact info to the current profile",
"description": "Copies the contact info received in a custom event called 'contactInfoSubmitted' to the current profile"
},
"raiseEventOnlyOnceForSession": false,
"condition": {
"type": "eventTypeCondition",
@haigopi
haigopi / SendEvent.json
Created August 18, 2019 14:20
Send Event Unomi.
{
"sessionId" : "1234",
"events":[
{
"eventType":"contactInfoSubmitted",
"scope": "example",
"source":{
"itemType": "site",
"scope":"example",
"itemId": "mysite"
@haigopi
haigopi / allAPI.txt
Created August 18, 2019 14:27
API s supported by Unomi
GET /campaigns/
POST /campaigns/
POST /campaigns/event/
DELETE /campaigns/event/{eventId}/
POST /campaigns/events/query/
POST /campaigns/query/
POST /campaigns/query/detailed/
GET /campaigns/{campaignID}/
DELETE /campaigns/{campaignID}/
GET /campaigns/{campaignID}/detailed/
@haigopi
haigopi / incompatibleversion.log
Created August 18, 2019 14:41
Unomi Incompatible version log
[WARN ][TcpTransport] [f018981bd0a5] exception caught on transport layer [Netty4TcpChannel{localAddress=/127.0.0.1:9300, remoteAddress=/127.0.0.1:61055}], closing connection
java.lang.IllegalStateException: Received handshake message from unsupported version: [5.0.0] minimal compatible version is: [6.8.0].
@haigopi
haigopi / installCamel.log
Created August 18, 2019 14:45
Karaf Camel Installation
feature:repo-add camel 2.20.0
feature:install deployer camel-blueprint aries-blueprint
cat > deploy/example.xml <<END
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route>
<from uri="timer://test?fixedRate=true&amp;period=2000" />
<setBody>
<simple>Message at ${date:now:yyyy-MM-dd HH:mm:ss}</simple>
@haigopi
haigopi / ResultLog.log
Created August 18, 2019 14:46
Karaf camel installation result log.
2017-10-13 10:04:11,225 | INFO | 7 - timer://test | test | 28 - org.apache.camel.camel-core - 2.20.0 | Exchange[ExchangePattern: InOnly, BodyType: String, Body: Message at 2017-10-13 10:04:11]
2017-10-13 10:04:13,225 | INFO | 7 - timer://test | test | 28 - org.apache.camel.camel-core - 2.20.0 | Exchange[ExchangePattern: InOnly, BodyType: String, Body: Message at 2017-10-13 10:04:13]
"scripts": {
"describe": "npm-scripts-info",
"build": "run-s clean && run-p build:*",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" --write",
"fix:tslint": "tslint --fix --project .",
"test": "run-s build test:*",
"test:lint": "tslint --project . && prettier \"src/**/*.ts\" --list-different",
scalar DateTime
type CustomLink {
id: String!
link: String
name: String
addedAt: DateTime
addedBy: String
tags: String
}