GrafanaSmtpSettings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Email server settings. https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/#smtp
public class GrafanaSmtpSettings : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Grafana.Models.GrafanaSmtpSettings>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Grafana.Models.GrafanaSmtpSettings>
type GrafanaSmtpSettings = class
interface IJsonModel<GrafanaSmtpSettings>
interface IPersistableModel<GrafanaSmtpSettings>
Public Class GrafanaSmtpSettings
Implements IJsonModel(Of GrafanaSmtpSettings), IPersistableModel(Of GrafanaSmtpSettings)
- Inheritance
-
GrafanaSmtpSettings
- Implements
Constructors
GrafanaSmtpSettings() |
Initializes a new instance of GrafanaSmtpSettings. |
Properties
FromAddress |
Address used when sending out emails https://pkg.go.dev/net/mail#Address |
FromName |
Name to be used when sending out emails. Default is "Azure Managed Grafana Notification" https://pkg.go.dev/net/mail#Address |
Host |
SMTP server hostname with port, e.g. test.email.net:587. |
IsEnabled |
Enable this to allow Grafana to send email. Default is false. |
Password |
Password of SMTP auth. If the password contains # or ;, then you have to wrap it with triple quotes. |
SkipVerify |
Verify SSL for SMTP server. Default is false https://pkg.go.dev/crypto/tls#Config |
StartTLSPolicy |
The StartTLSPolicy setting of the SMTP configuration https://pkg.go.dev/github.com/go-mail/mail#StartTLSPolicy |
User |
User of SMTP auth. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<GrafanaSmtpSettings>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<GrafanaSmtpSettings>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<GrafanaSmtpSettings>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<GrafanaSmtpSettings>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<GrafanaSmtpSettings>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |