Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created August 10, 2016 16:53

Revisions

  1. Peter Bengtsson created this gist Aug 10, 2016.
    112 changes: 112 additions & 0 deletions structs.scala
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,112 @@
    StructType(List(
    StructField("additional_minidumps", ArrayType(StringType, containsNull = false), nullable = true),
    StructField("addons", ArrayType(StringType, containsNull = false), nullable = true),
    StructField("addons_checked", BooleanType, nullable = false),
    StructField("address", StringType, nullable = true),
    StructField("app_notes", StringType, nullable = true),
    StructField("build_id", StringType, nullable = true),
    StructField("classifications", StructType(List(
    StructField("jit", StructType(List(
    StructField("category", StringType, nullable = true),
    StructField("category_return_code", StringType, nullable = true)
    )), nullable = true),
    StructField("skunk_works", StructType(List(
    StructField("classification", StringType, nullable = true),
    StructField("classification_data", StringType, nullable = true),
    StructField("classification_version", StringType, nullable = true)
    )), nullable = true),
    StructField("support", StructType(List(
    StructField("classification", StringType, nullable = true),
    StructField("classification_data", StringType, nullable = true),
    StructField("classification_version", StringType, nullable = true)
    )), nullable = true)
    )), nullable = true),
    StructField("cpu_arch", StringType, nullable = true),
    StructField("cpu_info", StringType, nullable = true),
    StructField("crash_id", StringType, nullable = true),
    StructField("date", StringType, nullable = true),
    StructField("flash_version", StringType, nullable = true),
    StructField("hang_type", IntegerType, nullable = true),
    StructField("install_age", IntegerType, nullable = true),
    StructField("java_stack_trace", StringType, nullable = true),
    StructField("json_dump", StructType(List(
    StructField("crash_info", StructType(List(
    StructField("address", StringType, nullable = true),
    StructField("crashing_thread", IntegerType, nullable = true),
    StructField("type", StringType, nullable = true)
    )), nullable = true),
    StructField("crashing_thread", StructType(List(
    StructField("frames", ArrayType(StructType(List(
    StructField("file", StringType, nullable = true),
    StructField("frame", IntegerType, nullable = true),
    StructField("function", StringType, nullable = true),
    StructField("function_offset", StringType, nullable = true),
    StructField("line", IntegerType, nullable = true),
    StructField("module", StringType, nullable = true),
    StructField("module_offset", StringType, nullable = true),
    StructField("offset", StringType, nullable = true)
    ))), nullable = true),
    StructField("threads_index", IntegerType, nullable = true),
    StructField("total_frames", IntegerType, nullable = true)
    )), nullable = true),
    StructField("largest_free_vm_block", StringType, nullable = true),
    StructField("main_module", IntegerType, nullable = true),
    StructField("status", StringType, nullable = true),
    StructField("system_info", StructType(List(
    StructField("cpu_arch", StringType, nullable = true),
    StructField("cpu_count", IntegerType, nullable = true),
    StructField("cpu_info", StringType, nullable = true),
    StructField("os", StringType, nullable = true),
    StructField("os_ver", StringType, nullable = true)
    )), nullable = true),
    StructField("thread_count", IntegerType, nullable = true),
    StructField("threads", ArrayType(StructType(List(
    StructField("frame_count", IntegerType, nullable = true),
    StructField("frames", ArrayType(StructType(List(
    StructField("file", StringType, nullable = true),
    StructField("frame", IntegerType, nullable = true),
    StructField("function", StringType, nullable = true),
    StructField("function_offset", StringType, nullable = true),
    StructField("line", IntegerType, nullable = true),
    StructField("module", StringType, nullable = true),
    StructField("module_offset", StringType, nullable = true),
    StructField("offset", StringType, nullable = true)
    ))), nullable = true)
    ))), nullable = true),
    StructField("tiny_block_size", StringType, nullable = true),
    StructField("write_combine_size", StringType, nullable = true)
    )), nullable = true),
    StructField("last_crash", IntegerType, nullable = true),
    StructField("memory_report", StructType(List(
    StructField("hasMozMallocUsableSize", BooleanType, nullable = false),
    StructField("reports", ArrayType(StructType(List(
    StructField("amount", IntegerType, nullable = true),
    StructField("description", StringType, nullable = true),
    StructField("kind", IntegerType, nullable = true),
    StructField("path", StringType, nullable = true),
    StructField("process", StringType, nullable = true),
    StructField("units", IntegerType, nullable = true)
    ))), nullable = true),
    StructField("version", IntegerType, nullable = true)
    )), nullable = true),
    StructField("platform", StringType, nullable = true),
    StructField("platform_pretty_version", StringType, nullable = true),
    StructField("platform_version", StringType, nullable = true),
    StructField("plugin_filename", StringType, nullable = true),
    StructField("plugin_name", StringType, nullable = true),
    StructField("plugin_version", StringType, nullable = true),
    StructField("process_type", StringType, nullable = true),
    StructField("processor_notes", StringType, nullable = true),
    StructField("product", StringType, nullable = true),
    StructField("productid", StringType, nullable = true),
    StructField("proto_signature", StringType, nullable = true),
    StructField("reason", StringType, nullable = true),
    StructField("release_channel", StringType, nullable = true),
    StructField("signature", StringType, nullable = true),
    StructField("topmost_filenames", StringType, nullable = true),
    StructField("uptime", IntegerType, nullable = true),
    StructField("user_comments", StringType, nullable = true),
    StructField("uuid", StringType, nullable = true),
    StructField("version", StringType, nullable = true),
    StructField("winsock_lsp", StringType, nullable = true)
    ))