Class DomainMonitorDto
DomainMonitorDto
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "DomainMonitorDto")]
public class DomainMonitorDto : IValidatableObject
Constructors
View SourceDomainMonitorDto()
Initializes a new instance of the DomainMonitorDto class.
Declaration
[JsonConstructor]
protected DomainMonitorDto()
DomainMonitorDto(Guid, Guid, string, string, long, bool, bool, LastStatusEnum?, int, DateTime, DateTime, DateTime, DateTime)
Initializes a new instance of the DomainMonitorDto class.
Declaration
public DomainMonitorDto(Guid id = default, Guid userId = default, string domain = null, string name = null, long intervalSeconds = 0, bool enabled = false, bool schedulingEnabled = false, DomainMonitorDto.LastStatusEnum? lastStatus = null, int healthScore = 0, DateTime lastRunAt = default, DateTime nextRunAt = default, DateTime createdAt = default, DateTime updatedAt = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | id (required). |
| Guid | userId | userId (required). |
| string | domain | domain (required). |
| string | name | name. |
| long | intervalSeconds | intervalSeconds. |
| bool | enabled | enabled (required). |
| bool | schedulingEnabled | schedulingEnabled (required). |
| DomainMonitorDto.LastStatusEnum? | lastStatus | lastStatus. |
| int | healthScore | healthScore. |
| DateTime | lastRunAt | lastRunAt. |
| DateTime | nextRunAt | nextRunAt. |
| DateTime | createdAt | createdAt (required). |
| DateTime | updatedAt | updatedAt (required). |
Properties
View SourceCreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Domain
Gets or Sets Domain
Declaration
[DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)]
public string Domain { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Enabled
Gets or Sets Enabled
Declaration
[DataMember(Name = "enabled", IsRequired = true, EmitDefaultValue = true)]
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
HealthScore
Gets or Sets HealthScore
Declaration
[DataMember(Name = "healthScore", EmitDefaultValue = false)]
public int HealthScore { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
IntervalSeconds
Gets or Sets IntervalSeconds
Declaration
[DataMember(Name = "intervalSeconds", EmitDefaultValue = false)]
public long IntervalSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
LastRunAt
Gets or Sets LastRunAt
Declaration
[DataMember(Name = "lastRunAt", EmitDefaultValue = false)]
public DateTime LastRunAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
LastStatus
Gets or Sets LastStatus
Declaration
[DataMember(Name = "lastStatus", EmitDefaultValue = false)]
public DomainMonitorDto.LastStatusEnum? LastStatus { get; set; }
Property Value
| Type | Description |
|---|---|
| DomainMonitorDto.LastStatusEnum? |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NextRunAt
Gets or Sets NextRunAt
Declaration
[DataMember(Name = "nextRunAt", EmitDefaultValue = false)]
public DateTime NextRunAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
SchedulingEnabled
Gets or Sets SchedulingEnabled
Declaration
[DataMember(Name = "schedulingEnabled", IsRequired = true, EmitDefaultValue = true)]
public bool SchedulingEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime UpdatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
UserId
Gets or Sets UserId
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
Methods
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
| Type | Description |
|---|---|
| string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String presentation of the object |