Skip to content

Instantly share code, notes, and snippets.

@chasers
Created May 16, 2019 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chasers/92fe9bd58a3cdab74cee2f3043951e95 to your computer and use it in GitHub Desktop.
Save chasers/92fe9bd58a3cdab74cee2f3043951e95 to your computer and use it in GitHub Desktop.
%{
"install" => %{
"active" => true,
"amount" => 0,
"appId" => "local",
"created" => nil,
"deactivatedAt" => nil,
"deleted" => false,
"id" => "FJj9ri2UtwIv",
"installerUserId" => "",
"links" => [
%{
"description" => "Signed in successfully! See your logs at your Logflare dashboard.",
"href" => "https://logflare.app/dashboard",
"title" => "Logflare dashboard"
}
],
"metadata" => %{"userId" => "15bb3b1204d40e15413d371825e57ee6"},
"options" => %{
"account" => %{"accountId" => "cImInbAfXWH0", "service" => "logflare-dev"},
"logflare" => %{"api_key" => "EdR8jNi258ji"},
"metadata" => [
%{"field" => "rMeth"},
%{"field" => "statusCode"},
%{"field" => "cIP"},
%{"field" => "cfRay"},
%{"field" => "rUrl"},
%{"field" => "uAgent"}
],
"source" => :"743a50f8-8b59-46a3-bd53-3ba104432857"
},
"pastDue" => false,
"productId" => "",
"refundedAt" => nil,
"schema" => %{
"properties" => %{
"account" => %{
"_show" => true,
"format" => "account",
"order" => 1,
"productDefinitions" => [],
"properties" => %{},
"required" => true,
"services" => ["logflare-dev"],
"title" => "Logflare Account",
"type" => "object"
},
"metadata" => %{
"description" => "Customise your log messages. Add or remove fields and set the order.",
"items" => %{
"properties" => %{
"field" => %{
"default" => "statusCode",
"enum" => ["rMeth", "statusCode", "rUrl", "cfRay", "cIP",
"uAgent", "cfCacheStatus", "contentLength", "contentType",
"responseConnection", "requestConnection", "cacheControl",
"acceptRanges", "expectCt", "expires", "lastModified", "vary",
"server", "etag", "date", "transferEncoding"],
"enumNames" => %{
"acceptRanges" => "Accept Ranges",
"cIP" => "Connecting IP",
"cacheControl" => "Cache Control",
"cfCacheStatus" => "Cache Status",
"cfRay" => "Ray ID",
"contentLength" => "Content Length",
"contentType" => "Content Type",
"date" => "Date",
"etag" => "Etag",
"expectCt" => "Expect CT",
"expires" => "Expires",
"lastModified" => "Last Modified",
"rMeth" => "Request Method",
"rUrl" => "Request URL",
"requestConnection" => "Request Connection",
"responseConnection" => "Response Connection",
"server" => "Server",
"statusCode" => "Status Code",
"transferEncoding" => "Transfer Encoding",
"uAgent" => "User Agent",
"vary" => "Vary"
},
"title" => "Field",
"type" => "string"
}
},
"type" => "object"
},
"title" => "Request Metadata",
"type" => "array"
},
"source" => %{
"_show" => true,
"default" => "signin",
"description" => "Which source should we send logs to?",
"enum" => [:"743a50f8-8b59-46a3-bd53-3ba104432857",
:"a4fd0dcd-d4f4-4636-a9f2-49c3522797d6",
:"9f712b1c-ad8d-44f2-b64d-bdeceb883fab"],
"enumNames" => %{
"743a50f8-8b59-46a3-bd53-3ba104432857": "Loadfest",
"9f712b1c-ad8d-44f2-b64d-bdeceb883fab": "list_of_maps",
"a4fd0dcd-d4f4-4636-a9f2-49c3522797d6": "yeti"
},
"order" => 2,
"productDefinitions" => [],
"required" => true,
"showIf" => %{"account" => %{"op" => "!=", "value" => ""}},
"title" => "Source",
"type" => "string"
}
},
"type" => "object"
},
"siteId" => "preview",
"subscriptionId" => "",
"versionTag" => "evlYM4DA8H_X",
"workers" => [%{"src" => "./build/worker.js"}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment