Skip to content

Instantly share code, notes, and snippets.

View meysammeisam's full-sized avatar
🍁

Meysam Hasani meysammeisam

🍁
  • Berlin
View GitHub Profile
@meysammeisam
meysammeisam / SDM_initialization.md
Last active February 26, 2017 12:16
SDM initialization

SDM initialization

  1. create ExternalServiceHost(also available on operation/en/external_service_hosts/new):
  ExternalServiceHost.new(
    host_type: ExternalServiceHost.host_types[:test],
    url: "http://127.0.0.1:1995/?wsdl",
    verification_attributes: {"tns:licenseCode"=>"CODE"},
service_type: ExternalServiceHost.service_types[:sdm],
load "/home/holy-knight/workstation/work-documentation/McDonald/geofence/mds.rb"
#load "/home/hungerstation/workstation/geofence/mds.rb" #### hs-scalling console
geojsons ||= hubs_geojson
class Geofence
attr_accessor :multi_polygon
attr_reader :store_id, :city, :branch, :locals
def initialize(store_id:)
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
{
"__inputs": [
{
"name": "DS_LOGISTICS-INFLUXDB",
"label": "logistics-influxDB",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
{
"__inputs": [
{
"name": "DS_INFLUXDB_LOGISTICS_MONITORING",
"label": "InfluxDB_logistics_monitoring",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
},