pub struct Service {Show 17 fields
pub id: String,
pub name: String,
pub description: String,
pub auto_resolve_timeout: Option<i64>,
pub acknowledgement_timeout: Option<i64>,
pub status: Status,
pub escalation_policy: EscalationPolicy,
pub incident_urgency_rule: IncidentUrgencyRule,
pub support_hours: Option<SupportHours>,
pub scheduled_actions: Vec<ScheduledAction>,
pub alert_creation: AlertCreation,
pub alert_grouping_parameters: AlertGroupingParameters,
pub auto_pause_notifications_parameters: AutoPauseNotificationsParameters,
pub self_: String,
pub html_url: String,
pub created_at: Option<DateTime<Utc>>,
pub last_incident_timestamp: Option<DateTime<Utc>>,
}
Expand description
A service.
Fields§
§id: String
The ID.
name: String
The name of the service.
description: String
The description of the service.
auto_resolve_timeout: Option<i64>
Time in seconds that an incident is automatically resolved if left open for that long. Value is null if the feature is disabled. Value must not be negative. Setting this field to 0, null (or unset in POST request) will disable the feature.
acknowledgement_timeout: Option<i64>
Time in seconds that an incident changes to the Triggered State after being Acknowledged. Value is null if the feature is disabled. Value must not be negative. Setting this field to 0, null (or unset in POST request) will disable the feature.
status: Status
The current state of the Service. Valid statuses are:
active
: The service is enabled and has no open incidents. This is the only status a service can be created with.warning
: The service is enabled and has one or more acknowledged incidents.critical
: The service is enabled and has one or more triggered incidents.maintenance
: The service is under maintenance, no new incidents will be triggered during maintenance mode.disabled
: The service is disabled and will not have any new triggered incidents.
escalation_policy: EscalationPolicy
Escalation policy.
incident_urgency_rule: IncidentUrgencyRule
Incident urgency rule.
support_hours: Option<SupportHours>
Support Hours.
scheduled_actions: Vec<ScheduledAction>
An array containing scheduled actions for the service.
alert_creation: AlertCreation
Whether a service creates only incidents, or both alerts and incidents. A service must create alerts in order to enable incident merging.
create_incidents
- The service will create one incident and zero alerts for each incoming event.create_alerts_and_incidents
- The service will create one incident and one associated alert for each incoming event.
alert_grouping_parameters: AlertGroupingParameters
Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans.
auto_pause_notifications_parameters: AutoPauseNotificationsParameters
Defines how alerts on this service are automatically suspended for a period of time before triggering, when identified as likely being transient. Note that automatically pausing notifications is only available on certain plans.
self_: String
An API link to itself.
html_url: String
An HTML link to itself.
created_at: Option<DateTime<Utc>>
The date/time when this service was created.
last_incident_timestamp: Option<DateTime<Utc>>
The date/time when the most recent incident was created for this service.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Service
impl JsonSchema for Service
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more