public sealed class DiagnosticConfig : IMessage<DiagnosticConfig>, IEquatable<DiagnosticConfig>, IDeepCloneable<DiagnosticConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Notebooks v2 API class DiagnosticConfig.
Defines flags that are used to run the diagnostic tool
Optional. Defines the relative storage path in the Cloud Storage bucket
where the diagnostic logs will be written: Default path will be the root
directory of the Cloud Storage bucket
(gs://$GCS_BUCKET/$DATE_$TIME.tar.gz) Example of full path where Log file
will be written: gs://$GCS_BUCKET/$RELATIVE_PATH/
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDiagnosticConfig\u003c/code\u003e class in the Notebooks v2 API is used to define settings for running a diagnostic tool.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eDiagnosticConfig\u003c/code\u003e class is 1.2.0, with previous versions including 1.1.0 and 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eKey properties within \u003ccode\u003eDiagnosticConfig\u003c/code\u003e include flags to enable copying home files (\u003ccode\u003eEnableCopyHomeFilesFlag\u003c/code\u003e), capturing network packets (\u003ccode\u003eEnablePacketCaptureFlag\u003c/code\u003e), and repairing the service (\u003ccode\u003eEnableRepairFlag\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGcsBucket\u003c/code\u003e property, which is a required field, specifies the Cloud Storage bucket location for storing diagnostic logs, with a specific format needed.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003eRelativePath\u003c/code\u003e property allows for customizing the storage path within the Cloud Storage bucket for log files, deviating from the default root directory.\u003c/p\u003e\n"]]],[],null,["# Notebooks v2 API - Class DiagnosticConfig (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.DiagnosticConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.1.0/Google.Cloud.Notebooks.V2.DiagnosticConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/1.0.0/Google.Cloud.Notebooks.V2.DiagnosticConfig) \n\n public sealed class DiagnosticConfig : IMessage\u003cDiagnosticConfig\u003e, IEquatable\u003cDiagnosticConfig\u003e, IDeepCloneable\u003cDiagnosticConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Notebooks v2 API class DiagnosticConfig.\n\nDefines flags that are used to run the diagnostic tool \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DiagnosticConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DiagnosticConfig](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.DiagnosticConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DiagnosticConfig](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.DiagnosticConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DiagnosticConfig](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2.DiagnosticConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Notebooks.V2](/dotnet/docs/reference/Google.Cloud.Notebooks.V2/latest/Google.Cloud.Notebooks.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Notebooks.V2.dll\n\nConstructors\n------------\n\n### DiagnosticConfig()\n\n public DiagnosticConfig()\n\n### DiagnosticConfig(DiagnosticConfig)\n\n public DiagnosticConfig(DiagnosticConfig other)\n\nProperties\n----------\n\n### EnableCopyHomeFilesFlag\n\n public bool EnableCopyHomeFilesFlag { get; set; }\n\nOptional. Enables flag to copy all `/home/jupyter` folder contents\n\n### EnablePacketCaptureFlag\n\n public bool EnablePacketCaptureFlag { get; set; }\n\nOptional. Enables flag to capture packets from the instance for 30 seconds\n\n### EnableRepairFlag\n\n public bool EnableRepairFlag { get; set; }\n\nOptional. Enables flag to repair service for instance\n\n### GcsBucket\n\n public string GcsBucket { get; set; }\n\nRequired. User Cloud Storage bucket location (REQUIRED).\nMust be formatted with path prefix (`gs://$GCS_BUCKET`).\n\nPermissions:\nUser Managed Notebooks:\n\n- storage.buckets.writer: Must be given to the project's service account attached to VM. Google Managed Notebooks:\n- storage.buckets.writer: Must be given to the project's service account or user credentials attached to VM depending on authentication mode.\n\nCloud Storage bucket Log file will be written to\n`gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`\n\n### RelativePath\n\n public string RelativePath { get; set; }\n\nOptional. Defines the relative storage path in the Cloud Storage bucket\nwhere the diagnostic logs will be written: Default path will be the root\ndirectory of the Cloud Storage bucket\n(`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where Log file\nwill be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/`"]]