createContextProperty()

in alexa/skills/smarthome/AlexaResponse.js [106:114]


    createContextProperty(opts) {
      return {
        'namespace': this.checkValue(opts.namespace, "Alexa.EndpointHealth"),
        'name': this.checkValue(opts.name, "connectivity"),
        'value': this.checkValue(opts.value, {"value": "OK"}),
        'timeOfSample': new Date().toISOString(),
        'uncertaintyInMilliseconds': this.checkValue(opts.uncertaintyInMilliseconds, 0)
      };
    }