public sealed class DiagnosticConfig : IMessage<DiagnosticConfig>, IEquatable<DiagnosticConfig>, IDeepCloneable<DiagnosticConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the AI Platform Notebooks v1 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-09-09 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eDiagnosticConfig\u003c/code\u003e class within the Google Cloud AI Platform Notebooks v1 API, specifically for the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDiagnosticConfig\u003c/code\u003e class is used to configure and manage settings for the diagnostic tool, including options for copying home files, capturing network packets, and repairing the service for the instance.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eDiagnosticConfig\u003c/code\u003e class is 2.5.0, and several earlier versions, including 2.4.0, 2.3.0, 2.2.0, 2.1.0, 2.0.0, and 1.0.0-beta04, are also available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDiagnosticConfig\u003c/code\u003e class requires users to define a Cloud Storage bucket location using the \u003ccode\u003eGcsBucket\u003c/code\u003e property, where diagnostic logs will be stored, and grants users optional control of other storage characteristics with the \u003ccode\u003eRelativePath\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCopyHomeFilesFlagEnabled\u003c/code\u003e, \u003ccode\u003ePacketCaptureFlagEnabled\u003c/code\u003e, and \u003ccode\u003eRepairFlagEnabled\u003c/code\u003e properties are boolean flags that enable respective diagnostic actions related to copying files, capturing packets, or repairing the instance service.\u003c/p\u003e\n"]]],[],null,["# AI Platform Notebooks v1 API - Class DiagnosticConfig (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.DiagnosticConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.4.0/Google.Cloud.Notebooks.V1.DiagnosticConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.3.0/Google.Cloud.Notebooks.V1.DiagnosticConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.2.0/Google.Cloud.Notebooks.V1.DiagnosticConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.1.0/Google.Cloud.Notebooks.V1.DiagnosticConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/2.0.0/Google.Cloud.Notebooks.V1.DiagnosticConfig)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/1.0.0-beta04/Google.Cloud.Notebooks.V1.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 AI Platform Notebooks v1 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.V1/latest/Google.Cloud.Notebooks.V1.DiagnosticConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DiagnosticConfig](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.DiagnosticConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DiagnosticConfig](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1.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.V1](/dotnet/docs/reference/Google.Cloud.Notebooks.V1/latest/Google.Cloud.Notebooks.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Notebooks.V1.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### CopyHomeFilesFlagEnabled\n\n public bool CopyHomeFilesFlagEnabled { get; set; }\n\nOptional. Enables flag to copy all `/home/jupyter` folder contents\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### PacketCaptureFlagEnabled\n\n public bool PacketCaptureFlagEnabled { get; set; }\n\nOptional. Enables flag to capture packets from the instance for 30 seconds\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`)\nExample of full path where Log file will be written:\n`gs://$GCS_BUCKET/$RELATIVE_PATH/`\n\n### RepairFlagEnabled\n\n public bool RepairFlagEnabled { get; set; }\n\nOptional. Enables flag to repair service for instance"]]