Class CreateOnDemandPingProbeDetails
The request body used to create an on-demand ping probe.
Inherited Members
Namespace: Oci.HealthchecksService.Models
Assembly: OCI.DotNetSDK.Healthchecks.dll
Syntax
public class CreateOnDemandPingProbeDetails
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment. |
Remarks
Required
Port
Declaration
[JsonProperty(PropertyName = "port")]
public int? Port { get; set; }
Property Value
Type | Description |
---|---|
int? | The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol. |
Protocol
Declaration
[Required(ErrorMessage = "Protocol is required.")]
[JsonProperty(PropertyName = "protocol")]
[JsonConverter(typeof(StringEnumConverter))]
public PingProbeProtocol? Protocol { get; set; }
Property Value
Type | Description |
---|---|
PingProbeProtocol? |
Remarks
Required
Targets
Declaration
[Required(ErrorMessage = "Targets is required.")]
[JsonProperty(PropertyName = "targets")]
public List<string> Targets { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of targets (hostnames or IP addresses) of the probe. |
Remarks
Required
TimeoutInSeconds
Declaration
[JsonProperty(PropertyName = "timeoutInSeconds")]
public int? TimeoutInSeconds { get; set; }
Property Value
Type | Description |
---|---|
int? | The probe timeout in seconds. Valid values: 10, 20, 30, and 60.
The probe timeout must be less than or equal to |
VantagePointNames
Declaration
[JsonProperty(PropertyName = "vantagePointNames")]
public List<string> VantagePointNames { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of names of vantage points from which to execute the probe. |