Freigeben über


NginxDiagnosticItem Class

Definition

A diagnostic is a message associated with an NGINX config. The Analyzer returns diagnostics with a level indicating the importance of the diagnostic with optional category.

public class NginxDiagnosticItem : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Nginx.Models.NginxDiagnosticItem>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Nginx.Models.NginxDiagnosticItem>
type NginxDiagnosticItem = class
    interface IJsonModel<NginxDiagnosticItem>
    interface IPersistableModel<NginxDiagnosticItem>
Public Class NginxDiagnosticItem
Implements IJsonModel(Of NginxDiagnosticItem), IPersistableModel(Of NginxDiagnosticItem)
Inheritance
NginxDiagnosticItem
Implements

Properties

Category

Category of warning like Best-practices, Recommendation, Security etc.

Description

Gets the description.

Directive

Gets the directive.

File

The filepath of the most relevant config file.

Id

Unique identifier for the diagnostic.

Level

Warning or Info.

Line

Gets the line.

Message

Gets the message.

Rule

Gets the rule.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<NginxDiagnosticItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<NginxDiagnosticItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<NginxDiagnosticItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<NginxDiagnosticItem>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<NginxDiagnosticItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to