从Firebase到BigQuery的实时或每小时数据同步

时间:2018-05-09 14:41:10

标签: firebase google-cloud-platform google-bigquery firebase-analytics

我们正在使用firebase捕获应用程序上的事件。

我们已将其与BigQuery连接,以便firebase捕获的分析数据导出到BigQuery。

对我们来说唯一的问题是导出到BigQuery的数据在24小时内发生一次。我们希望每小时将数据导出到BigQuery。

我还没有找到在Firebase控制台上执行此操作的方法。

我想知道是否有办法确保从Firebase分析中每小时导出一次BigQuery。

1 个答案:

答案 0 :(得分:0)

function fA { $textbox2.Text = $localVar } $button2_Click = { $localVar = "set in `$button2_Click" $textbox1.Text = $localVar fA } . (Join-Path $PSScriptRoot 'Form1.designer.ps1') $textbox1.Text = "" $Form1.ShowDialog() 表是每24小时更新一次的数据。

如果您想获取接近实时的数据,请使用[void][System.Reflection.Assembly]::Load('System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') [void][System.Reflection.Assembly]::Load('System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089') $Form1 = New-Object -TypeName System.Windows.Forms.Form [System.Windows.Forms.Button]$button2 = $null [System.Windows.Forms.TextBox]$textBox1 = $null [System.Windows.Forms.TextBox]$textBox2 = $null [System.Windows.Forms.Label]$label1 = $null [System.Windows.Forms.Label]$label2 = $null [System.Windows.Forms.Button]$button1 = $null function InitializeComponent { $button2 = (New-Object -TypeName System.Windows.Forms.Button) $textBox1 = (New-Object -TypeName System.Windows.Forms.TextBox) $textBox2 = (New-Object -TypeName System.Windows.Forms.TextBox) $label1 = (New-Object -TypeName System.Windows.Forms.Label) $label2 = (New-Object -TypeName System.Windows.Forms.Label) $Form1.SuspendLayout() # #button2 # $button2.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]148,[System.Int32]12)) $button2.Name = [System.String]'button2' $button2.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]77,[System.Int32]36)) $button2.TabIndex = [System.Int32]0 $button2.Text = [System.String]'Test' $button2.UseVisualStyleBackColor = $true $button2.add_Click($button2_Click) # #textBox1 # $textBox1.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]67,[System.Int32]69)) $textBox1.Name = [System.String]'textBox1' $textBox1.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]106,[System.Int32]20)) $textBox1.TabIndex = [System.Int32]1 # #textBox2 # $textBox2.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]247,[System.Int32]69)) $textBox2.Name = [System.String]'textBox2' $textBox2.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]106,[System.Int32]20)) $textBox2.TabIndex = [System.Int32]2 # #label1 # $label1.AutoSize = $true $label1.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]12,[System.Int32]72)) $label1.Name = [System.String]'label1' $label1.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]47,[System.Int32]13)) $label1.TabIndex = [System.Int32]3 $label1.Text = [System.String]'textbox1' # #label2 # $label2.AutoSize = $true $label2.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]194,[System.Int32]72)) $label2.Name = [System.String]'label2' $label2.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]47,[System.Int32]13)) $label2.TabIndex = [System.Int32]4 $label2.Text = [System.String]'textbox2' # #Form1 # $Form1.ClientSize = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]374,[System.Int32]110)) $Form1.Controls.Add($label2) $Form1.Controls.Add($label1) $Form1.Controls.Add($textBox2) $Form1.Controls.Add($textBox1) $Form1.Controls.Add($button2) $Form1.Name = [System.String]'Form1' $Form1.ResumeLayout($false) $Form1.PerformLayout() Add-Member -InputObject $Form1 -Name base -Value $base -MemberType NoteProperty Add-Member -InputObject $Form1 -Name button2 -Value $button2 -MemberType NoteProperty Add-Member -InputObject $Form1 -Name textBox1 -Value $textBox1 -MemberType NoteProperty Add-Member -InputObject $Form1 -Name textBox2 -Value $textBox2 -MemberType NoteProperty Add-Member -InputObject $Form1 -Name label1 -Value $label1 -MemberType NoteProperty Add-Member -InputObject $Form1 -Name label2 -Value $label2 -MemberType NoteProperty Add-Member -InputObject $Form1 -Name button1 -Value $button1 -MemberType NoteProperty } . InitializeComponent

进一步阅读:https://firebase.googleblog.com/2016/08/real-time-exporting-of-analytics-data-into-bigquery.html