{
  "api": "alarms-js-internal-api",
  "docsBaseUrl": "https://documentation.opengate.es/",
  "functions": [
    {
      "id": "getCounterValueWithReset",
      "internal": true,
      "kind": "function",
      "name": "getCounterValueWithReset",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Datastream object to calculate counter value.",
          "name": "datastreamValue",
          "type": "Object"
        },
        {
          "description": "Value to increment.",
          "name": "incValue",
          "type": "Number"
        },
        {
          "description": "Reset date.",
          "name": "resetDate",
          "type": "Date"
        }
      ],
      "signature": "getCounterValueWithReset(datastreamValue, incValue, resetDate)",
      "summary": "Same as getCounterValue, but returns an object with the counter value, a flag indicating whether the reset was activated, and the previous value",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getcountervaluewithresetdatastreamvalue-incvalue-resetdate"
    },
    {
      "id": "getDatastreamValueCmmsModuleFromEntity",
      "internal": true,
      "kind": "function",
      "name": "getDatastreamValueCmmsModuleFromEntity",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Datastream object to calculate counter value.",
          "name": "datastreamObject",
          "type": "Object"
        },
        {
          "description": "Index of array to get.",
          "name": "position",
          "type": "Number"
        }
      ],
      "signature": "getDatastreamValueCmmsModuleFromEntity(datastreamObject, position)",
      "summary": "Get datastream object in communicationModules datastream (check that this datastreams is array and not object) selecting index of array.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getdatastreamvaluecmmsmodulefromentitydatastreamobject-position"
    },
    {
      "id": "getDatastreamByIdFromDB",
      "internal": true,
      "kind": "function",
      "name": "getDatastreamByIdFromDB",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Datastream identifier.",
          "name": "datastreamId",
          "type": "String"
        },
        {
          "description": "SubEntity identifier.",
          "name": "subEntityIdentifier",
          "type": "String"
        }
      ],
      "signature": "getDatastreamByIdFromDB(datastreamId, subEntityIdentifier)",
      "summary": "\u003e **Deprecated:** Use utils object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getdatastreambyidfromdbdatastreamid-subentityidentifier"
    },
    {
      "id": "getMonthlyCounterValueFromDB",
      "internal": true,
      "kind": "function",
      "name": "getMonthlyCounterValueFromDB",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Datastream identifier.",
          "name": "datastreamId",
          "type": "String"
        },
        {
          "description": "Value to increment.",
          "name": "incValue",
          "type": "Number"
        },
        {
          "description": "SubEntity identifier.",
          "name": "subEntityIdentifier",
          "type": "String"
        }
      ],
      "signature": "getMonthlyCounterValueFromDB(datastreamId, incValue, subEntityIdentifier)",
      "summary": "Gets the incremented value of the read datastream if its date is before the date obtained by function _getMonthlyResetDate_",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getmonthlycountervaluefromdbdatastreamid-incvalue-subentityidentifier"
    },
    {
      "id": "getMonthlyCounterValueFromDBWithReset",
      "internal": true,
      "kind": "function",
      "name": "getMonthlyCounterValueFromDBWithReset",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Value to increment.",
          "name": "incValue",
          "type": "Number"
        },
        {
          "description": "SubEntity identifier.",
          "name": "subEntityIdentifier",
          "type": "String"
        }
      ],
      "signature": "getMonthlyCounterValueFromDBWithReset(datastream, incValue, subEntityIdentifier)",
      "summary": "Same as _getMonthlyCounterValueFromDB_ but returning object of _getCounterValueWithReset_",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getmonthlycountervaluefromdbwithresetdatastream-incvalue-subentityidentifier"
    },
    {
      "id": "getMonthlyCounterValueFromMessage",
      "internal": true,
      "kind": "function",
      "name": "getMonthlyCounterValueFromMessage",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Value to increment.",
          "name": "incValue",
          "type": "Number"
        }
      ],
      "signature": "getMonthlyCounterValueFromMessage(datastream, incValue)",
      "summary": "Gets the incremented value of the received datastream if its date is before the date obtained by function _getMonthlyResetDate_",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getmonthlycountervaluefrommessagedatastream-incvalue"
    },
    {
      "id": "getMonthlyCounterValueFromMessageWithReset",
      "internal": true,
      "kind": "function",
      "name": "getMonthlyCounterValueFromMessageWithReset",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Value to increment.",
          "name": "incValue",
          "type": "Number"
        }
      ],
      "signature": "getMonthlyCounterValueFromMessageWithReset(datastream, incValue)",
      "summary": "Same as _getMonthlyCounterValueFromMessage_ but returning object of _getCounterValueWithReset_",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getmonthlycountervaluefrommessagewithresetdatastream-incvalue"
    },
    {
      "id": "getDailyCounterValueFromDB",
      "internal": true,
      "kind": "function",
      "name": "getDailyCounterValueFromDB",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Value to increment.",
          "name": "incValue",
          "type": "Number"
        },
        {
          "description": "SubEntity identifier.",
          "name": "subEntityIdentifier",
          "type": "String"
        }
      ],
      "signature": "getDailyCounterValueFromDB(datastream, incValue, subEntityIdentifier)",
      "summary": "Gets the incremented value of the read datastream if its date is before the date obtained by function _getDailyResetDate_",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getdailycountervaluefromdbdatastream-incvalue-subentityidentifier"
    },
    {
      "id": "getDailyCounterValueFromDBWithReset",
      "internal": true,
      "kind": "function",
      "name": "getDailyCounterValueFromDBWithReset",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Value to increment.",
          "name": "incValue",
          "type": "Number"
        },
        {
          "description": "SubEntity identifier.",
          "name": "subEntityIdentifier",
          "type": "String"
        }
      ],
      "signature": "getDailyCounterValueFromDBWithReset(datastream, incValue, subEntityIdentifier)",
      "summary": "Same as _getDailyCounterValueFromDB_ but returning the object of _getCounterValueWithReset_",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getdailycountervaluefromdbwithresetdatastream-incvalue-subentityidentifier"
    },
    {
      "id": "getDailyCounterValueFromMessage",
      "internal": true,
      "kind": "function",
      "name": "getDailyCounterValueFromMessage",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Value to increment.",
          "name": "incValue",
          "type": "Number"
        }
      ],
      "signature": "getDailyCounterValueFromMessage(datastream, incValue)",
      "summary": "Gets the incremented value of the received datastream if its date is before the date obtained by function _getDailyResetDate_",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getdailycountervaluefrommessagedatastream-incvalue"
    },
    {
      "id": "getDailyCounterValueFromMessageWithReset",
      "internal": true,
      "kind": "function",
      "name": "getDailyCounterValueFromMessageWithReset",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Value to increment.",
          "name": "incValue",
          "type": "Number"
        }
      ],
      "signature": "getDailyCounterValueFromMessageWithReset(datastream, incValue)",
      "summary": "Same as _getDailyCounterValueFromMessage_ but returning object of _getCounterValueWithReset_",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getdailycountervaluefrommessagewithresetdatastream-incvalue"
    },
    {
      "id": "getDistance",
      "internal": true,
      "kind": "function",
      "name": "getDistance",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Latitude from first coordinate",
          "name": "lat1",
          "type": "Number"
        },
        {
          "description": "Longitude from first coordinate",
          "name": "long1",
          "type": "Number"
        },
        {
          "description": "Latitude from second coordinate",
          "name": "lat2",
          "type": "Number"
        },
        {
          "description": "Longitude from second coordinate",
          "name": "long2",
          "type": "Number"
        }
      ],
      "signature": "getDistance(lat1, long1, lat2, long2)",
      "summary": "\u003e **Deprecated:** Use location object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getdistancelat1-long1-lat2-long2"
    },
    {
      "id": "isInsertAction",
      "internal": true,
      "kind": "function",
      "name": "isInsertAction",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "isInsertAction()",
      "summary": "Obtains if message is from insert provision action",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#isinsertaction"
    },
    {
      "id": "isUpdateAction",
      "internal": true,
      "kind": "function",
      "name": "isUpdateAction",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "isUpdateAction()",
      "summary": "Obtains if message is from update provision action",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#isupdateaction"
    },
    {
      "id": "isPatchAction",
      "internal": true,
      "kind": "function",
      "name": "isPatchAction",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "isPatchAction()",
      "summary": "Obtains if message is from patch provision action",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#ispatchaction"
    },
    {
      "examples": [
        {
          "code": "var coordinates = [10, 20];\nvar areas = getAreas(coordinates);",
          "language": "javascript"
        }
      ],
      "id": "getAreas",
      "internal": true,
      "kind": "function",
      "name": "getAreas",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Array of 2 double elements, first longitude and second latitude",
          "name": "coordinates",
          "type": "Array"
        }
      ],
      "signature": "getAreas(coordinates)",
      "summary": "\u003e **Deprecated:** Use location object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getareascoordinates"
    },
    {
      "examples": [
        {
          "code": "var coordinates = [[10, 20],[20, 40]];\nvar sorted = true;\nvar areas = getSortedAreas(coordinates, sorted);",
          "language": "javascript"
        }
      ],
      "id": "getSortedAreas",
      "internal": true,
      "kind": "function",
      "name": "getSortedAreas",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Array of 2 double elements, first longitude and second latitude",
          "name": "coordinates",
          "type": "Array"
        },
        {
          "description": "Sorted array or not",
          "name": "sorted",
          "type": "Boolean"
        }
      ],
      "signature": "getSortedAreas(coordinates, sorted)",
      "summary": "\u003e **Deprecated:** Use location object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#getsortedareascoordinates-sorted"
    },
    {
      "examples": [
        {
          "code": "var array1 = [1, 2, 3];\nvar array2 = [1, 2, 3];\nvar equals = arrayEquals(array1, array2);",
          "language": "javascript"
        }
      ],
      "id": "arrayEquals",
      "internal": true,
      "kind": "function",
      "name": "arrayEquals",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "First array",
          "name": "array1",
          "type": "Array"
        },
        {
          "description": "Second array",
          "name": "array2",
          "type": "Array"
        }
      ],
      "signature": "arrayEquals(array1, array2)",
      "summary": "Check if 2 arrays are equals",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#arrayequalsarray1-array2"
    },
    {
      "examples": [
        {
          "code": "var log = {key: 'value'};\nprintLog(log);",
          "language": "javascript"
        }
      ],
      "id": "printLog",
      "internal": true,
      "kind": "function",
      "name": "printLog",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Object to show in traces",
          "name": "log",
          "type": "Object"
        }
      ],
      "signature": "printLog(log)",
      "summary": "\u003e **Deprecated:** Use logger object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#printloglog"
    },
    {
      "id": "openAlarmWithExtraInfo",
      "internal": true,
      "kind": "function",
      "name": "openAlarmWithExtraInfo",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "openAlarmWithExtraInfo(subEntityIdentifier, alarmName, ruleName, severity, priority, alarmDescription, extra_info)",
      "summary": "\u003e **Deprecated:** Use alarm object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#openalarmwithextrainfosubentityidentifier-alarmname-rulename-severity-priority-alarmdescription-extra_info"
    },
    {
      "id": "collectDatastreams",
      "internal": true,
      "kind": "function",
      "name": "collectDatastreams",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "collectDatastreams(jsMapValues, jsCommsValues, directMode, reinject)",
      "summary": "\u003e **Deprecated:** Use collect object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#collectdatastreamsjsmapvalues-jscommsvalues-directmode-reinject"
    },
    {
      "id": "collectDataPoints",
      "internal": true,
      "kind": "function",
      "name": "collectDataPoints",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "collectDataPoints(resourceType, identifier, mapValues, commsValues, ttl)",
      "summary": "\u003e **Deprecated:** Use collect object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#collectdatapointsresourcetype-identifier-mapvalues-commsvalues-ttl"
    },
    {
      "examples": [
        {
          "code": "cancelJobGroup('highTemperatureRule');",
          "language": "javascript"
        }
      ],
      "id": "cancelJobGroup",
      "internal": true,
      "kind": "function",
      "name": "cancelJobGroup",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "cancelJobGroup(ruleName)",
      "summary": "\u003e **Deprecated:** Use utils object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#canceljobgrouprulename"
    },
    {
      "examples": [
        {
          "code": "encryptString('text to encrypt', 'provision.data.encrypt', 'organization_name');",
          "language": "javascript"
        }
      ],
      "id": "encryptString",
      "internal": true,
      "kind": "function",
      "name": "encryptString",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Value to encrypt",
          "name": "originalValue",
          "type": "String"
        },
        {
          "description": "Datastream of provision type, of datamodel that define this value",
          "name": "datastreamId",
          "type": "String"
        },
        {
          "description": "Organization name to which the datamodel belongs",
          "name": "organization",
          "type": "String"
        }
      ],
      "signature": "encryptString(originalValue, datastreamId, organization)",
      "summary": "\u003e **Deprecated:** Use utils object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#encryptstringoriginalvalue-datastreamid-organization"
    },
    {
      "examples": [
        {
          "code": "decryptString('text to decrypt', 'provision.data.encrypt', 'organization_name');",
          "language": "javascript"
        }
      ],
      "id": "decryptString",
      "internal": true,
      "kind": "function",
      "name": "decryptString",
      "namespace": "",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Value to decrypt",
          "name": "encryptedValue",
          "type": "String"
        },
        {
          "description": "Datastream of provision type, of datamodel that define this value",
          "name": "datastreamId",
          "type": "String"
        },
        {
          "description": "Organization name to which the datamodel belongs",
          "name": "organization",
          "type": "String"
        }
      ],
      "signature": "decryptString(encryptedValue, datastreamId, organization)",
      "summary": "\u003e **Deprecated:** Use utils object functions instead.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#decryptstringencryptedvalue-datastreamid-organization"
    },
    {
      "id": "collect.datastreams",
      "internal": true,
      "kind": "function",
      "name": "datastreams",
      "namespace": "collect",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "collect.datastreams(datastreamConfig)",
      "summary": "Collect values in received entity",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#collectdatastreamsdatastreamconfig"
    },
    {
      "id": "collect.datapoints",
      "internal": true,
      "kind": "function",
      "name": "datapoints",
      "namespace": "collect",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "collect.datapoints(datapointConfig)",
      "summary": "Collect datapoints in received entity",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#collectdatapointsdatapointconfig"
    },
    {
      "examples": [
        {
          "code": "var coordinates = [[10, 20], [20, 40]];\nvar areas = location.getAreas(coordinates);",
          "language": "javascript"
        }
      ],
      "id": "location.getAreas",
      "internal": true,
      "kind": "function",
      "name": "getAreas",
      "namespace": "location",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Array of 2 double elements, first longitude and second latitude",
          "name": "coordinates",
          "type": "Array"
        }
      ],
      "signature": "location.getAreas(coordinates)",
      "summary": "Get provisioned areas in OpenGate to selected coordinate.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#locationgetareascoordinates"
    },
    {
      "examples": [
        {
          "code": "var coordinates = [[10, 20], [20, 40]];\nvar sorted = true;\nvar areas = location.getSortedAreas(coordinates, sorted);",
          "language": "javascript"
        }
      ],
      "id": "location.getSortedAreas",
      "internal": true,
      "kind": "function",
      "name": "getSortedAreas",
      "namespace": "location",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Array of 2 double elements, first longitude and second latitude",
          "name": "coordinates",
          "type": "Array"
        },
        {
          "description": "Sorted array or not",
          "name": "sorted",
          "type": "Boolean"
        }
      ],
      "signature": "location.getSortedAreas(coordinates, sorted)",
      "summary": "Same as getAreas but is possible get sorted by ordered field.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#locationgetsortedareascoordinates-sorted"
    },
    {
      "examples": [
        {
          "code": "var lat1 = 10;\nvar long1 = 20;\nvar lat2 = 30;\nvar long2 = 40;\nvar distance = location.getDistance(lat1, long1, lat2, long2);",
          "language": "javascript"
        }
      ],
      "id": "location.getDistance",
      "internal": true,
      "kind": "function",
      "name": "getDistance",
      "namespace": "location",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "latitude from first coordinate",
          "name": "lat1",
          "type": "Double"
        },
        {
          "description": "longitude from first coordinate",
          "name": "long1",
          "type": "Double"
        },
        {
          "description": "latitude from second coordinate",
          "name": "lat2",
          "type": "Double"
        },
        {
          "description": "longitude from second coordinate",
          "name": "long2",
          "type": "Double"
        }
      ],
      "signature": "location.getDistance(lat1, long1, lat2, long2)",
      "summary": "Get distance between 2 coordinates in meters.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#locationgetdistancelat1-long1-lat2-long2"
    },
    {
      "examples": [
        {
          "code": "var datastreamId = \"datastreamId\";\nvar subEntityIdentifier = \"subEntityIdentifier\";\nvar datastream = utils.getDatastreamByIdFromDB(datastreamId, subEntityIdentifier);",
          "language": "javascript"
        }
      ],
      "id": "utils.getDatastreamByIdFromDB",
      "internal": true,
      "kind": "function",
      "name": "getDatastreamByIdFromDB",
      "namespace": "utils",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "params": [
        {
          "description": "Datastream identifier",
          "name": "datastreamId",
          "type": "String"
        },
        {
          "description": "SubEntity identifier",
          "name": "subEntityIdentifier",
          "type": "String"
        }
      ],
      "signature": "utils.getDatastreamByIdFromDB(datastreamId, subEntityIdentifier)",
      "summary": "Get datastream reading from DB.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#utilsgetdatastreambyidfromdbdatastreamid-subentityidentifier"
    },
    {
      "examples": [
        {
          "code": "http.client.uri = \"https://remotehost/uri\";\nhttp.client.headers = {'X-Api-Key':'apikey'};\nhttp.client.body = {'operation_name':'custom_operation_request'};\nvar httpResp = http.client.post();",
          "language": "javascript"
        }
      ],
      "id": "http.client.post",
      "internal": true,
      "kind": "function",
      "name": "post",
      "namespace": "http.client",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "http.client.post()",
      "summary": "Send POST http method. Property method is overridden by this function.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#httpclientpost"
    },
    {
      "examples": [
        {
          "code": "http.client.uri = \"https://remotehost/uri\";\nhttp.client.headers = {'X-Api-Key':'apikey'};\nhttp.client.body = {'operation_name':'custom_operation_request'};\nvar httpResp = http.client.put();",
          "language": "javascript"
        }
      ],
      "id": "http.client.put",
      "internal": true,
      "kind": "function",
      "name": "put",
      "namespace": "http.client",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "http.client.put()",
      "summary": "Send PUT http method. Property method is overridden by this function.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#httpclientput"
    },
    {
      "examples": [
        {
          "code": "http.client.uri = \"https://remotehost/uri\";\nhttp.client.headers = {'X-Api-Key':'apikey'};\nvar httpResp = http.client.get();",
          "language": "javascript"
        }
      ],
      "id": "http.client.get",
      "internal": true,
      "kind": "function",
      "name": "get",
      "namespace": "http.client",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "http.client.get()",
      "summary": "Send GET http method.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#httpclientget"
    },
    {
      "examples": [
        {
          "code": "http.client.uri = \"https://remotehost/uri\";\nhttp.client.headers = {'X-Api-Key':'apikey'};\nvar httpResp = http.client.delete();",
          "language": "javascript"
        }
      ],
      "id": "http.client.delete",
      "internal": true,
      "kind": "function",
      "name": "delete",
      "namespace": "http.client",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "http.client.delete()",
      "summary": "Send DELETE http method. Property method is overridden by this function.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#httpclientdelete"
    },
    {
      "examples": [
        {
          "code": "http.client.uri = \"https://remotehost/uri\";\nhttp.client.headers = {'X-Api-Key':'apikey'};\nhttp.client.body = {'operation_name':'custom_operation_request'};\nvar httpResp = http.client.patch();",
          "language": "javascript"
        }
      ],
      "id": "http.client.patch",
      "internal": true,
      "kind": "function",
      "name": "patch",
      "namespace": "http.client",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "http.client.patch()",
      "summary": "Send PATCH http method. Property method is overridden by this function.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#httpclientpatch"
    },
    {
      "examples": [
        {
          "code": "http.client.method = \"GET\";\nhttp.client.uri = \"https://remotehost/uri\";\nhttp.client.headers = {'X-Api-Key':'apikey'};\nhttp.client.body = {'operation_name':'custom_operation_request'};\nvar httpResp = http.client.request();",
          "language": "javascript"
        }
      ],
      "id": "http.client.request",
      "internal": true,
      "kind": "function",
      "name": "request",
      "namespace": "http.client",
      "page": {
        "title": "Internal JS Functions",
        "url": "api/management/organizations/channels/rules/rules_internal_js_functions/"
      },
      "signature": "http.client.request()",
      "summary": "Send an HTTP request with the method defined in the method property, which must be set before calling this function.",
      "url": "api/management/organizations/channels/rules/rules_internal_js_functions/#httpclientrequest"
    }
  ],
  "generatedAt": "2026-08-17T11:35:12Z",
  "internal": true,
  "platformVersion": "20.5.1-SNAPSHOT",
  "schemaVersion": "1.0"
}