<commit_before>/**
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

output "bucket_name" {
  value       = google_storage_bucket.ingest_bucket.name
  description = "The Cloud Storage bucket to ingest logs from external soruces"
}

output "bigquery_dataset_name" {
  value       = module.log_destination.resource_name
  description = "The BigQuery dataset name which the transferred log table is in"
}

output "bigquery_table_name" {
  value       = google_bigquery_table.bigquery_data_transfer_destination.table_id
  description = "The BigQuery table name for transferred logs"
}

output "cloud_run_url" {
  value       = google_cloud_run_service.example_website.status[0].url
  description = "The public URL on which the deployed example website is available"
}

output "datastudio_report_url_1" {
  value       = "https://datastudio.google.com/reporting/create?c.mode=edit&ds.connector=BIG_QUERY&ds.type=TABLE&ds.projectId=${var.project_id}&ds.datasetId=${module.log_destination.resource_name}&ds.tableId=${google_bigquery_table.bigquery_data_transfer_destination.table_id}"
  description = "The URL to create a new Data Studio report that queries the table for transferred logs"
}

output "datastudio_report_url_2" {
  value       = "https://datastudio.google.com/reporting/create?c.mode=edit&ds.connector=BIG_QUERY&ds.type=TABLE&ds.projectId=${var.project_id}&ds.datasetId=${module.log_destination.resource_name}&ds.tableId=run_googleapis_com_requests"
  description = "The URL to create a new Data Studio report that queries the table for transferred logs"
}
<commit_msg>[add] output for the dataset in the BigQuery UI<commit_after>/**
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

output "bucket_name" {
  value       = google_storage_bucket.ingest_bucket.name
  description = "The Cloud Storage bucket to ingest logs from external soruces"
}

output "bigquery_dataset_name" {
  value       = module.log_destination.resource_name
  description = "The BigQuery dataset name which the transferred log table is in"
}

output "bigquery_table_name" {
  value       = google_bigquery_table.bigquery_data_transfer_destination.table_id
  description = "The BigQuery table name for transferred logs"
}

output "bigquery_dataset_url" {
  value       = "https://console.cloud.google.com/bigquery?project=${var.project_id}&ws=!1m4!1m3!3m2!1s${var.project_id}!2s${module.log_destination.resource_name}"
  description = "The URL to the dataset in the BigQuery UI where you see the tables for logs stored"
}

output "cloud_run_url" {
  value       = google_cloud_run_service.example_website.status[0].url
  description = "The public URL on which the deployed example website is available"
}

output "datastudio_report_url_1" {
  value       = "https://datastudio.google.com/reporting/create?c.mode=edit&ds.connector=BIG_QUERY&ds.type=TABLE&ds.projectId=${var.project_id}&ds.datasetId=${module.log_destination.resource_name}&ds.tableId=${google_bigquery_table.bigquery_data_transfer_destination.table_id}"
  description = "The URL to create a new Data Studio report that queries the table for transferred logs"
}

output "datastudio_report_url_2" {
  value       = "https://datastudio.google.com/reporting/create?c.mode=edit&ds.connector=BIG_QUERY&ds.type=TABLE&ds.projectId=${var.project_id}&ds.datasetId=${module.log_destination.resource_name}&ds.tableId=run_googleapis_com_requests"
  description = "The URL to create a new Data Studio report that queries the table for transferred logs"
}

{'fraction_non_alphanumeric': 0.08810668998688238, 'fraction_numerical': 0.006558810668998688, 'mean_word_length': 4.865384615384615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6554971', 'n_tokens_mistral': 1329, 'n_tokens_neox': 1317, 'n_words': 398}