Skip to content

Instantly share code, notes, and snippets.

@donbowman
Last active October 5, 2022 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donbowman/87cfad5c98c4a435124b4f806aa23c93 to your computer and use it in GitHub Desktop.
Save donbowman/87cfad5c98c4a435124b4f806aa23c93 to your computer and use it in GitHub Desktop.
stackoverflow gcp pubsub bigquery
[
{
"name": "subscription_name",
"type": "STRING"
},
{
"name": "messageid",
"type": "STRING"
},
{
"name": "publish_time",
"type": "TIMESTAMP"
},
{
"name": "attributes",
"type": "STRING"
},
{
"name": "data",
"type": "record",
"fields": [
{
"name": "domain",
"type": "STRING"
},
{
"name": "grade",
"type": "STRING"
},
{
"name": "host",
"type": "STRING"
},
{
"name": "likelihood_indicator",
"type": "STRING"
},
{
"name": "response_headers",
"type": "record",
"mode": "repeated",
"fields": [
{
"name": "header",
"type": "STRING"
},
{
"name": "value",
"type": "STRING"
}
]
}
]
}
]
{
"name": "data",
"type": "record",
"fields": [
{
"name": "domain",
"type": "string"
},
{
"name": "grade",
"type": "string"
},
{
"name": "host",
"type": "string"
},
{
"name": "likelihood_indicator",
"type": "string"
},
{
"name": "response_headers",
"type": {
"type": "array",
"items": [
{
"name": "header_value",
"type": "record",
"fields": [
{ "name": "header", "type": "string" },
{ "name": "value", "type": "string" }
]
}
]
}
}
]
}
$ gcloud pubsub topics describe projects/agilicus/topics/check-me.httpobs
name: projects/agilicus/topics/check-me.httpobs
schemaSettings:
encoding: JSON
schema: projects/agilicus/schemas/check-me.httpobs
$ gcloud pubsub subscriptions list
Listed 0 items.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment