Take log message and parse as JSON (create new column jsonobj
):
parse "*" as jsonobj
Take new jsonobj
column and create a new column for the specified key in the JSON:
json field=jsonobj "my-obj-key"
#!/bin/bash | |
set -eux | |
docker rmi cache test || true | |
docker build -t cache --label "ref=12345" - <<EOF | |
FROM alpine | |
ENV VAR value | |
EOF |
Take log message and parse as JSON (create new column jsonobj
):
parse "*" as jsonobj
Take new jsonobj
column and create a new column for the specified key in the JSON:
json field=jsonobj "my-obj-key"
try { | |
module.$localStorage[key] = serializer(value); | |
} catch(e) { | |
if(e.name === 'QUOTA_EXCEEDED_ERR') { | |
// reset to make space | |
module.reset(); | |
module.$localStorage[key] = serializer(value); | |
} else { | |
module.localStorageAvailable = false; | |
$log.error("Local storage write failure - " + e); |
// overriding sync to use local storage when possible | |
sync : function(method, model, options){ | |
var key, now, timestamp, refresh; | |
if(method === 'read' && this.constants.isStoredInLocalStorage) { | |
// only override sync if it is a fetch('read') request | |
key = this.getKey(); | |
if(key) { | |
now = new Date().getTime(); | |
timestamp = $storage.get(key + ":timestamp"); | |
refresh = options.forceRefresh; |