Skip to content

Instantly share code, notes, and snippets.

@chasers
Last active May 16, 2019 21:04
Show Gist options
  • Select an option

  • Save chasers/16495c0c338addc525ca24642400e82e to your computer and use it in GitHub Desktop.

Select an option

Save chasers/16495c0c338addc525ca24642400e82e to your computer and use it in GitHub Desktop.
{
"$schema":"http://json.schemastore.org/install",
"workers":[
{
"src":"./build/worker.js"
}
],
"hooks":[
{
"endpoint":"http://dev.chasegranberry.net/webhooks/cloudflare/v1",
"events":[
"option-change:account",
"oauth-login"
],
"block":true,
"authenticate":[
"account"
],
"failure":{
"action":"notify",
"message":"There was an error communicating with Logflare."
}
}
],
"preview":{
"hide":true
},
"options":{
"properties":{
"account":{
"title":"Logflare Account",
"type":"object",
"format":"account",
"services":[
"logflare-dev"
],
"required":true,
"order":1
},
"source":{
"showIf":{
"account":{
"op":"!=",
"value":""
}
},
"title":"Source",
"type":"string",
"description":"Which source should we send logs to?",
"order":2,
"required":true,
"enum":[
"signin"
],
"enumNames":{
"signin":"Sign in to select a source"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment