GrafanaConfigurations Class

  • java.lang.Object
    • com.azure.resourcemanager.dashboard.models.GrafanaConfigurations

Implements

public final class GrafanaConfigurations
implements JsonSerializable<GrafanaConfigurations>

Server configurations of a Grafana instance.

Constructor Summary

Constructor Description
GrafanaConfigurations()

Creates an instance of GrafanaConfigurations class.

Method Summary

Modifier and Type Method and Description
static GrafanaConfigurations fromJson(JsonReader jsonReader)

Reads an instance of GrafanaConfigurations from the JsonReader.

Security security()

Get the security property: Grafana security settings.

Smtp smtp()

Get the smtp property: Email server settings.

Snapshots snapshots()

Get the snapshots property: Grafana Snapshots settings.

JsonWriter toJson(JsonWriter jsonWriter)
UnifiedAlertingScreenshots unifiedAlertingScreenshots()

Get the unifiedAlertingScreenshots property: Grafana Unified Alerting Screenshots settings.

Users users()

Get the users property: Grafana users settings.

GrafanaConfigurations withSecurity(Security security)

Set the security property: Grafana security settings.

GrafanaConfigurations withSmtp(Smtp smtp)

Set the smtp property: Email server settings.

GrafanaConfigurations withSnapshots(Snapshots snapshots)

Set the snapshots property: Grafana Snapshots settings.

GrafanaConfigurations withUnifiedAlertingScreenshots(UnifiedAlertingScreenshots unifiedAlertingScreenshots)

Set the unifiedAlertingScreenshots property: Grafana Unified Alerting Screenshots settings.

GrafanaConfigurations withUsers(Users users)

Set the users property: Grafana users settings.

Methods inherited from java.lang.Object

Constructor Details

GrafanaConfigurations

public GrafanaConfigurations()

Creates an instance of GrafanaConfigurations class.

Method Details

fromJson

public static GrafanaConfigurations fromJson(JsonReader jsonReader)

Reads an instance of GrafanaConfigurations from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GrafanaConfigurations if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the GrafanaConfigurations.

security

public Security security()

Get the security property: Grafana security settings.

Returns:

the security value.

smtp

public Smtp smtp()

Get the smtp property: Email server settings. https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/\#smtp.

Returns:

the smtp value.

snapshots

public Snapshots snapshots()

Get the snapshots property: Grafana Snapshots settings.

Returns:

the snapshots value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unifiedAlertingScreenshots

public UnifiedAlertingScreenshots unifiedAlertingScreenshots()

Get the unifiedAlertingScreenshots property: Grafana Unified Alerting Screenshots settings.

Returns:

the unifiedAlertingScreenshots value.

users

public Users users()

Get the users property: Grafana users settings.

Returns:

the users value.

withSecurity

public GrafanaConfigurations withSecurity(Security security)

Set the security property: Grafana security settings.

Parameters:

security - the security value to set.

Returns:

the GrafanaConfigurations object itself.

withSmtp

public GrafanaConfigurations withSmtp(Smtp smtp)

Set the smtp property: Email server settings. https://grafana.com/docs/grafana/v9.0/setup-grafana/configure-grafana/\#smtp.

Parameters:

smtp - the smtp value to set.

Returns:

the GrafanaConfigurations object itself.

withSnapshots

public GrafanaConfigurations withSnapshots(Snapshots snapshots)

Set the snapshots property: Grafana Snapshots settings.

Parameters:

snapshots - the snapshots value to set.

Returns:

the GrafanaConfigurations object itself.

withUnifiedAlertingScreenshots

public GrafanaConfigurations withUnifiedAlertingScreenshots(UnifiedAlertingScreenshots unifiedAlertingScreenshots)

Set the unifiedAlertingScreenshots property: Grafana Unified Alerting Screenshots settings.

Parameters:

unifiedAlertingScreenshots - the unifiedAlertingScreenshots value to set.

Returns:

the GrafanaConfigurations object itself.

withUsers

public GrafanaConfigurations withUsers(Users users)

Set the users property: Grafana users settings.

Parameters:

users - the users value to set.

Returns:

the GrafanaConfigurations object itself.

Applies to