/* Options: Date: 2026-01-25 12:21:14 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://evovoice.io //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: NewAlert.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using Voice.Api.Alerts; using Voice.Api; namespace Voice.Api { public partial class EntityInfo { /// ///The ID of the object /// [ApiMember(Description="The ID of the object")] public virtual string Id { get; set; } /// ///The date the object was created /// [ApiMember(Description="The date the object was created")] public virtual string DateCreated { get; set; } /// ///The date the object was last modified /// [ApiMember(Description="The date the object was last modified")] public virtual string DateLastModified { get; set; } /// ///The user that created this object /// [ApiMember(Description="The user that created this object")] public virtual string CreatedBy { get; set; } /// ///The user that last modified this object /// [ApiMember(Description="The user that last modified this object")] public virtual string LastModifiedBy { get; set; } } } namespace Voice.Api.Alerts { public partial class AlertInfo : EntityInfo { /// ///The ID of the account associated with this alert /// [ApiMember(Description="The ID of the account associated with this alert")] public virtual string AccountId { get; set; } /// ///The name of the alert /// [ApiMember(Description="The name of the alert")] public virtual string Name { get; set; } /// ///The trigger alert /// [ApiMember(Description="The trigger alert")] public virtual AlertTriggers Trigger { get; set; } /// ///The number of hours for the window over which the alert will trigger /// [ApiMember(Description="The number of hours for the window over which the alert will trigger")] public virtual double WindowHours { get; set; } /// ///The value at which the alert will trigger /// [ApiMember(Description="The value at which the alert will trigger")] public virtual double Threshold { get; set; } /// ///The email addresses (one per line) to notify /// [ApiMember(Description="The email addresses (one per line) to notify")] public virtual string NotificationEmailAddresses { get; set; } } public enum AlertTriggers { CallSpend, } /// ///Creates a new alert /// [Route("/alerts", "POST")] [Api(Description="Creates a new alert")] public partial class NewAlert : IReturn, IPost { /// ///The account ID to associate this alert with /// [ApiMember(Description="The account ID to associate this alert with")] public virtual string AccountId { get; set; } /// ///The name of the alert /// [ApiMember(Description="The name of the alert")] public virtual string Name { get; set; } /// ///The trigger alert /// [ApiMember(Description="The trigger alert")] public virtual AlertTriggers Trigger { get; set; } /// ///The number of hours for the window over which the alert will trigger /// [ApiMember(Description="The number of hours for the window over which the alert will trigger")] public virtual double WindowHours { get; set; } /// ///The value at which the alert will trigger /// [ApiMember(Description="The value at which the alert will trigger")] public virtual double Threshold { get; set; } /// ///The email addresses (one per line) to notify /// [ApiMember(Description="The email addresses (one per line) to notify")] public virtual string NotificationEmailAddresses { get; set; } } }