Skip to content

Commit

Permalink
Updated URLs to meshiq endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
kausandr committed Dec 22, 2023
1 parent 5634430 commit cc77be1
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Finally, invoke the post method on the `JKStream` object, passing it the event y
response.close();
```

The `JKStream` formats the `event` into JSON and sends it to https://data.jkoolcloud.com/JESL.
The `JKStream` formats the `event` into JSON and sends it to https://stream.meshiq.com.

### Running JKQL (Synchronously)

Expand Down Expand Up @@ -468,7 +468,7 @@ Example of a successful response:
Data can be streamed using `curl`. Below is an example:

```sh
curl -i -H "Content-Type:application/json" -H "X-API-Key:YOURTOKEN" -X POST https://data.jkoolcloud.com/JESL/event -d '{"operation":"streamingwithcurl","type":"EVENT","start-time-usec":1457524800000000,"end-time-usec":1457524800000000,"msg-text":"Example curl streaming","source-fqn":"APPL=TestingCurl#SERVER=CurlServer100#NETADDR=11.0.0.2#DATACENTER=DC1#GEOADDR=52.52437,13.41053"}'
curl -i -H "Content-Type:application/json" -H "X-API-Key:YOURTOKEN" -X POST https://stream.meshiq.com -d '{"operation":"streamingwithcurl","type":"EVENT","start-time-usec":1457524800000000,"end-time-usec":1457524800000000,"msg-text":"Example curl streaming","source-fqn":"APPL=TestingCurl#SERVER=CurlServer100#NETADDR=11.0.0.2#DATACENTER=DC1#GEOADDR=52.52437,13.41053"}'
```

### Streaming with Python
Expand All @@ -479,7 +479,7 @@ Streaming data using Python "requests" object. Below is an example:
import requests
headers = {'X-API-Key': 'YOURTOKEN'}
payload={'operation':'streamingwithpython','type':'EVENT','start-time-usec':1457524800000000,'end-time-usec':1457524800000000,'msg-text':'Example Python Streaming','source-fqn':'APPL=TestingCurl#SERVER=CurlServer100#NETADDR=11.0.0.2#DATACENTER=DC1#GEOADDR=52.52437,13.41053'}
resp = requests.post('https://data.jkoolcloud.com/JESL/event', headers=headers, json=payload)
resp = requests.post('https://stream.meshiq.com', headers=headers, json=payload)
```

### Note on Timestamps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public interface JKQIConstants {
static final String JKOOL_TOKEN = System.getProperty("jkool.api.token");

static final String JKOOL_STREAM_URL = System.getProperty("jkool.stream.url", "https://data.jkoolcloud.com/JESL");
static final String JKOOL_STREAM_URL = System.getProperty("jkool.stream.url", "https://stream.meshiq.com");
static final String JKOOL_QUERY_URL = System.getProperty("jkool.query.url",
"https://jkool.jkoolcloud.com/jkool-service/jkql");
static final String JKOOL_WEBSOCK_URL = System.getProperty("jkool.websock.url",
Expand Down
70 changes: 35 additions & 35 deletions src/swagger/jKoolSwagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ info:
license:
name: jKool
url: 'https://www.jkoolcloud.com/company/privacy-policy/'
host: 'data.jkoolcloud.com:6580'
host: 'stream.meshiq.com:443'
basePath: /JESL
schemes:
- http
Expand All @@ -27,17 +27,17 @@ paths:
produces:
- application/json
parameters:
- name: event
description: the event
required: true
in: body
schema:
$ref: '#/definitions/event'
- name: token
in: header
description: token to be passed as a header
required: true
type: string
- name: event
description: the event
required: true
in: body
schema:
$ref: '#/definitions/event'
- name: token
in: header
description: token to be passed as a header
required: true
type: string
responses:
'202':
description: Event accepted.
Expand All @@ -46,31 +46,31 @@ paths:
'401':
description: Unauthorized.
'405':
description: Method not allowed.
description: Method not allowed.
'500':
description: Internal Server Error.
'501':
description: Not implemented.
description: Not implemented.
default:
description: Bad Request.
description: Bad Request.
/activity:
post:
description: Creates an activity
operationId: postActivity
produces:
- application/json
parameters:
- name: activity
description: the activity
required: true
in: body
schema:
$ref: '#/definitions/activity'
- name: token
in: header
description: token to be passed as a header
required: true
type: string
- name: activity
description: the activity
required: true
in: body
schema:
$ref: '#/definitions/activity'
- name: token
in: header
description: token to be passed as a header
required: true
type: string
responses:
'200':
description: Event streamed properly.
Expand All @@ -81,13 +81,13 @@ paths:
'401':
description: Unauthorized.
'405':
description: Method not allowed.
description: Method not allowed.
'500':
description: Internal Server Error.
'501':
description: Not implemented.
default:
description: Bad Request.
description: Not implemented.
default:
description: Bad Request.
definitions:
event:
required:
Expand Down Expand Up @@ -190,8 +190,8 @@ definitions:
snapshots:
type: array
items:
$ref: '#/definitions/snapshot'
description: List of categorized custom fields for this event.
$ref: '#/definitions/snapshot'
description: List of categorized custom fields for this event.
snapshot:
required:
- name
Expand Down Expand Up @@ -226,13 +226,13 @@ definitions:
- value
type: object
properties:
name:
name:
type: string
description: Name of the custom field.
type:
type:
type: string
description: Data type of the custom field.
value:
value:
type: string
description: Value of custom field.
activity:
Expand Down

0 comments on commit cc77be1

Please # to comment.