sbc

package
v0.0.0-...-cd9c097 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiSettings

type ApiSettings struct {
	APIHost     string
	APIUsername string
	APIPassword string
	HTTPTimeout time.Duration
	DialTimeout time.Duration
	TLSTimeout  time.Duration
}

ApiSettings object used for client creation

func NewClientConfig

func NewClientConfig() ApiSettings

NewClientConfig constructs a ApiSettings object with the environment variables set as default

type CallLegs

type CallLegs struct {
	IncomingLegsHighest                int    `json:"incoming_legs_highest"`
	ResetStats                         string `json:"reset_stats"`
	OutgoingLegsAnsweredRate           int    `json:"outgoing_legs_answered_rate"`
	TotalOutgoingLegsAccepted          int    `json:"total_outgoing_legs_accepted"`
	FilePlaybacks                      int    `json:"file_playbacks"`
	OutgoingLegsAnsweredRateHighest    int    `json:"outgoing_legs_answered_rate_highest"`
	IncomingLegs                       int    `json:"incoming_legs"`
	CallLegsAnsweredRate               int    `json:"call_legs_answered_rate"`
	OutgoingLegsAnsweredHighest        int    `json:"outgoing_legs_answered_highest"`
	TotalMediaOnlyLegs                 int    `json:"total_media_only_legs"`
	OutgoingLegsRate                   int    `json:"outgoing_legs_rate"`
	TotalOutgoingLegsFilePlaybacks     int    `json:"total_outgoing_legs_file_playbacks"`
	IncomingLegsAnsweredRate           int    `json:"incoming_legs_answered_rate"`
	TotalIncomingEmergencyLegs         int    `json:"total_incoming_emergency_legs"`
	OutgoingLegs                       int    `json:"outgoing_legs"`
	MediaOnlyLegs                      int    `json:"media_only_legs"`
	FileRecordings                     int    `json:"file_recordings"`
	MediaOnlyLegsHighest               int    `json:"media_only_legs_highest"`
	IncomingLegsAnsweredRateHighest    int    `json:"incoming_legs_answered_rate_highest"`
	TotalIncomingLegsAnswered          int    `json:"total_incoming_legs_answered"`
	IncomingLegsAcceptedRateHighest    int    `json:"incoming_legs_accepted_rate_highest"`
	CallLegsSetup                      int    `json:"call_legs_setup"`
	IncomingLegsRate                   int    `json:"incoming_legs_rate"`
	TotalOutgoingLegsFileRecordings    int    `json:"total_outgoing_legs_file_recordings"`
	TotalCallLegsAccepted              int    `json:"total_call_legs_accepted"`
	OutgoingLegsSetup                  int    `json:"outgoing_legs_setup"`
	TotalIncomingLegsFileRecordings    int    `json:"total_incoming_legs_file_recordings"`
	IncomingLegsAcceptedRate           int    `json:"incoming_legs_accepted_rate"`
	OutgoingLegsTerminating            int    `json:"outgoing_legs_terminating"`
	OutgoingLegsAcceptedRateHighest    int    `json:"outgoing_legs_accepted_rate_highest"`
	CallLegsAcceptedRateHighest        int    `json:"call_legs_accepted_rate_highest"`
	TotalIncomingLegsFilePlaybacks     int    `json:"total_incoming_legs_file_playbacks"`
	CallLegsAnsweredHighest            int    `json:"call_legs_answered_highest"`
	IncomingLegsAnsweredHighest        int    `json:"incoming_legs_answered_highest"`
	IncomingEmergencyLegsRateHighest   int    `json:"incoming_emergency_legs_rate_highest"`
	CallLegsRate                       int    `json:"call_legs_rate"`
	CallLegsAnsweredRateHighest        int    `json:"call_legs_answered_rate_highest"`
	CallLegsRateHighest                int    `json:"call_legs_rate_highest"`
	CallLegsTerminating                int    `json:"call_legs_terminating"`
	OutgoingLegsAcceptedRate           int    `json:"outgoing_legs_accepted_rate"`
	IncomingEmergencyLegsRate          int    `json:"incoming_emergency_legs_rate"`
	TotalOutgoingLegsInterceptions     int    `json:"total_outgoing_legs_interceptions"`
	TotalIncomingEmergencyLegsAnswered int    `json:"total_incoming_emergency_legs_answered"`
	TotalMediaOnlyLegsFileRecordings   int    `json:"total_media_only_legs_file_recordings"`
	TotalIncomingLegsInterceptions     int    `json:"total_incoming_legs_interceptions"`
	TotalCallLegsInterceptions         int    `json:"total_call_legs_interceptions"`
	TotalCallLegsFilePlaybacks         int    `json:"total_call_legs_file_playbacks"`
	TotalOutgoingLegsAnswered          int    `json:"total_outgoing_legs_answered"`
	IncomingEmergencyLegsHighest       int    `json:"incoming_emergency_legs_highest"`
	TotalMediaOnlyLegsInterceptions    int    `json:"total_media_only_legs_interceptions"`
	TotalCallLegs                      int    `json:"total_call_legs"`
	TotalMediaOnlyLegsFilePlaybacks    int    `json:"total_media_only_legs_file_playbacks"`
	TotalIncomingLegs                  int    `json:"total_incoming_legs"`
	TotalIncomingLegsAccepted          int    `json:"total_incoming_legs_accepted"`
	IncomingLegsAnswered               int    `json:"incoming_legs_answered"`
	TotalOutgoingLegs                  int    `json:"total_outgoing_legs"`
	CallLegsAcceptedRate               int    `json:"call_legs_accepted_rate"`
	OutgoingLegsHighest                int    `json:"outgoing_legs_highest"`
	Interceptions                      int    `json:"interceptions"`
	MediaOnlyLegsRateHighest           int    `json:"media_only_legs_rate_highest"`
	IncomingEmergencyLegs              int    `json:"incoming_emergency_legs"`
	TotalCallLegsAnswered              int    `json:"total_call_legs_answered"`
	MediaOnlyLegsRate                  int    `json:"media_only_legs_rate"`
	OutgoingLegsAnswered               int    `json:"outgoing_legs_answered"`
	CallLegs                           int    `json:"call_legs"`
	IncomingLegsRateHighest            int    `json:"incoming_legs_rate_highest"`
	IncomingLegsSetup                  int    `json:"incoming_legs_setup"`
	TotalCallLegsFileRecordings        int    `json:"total_call_legs_file_recordings"`
	CallLegsAnswered                   int    `json:"call_legs_answered"`
	IncomingLegsTerminating            int    `json:"incoming_legs_terminating"`
	CallLegsHighest                    int    `json:"call_legs_highest"`
	OutgoingLegsRateHighest            int    `json:"outgoing_legs_rate_highest"`
}

func (CallLegs) JsonFields

func (c CallLegs) JsonFields() []string

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client object

func NewClient

func NewClient(config ApiSettings) Client

NewClient constructor

func (Client) Request

func (c Client) Request(method, endpoint string, data, response interface{}) error

Request executes any HubSpot API method using the current client configuration

func (Client) TBConfigs

func (c Client) TBConfigs() TBConfigs

TBConfigs constructor (from Client)

func (Client) TBFileDBs

func (c Client) TBFileDBs(fileDb string) TBFileDBs

TBFileDBs constructor (from Client)

func (Client) TBNapColumns

func (c Client) TBNapColumns() TBNapColumns

TBNapColumns constructor (from Client)

func (Client) TBNapColumnsValues

func (c Client) TBNapColumnsValues() TBNapColumnsValues

TBNapColumnsValues constructor (from Client)

func (Client) TBNaps

func (c Client) TBNaps() TBNaps

TBNaps constructor (from Client)

func (Client) TBRoutes

func (c Client) TBRoutes() TBSystem

TBRoutes constructor (from Client)

func (Client) TBStatus

func (c Client) TBStatus() TBStatus

TBStatus constructor (from Client)

func (Client) TBSystem

func (c Client) TBSystem() TBSystem

TBSystem constructor (from Client)

type Configuration

type Configuration struct {
	WebProfile struct {
		HardwareUnit      bool `json:"hardware_unit"`
		SigtranIua        bool `json:"sigtran_iua"`
		Sip               bool `json:"sip"`
		Isdn              bool `json:"isdn"`
		Isup              bool `json:"isup"`
		Monitoring        bool `json:"monitoring"`
		H248              bool `json:"h248"`
		StatisticsHistory bool `json:"statistics_history"`
		Cas               bool `json:"cas"`
		Firewall          bool `json:"firewall"`
		Gateway           bool `json:"gateway"`
		SigtranM2Pa       bool `json:"sigtran_m2pa"`
		SccpTcap          bool `json:"sccp_tcap"`
		TmsIp             bool `json:"tms_ip"`
		SigtranM2Ua       bool `json:"sigtran_m2ua"`
		SigtranM3Ua       bool `json:"sigtran_m3ua"`
	} `json:"web_profile"`
	Name string `json:"name"`
}

type Nap

type Nap struct {
	Name                string                 `json:"name"`
	CallRateLimiting    NapCallRateLimiting    `json:"call_rate_limiting"`
	Enabled             bool                   `json:"enabled"`
	DefaultProfile      string                 `json:"default_profile"`
	PortRanges          []string               `json:"port_ranges"`
	SipTransportServers []string               `json:"sip_transport_servers"`
	SipCfg              NapSipCfg              `json:"sip_cfg"`
	CongestionThreshold NapCongestionThreshold `json:"congestion_threshold"`
}

Nap GET /configurations/config_1/naps/pbx_dec0de/

type NapAdvancedParams

type NapAdvancedParams struct {
	MapAnyResponseToAvailableStatus bool   `json:"map_any_response_to_available_status"`
	ResponseTimeout                 string `json:"response_timeout"`
	PrivacyType                     string `json:"privacy_type"`
	ProxyPollingMaxForwards         int    `json:"proxy_polling_max_forwards"`
	TriggersCallProgress            bool   `json:"183_triggers_call_progress"`
}

type NapAuthParams

type NapAuthParams struct {
	User           string `json:"user"`
	Realm          string `json:"realm"`
	ReuseChallenge bool   `json:"reuse_challenge"`
	Password       string `json:"password"`
	IgnoreRealm    bool   `json:"ignore_realm"`
}

type NapCallRateLimiting

type NapCallRateLimiting struct {
	ProcessingDelayHighThreshold     string `json:"processing_delay_high_threshold"`
	MaximumCallsPerSecond            int    `json:"maximum_calls_per_second"`
	MaximumCallBurst                 int    `json:"maximum_call_burst"`
	MaximumSimultaneousOutgoingCalls int    `json:"maximum_simultaneous_outgoing_calls"`
	MaximumSimultaneousIncomingCalls int    `json:"maximum_simultaneous_incoming_calls"`
	MaximumOutgoingCallsPerSecond    int    `json:"maximum_outgoing_calls_per_second"`
	MaximumIncomingCallsPerSecond    int    `json:"maximum_incoming_calls_per_second"`
	MaximumSimultaneousTotalCalls    int    `json:"maximum_simultaneous_total_calls"`
	ProcessingDelayLowThreshold      string `json:"processing_delay_low_threshold"`
}

type NapColumnValues

type NapColumnValues struct {
	RoutesetsDefinition string `json:"routesets_definition"`
	RouteGroups         string `json:"route_groups"`
	RoutesetsDigitmap   string `json:"routesets_digitmap"`
	Weight              string `json:"weight"`
	BlackWhiteList      string `json:"black_white_list"`
	CalledPreRemap      string `json:"called_pre_remap"`
	Priority            string `json:"priority"`
}

NapColumnValues change to your custom Column Values that you may have

type NapCongestionThreshold

type NapCongestionThreshold struct {
	PeriodDuration   string `json:"period_duration"`
	NbCallsPerPeriod int    `json:"nb_calls_per_period"`
}

type NapFilterParams

type NapFilterParams struct {
	FilterByProxyPort    bool `json:"filter_by_proxy_port"`
	FilterByLocalPort    bool `json:"filter_by_local_port"`
	FilterByProxyAddress bool `json:"filter_by_proxy_address"`
}

type NapNatParams

type NapNatParams struct {
	RemoteMethodSip string `json:"remote_method_sip"`
	LocalMethodRtp  string `json:"local_method_rtp"`
	RemoteMethodRtp string `json:"remote_method_rtp"`
	LocalMethodSip  string `json:"local_method_sip"`
}

type NapRegistrationParams

type NapRegistrationParams struct {
	AddressToRegister string `json:"address_to_register"`
	RegisterToProxy   bool   `json:"register_to_proxy"`
}

type NapSipCfg

type NapSipCfg struct {
	PollRemoteProxy           bool                  `json:"poll_remote_proxy"`
	AcceptOnlyAuthorizedUsers bool                  `json:"accept_only_authorized_users"`
	RegistrationParameters    NapRegistrationParams `json:"registration_parameters"`
	SipiParameters            NapSipiParams         `json:"sipi_parameters"`
	AdvancedParameters        NapAdvancedParams     `json:"advanced_parameters"`
	ProxyPortType             string                `json:"proxy_port_type"`
	NapSipAcls                []interface{}         `json:"nap_sip_acls"`
	SipUseProxy               bool                  `json:"sip_use_proxy"`
	ProxyPort                 int                   `json:"proxy_port"`
	FilteringParameters       NapFilterParams       `json:"filtering_parameters"`
	ProxyPollingInterval      string                `json:"proxy_polling_interval"`
	ProxyAddress              string                `json:"proxy_address"`
	AuthenticationParameters  NapAuthParams         `json:"authentication_parameters"`
	NetworkAddressTranslation NapNatParams          `json:"network_address_translation"`
}

type NapSipiParams

type NapSipiParams struct {
	IsupProtocolVariant    string `json:"isup_protocol_variant"`
	AppendFToOutgoingCalls bool   `json:"append_f_to_outgoing_calls"`
	Enable                 bool   `json:"enable"`
	ContentType            string `json:"content_type"`
	CallProgressMethod     string `json:"call_progress_method"`
}

type NapStatus

type NapStatus struct {
	AvailabilityDetectionStruct struct {
		PollRemoteProxy string `json:"poll_remote_proxy"`
		IsAvailable     string `json:"is_available"`
	} `json:"availability_detection_struct"`
	PortRangeSharedUsagePercent    int    `json:"port_range_shared_usage_percent"`
	AvailableCnt                   int    `json:"available_cnt"`
	InstIncomingCallCntTerminating int    `json:"inst_incoming_call_cnt_terminating"`
	InstIncomingCallCntAnswered    int    `json:"inst_incoming_call_cnt_answered"`
	SignalingType                  string `json:"signaling_type"`
	TotalIncomingFilePlaybacks     int    `json:"total_incoming_file_playbacks"`
	InstOutgoingCallCnt            int    `json:"inst_outgoing_call_cnt"`
	InstIncomingEmergencyCallCnt   int    `json:"inst_incoming_emergency_call_cnt"`
	ResetAsrStats                  string `json:"reset_asr_stats"`
	InstOutgoingCallRate           int    `json:"inst_outgoing_call_rate"`
	InstIncomingCallRateAnswered   int    `json:"inst_incoming_call_rate_answered"`
	InstIncomingCallRateAccepted   int    `json:"inst_incoming_call_rate_accepted"`
	FirewallBlockedCnt             int    `json:"firewall_blocked_cnt"`
	ResetStats                     string `json:"reset_stats"`
	ResetNapDropStats              string `json:"reset_nap_drop_stats"`
	AsrStatsIncomingStruct         struct {
		Last24HCallCnt        int `json:"last_24h_call_cnt"`
		Last24HAsrPercent     int `json:"last_24h_asr_percent"`
		TotalCallCnt          int `json:"total_call_cnt"`
		GlobalAsrPercent      int `json:"global_asr_percent"`
		LastHourCallCnt       int `json:"last_hour_call_cnt"`
		CurrentHourCallCnt    int `json:"current_hour_call_cnt"`
		TotalAnsweredCallCnt  int `json:"total_answered_call_cnt"`
		TotalAcceptedCallCnt  int `json:"total_accepted_call_cnt"`
		LastHourAsrPercent    int `json:"last_hour_asr_percent"`
		CurrentHourAsrPercent int `json:"current_hour_asr_percent"`
	} `json:"asr_stats_incoming_struct"`
	UsagePercent                         int `json:"usage_percent"`
	TotalIncomingInterceptions           int `json:"total_incoming_interceptions"`
	InstIncomingFilePlaybacks            int `json:"inst_incoming_file_playbacks"`
	InstOutgoingCallCntAnswered          int `json:"inst_outgoing_call_cnt_answered"`
	InstIncomingEmergencyCallRateHighest int `json:"inst_incoming_emergency_call_rate_highest"`
	UniqueId                             int `json:"unique_id"`
	SystemDropStats                      struct {
	} `json:"system_drop_stats"`
	LocalDropStats struct {
	} `json:"local_drop_stats"`
	MosStruct struct {
		CurrentHourEgress  float64 `json:"current_hour_egress"`
		LastHourEgress     float64 `json:"last_hour_egress"`
		CurrentHourIngress float64 `json:"current_hour_ingress"`
		LastHourIngress    float64 `json:"last_hour_ingress"`
		Last24HIngress     float64 `json:"last_24h_ingress"`
		Last24HEgress      float64 `json:"last_24h_egress"`
	} `json:"mos_struct"`
	SipSharedUsagePercent               int `json:"sip_shared_usage_percent"`
	InstIncomingCallRateAnsweredHighest int `json:"inst_incoming_call_rate_answered_highest"`
	InstIncomingCallCnt                 int `json:"inst_incoming_call_cnt"`
	TotalOutgoingFileRecordings         int `json:"total_outgoing_file_recordings"`
	InstOutgoingCallRateAnsweredHighest int `json:"inst_outgoing_call_rate_answered_highest"`
	InstIncomingCallRate                int `json:"inst_incoming_call_rate"`
	InstIncomingCallCntInProgress       int `json:"inst_incoming_call_cnt_in_progress"`
	RemoteDropStats                     struct {
	} `json:"remote_drop_stats"`
	AvailabilityPercent              int  `json:"availability_percent"`
	InstIncomingFileRecordings       int  `json:"inst_incoming_file_recordings"`
	InstOutgoingCallRateAccepted     int  `json:"inst_outgoing_call_rate_accepted"`
	FirewallBlocked                  bool `json:"firewall_blocked"`
	CallCongestionPeriodDroppedCalls int  `json:"call_congestion_period_dropped_calls"`
	RegistrationStruct               struct {
		Registered      string `json:"registered"`
		RegisterToProxy string `json:"register_to_proxy"`
	} `json:"registration_struct"`
	NetworkQualityStruct struct {
		CurrentHourEgress  int `json:"current_hour_egress"`
		LastHourEgress     int `json:"last_hour_egress"`
		CurrentHourIngress int `json:"current_hour_ingress"`
		LastHourIngress    int `json:"last_hour_ingress"`
		Last24HIngress     int `json:"last_24h_ingress"`
		Last24HEgress      int `json:"last_24h_egress"`
	} `json:"network_quality_struct"`
	AsrStatsOutgoingStruct struct {
		Last24HCallCnt        int `json:"last_24h_call_cnt"`
		Last24HAsrPercent     int `json:"last_24h_asr_percent"`
		TotalCallCnt          int `json:"total_call_cnt"`
		GlobalAsrPercent      int `json:"global_asr_percent"`
		LastHourCallCnt       int `json:"last_hour_call_cnt"`
		CurrentHourCallCnt    int `json:"current_hour_call_cnt"`
		TotalAnsweredCallCnt  int `json:"total_answered_call_cnt"`
		TotalAcceptedCallCnt  int `json:"total_accepted_call_cnt"`
		LastHourAsrPercent    int `json:"last_hour_asr_percent"`
		CurrentHourAsrPercent int `json:"current_hour_asr_percent"`
	} `json:"asr_stats_outgoing_struct"`
	InstOutgoingCallRateHighest          int  `json:"inst_outgoing_call_rate_highest"`
	InstIncomingEmergencyCallRate        int  `json:"inst_incoming_emergency_call_rate"`
	LowDelayRelaySharedUsagePercent      int  `json:"low_delay_relay_shared_usage_percent"`
	TotalOutgoingInterceptions           int  `json:"total_outgoing_interceptions"`
	InstOutgoingFilePlaybacks            int  `json:"inst_outgoing_file_playbacks"`
	InstIncomingInterceptions            int  `json:"inst_incoming_interceptions"`
	CallCongestion                       bool `json:"call_congestion"`
	MipsSharedUsagePercent               int  `json:"mips_shared_usage_percent"`
	SharedUsagePercent                   int  `json:"shared_usage_percent"`
	UnavailableCnt                       int  `json:"unavailable_cnt"`
	InstOutgoingFileRecordings           int  `json:"inst_outgoing_file_recordings"`
	InstOutgoingCallRateAnswered         int  `json:"inst_outgoing_call_rate_answered"`
	InstOutgoingCallCntTerminating       int  `json:"inst_outgoing_call_cnt_terminating"`
	InstIncomingEmergencyCallCntAnswered int  `json:"inst_incoming_emergency_call_cnt_answered"`
	RtpStatisticsStruct                  struct {
		FromNetNbOtherErrors        int `json:"from_net_nb_other_errors"`
		FromNetNbLostPackets        int `json:"from_net_nb_lost_packets"`
		T38NbPagesFromTdm           int `json:"t38_nb_pages_from_tdm"`
		FromNetNbBadProtocolHeaders int `json:"from_net_nb_bad_protocol_headers"`
		FromNetNbPackets            int `json:"from_net_nb_packets"`
		ToNetNbPackets              int `json:"to_net_nb_packets"`
		T38NbPagesToTdm             int `json:"t38_nb_pages_to_tdm"`
		ToNetNbArpFailures          int `json:"to_net_nb_arp_failures"`
		FromNetNbBufferOverflows    int `json:"from_net_nb_buffer_overflows"`
		FromNetNbOutOfSeqPackets    int `json:"from_net_nb_out_of_seq_packets"`
		FromNetNbEarlyLatePackets   int `json:"from_net_nb_early_late_packets"`
		FromNetNbDuplicatePackets   int `json:"from_net_nb_duplicate_packets"`
	} `json:"rtp_statistics_struct"`
	ResetRtpStats                       string `json:"reset_rtp_stats"`
	TotalOutgoingFilePlaybacks          int    `json:"total_outgoing_file_playbacks"`
	InstOutgoingInterceptions           int    `json:"inst_outgoing_interceptions"`
	TotalIncomingFileRecordings         int    `json:"total_incoming_file_recordings"`
	InstOutgoingCallRateAcceptedHighest int    `json:"inst_outgoing_call_rate_accepted_highest"`
	InstIncomingCallRateAcceptedHighest int    `json:"inst_incoming_call_rate_accepted_highest"`
	InstIncomingCallRateHighest         int    `json:"inst_incoming_call_rate_highest"`
}

type Route

type Route struct {
	RemappedCalled                string `json:"remapped_called"`
	RemappedDestinationLegProfile string `json:"remapped_destination_leg_profile"`
	Called                        string `json:"called"`
	RemappedSourceLegProfile      string `json:"remapped_source_leg_profile"`
	RemappedNap                   string `json:"remapped_nap"`
	Nap                           string `json:"nap"`
	RemappedCalling               string `json:"remapped_calling"`
	Calling                       string `json:"calling"`
	CustomAttributes              struct {
		RouteGroup             string `json:"route_group"`
		PrivateAddress         string `json:"private_address"`
		Weight                 string `json:"weight"`
		ForwardSipDomain       string `json:"forward_sip_domain"`
		ForwardSipParameters   string `json:"forward_sip_parameters"`
		RemappedPrivateAddress string `json:"remapped_private_address"`
		Priority               string `json:"priority"`
	} `json:"custom_attributes"`
	Name         string `json:"name"`
	RoutesetName string `json:"routeset_name"`
}

type Status

type Status struct {
	Sips struct {
		WarningThreshold  int `json:"warning_threshold"`
		HealthySipCfgList struct {
			Name string `json:"name"`
		} `json:"healthy_sip_cfg_list"`
		NotConfigured  bool `json:"not_configured"`
		CfgCnt         int  `json:"cfg_cnt"`
		AlarmCnt       int  `json:"alarm_cnt"`
		ErrorThreshold int  `json:"error_threshold"`
		HealthyCnt     int  `json:"healthy_cnt"`
		FailingCnt     int  `json:"failing_cnt"`
	} `json:"sips"`
	SipSimulators struct {
		FullyAvailableSipSimulatorCnt     int `json:"fully_available_sip_simulator_cnt"`
		WarningThreshold                  int `json:"warning_threshold"`
		CumulNbSipMsg                     int `json:"cumul_nb_sip_msg"`
		ErrorThreshold                    int `json:"error_threshold"`
		CumulNbCall                       int `json:"cumul_nb_call"`
		UnavailableSipSimulatorCnt        int `json:"unavailable_sip_simulator_cnt"`
		PartiallyAvailableSipSimulatorCnt int `json:"partially_available_sip_simulator_cnt"`
	} `json:"sip_simulators"`
	CircuitGroups struct {
		WarningThreshold          int  `json:"warning_threshold"`
		DownCnt                   int  `json:"down_cnt"`
		NotConfigured             bool `json:"not_configured"`
		IncomingCnt               int  `json:"incoming_cnt"`
		LocallyRemotelyBlockedCnt int  `json:"locally_remotely_blocked_cnt"`
		OutgoingCnt               int  `json:"outgoing_cnt"`
		RemotelyBlockedCnt        int  `json:"remotely_blocked_cnt"`
		ErrorThreshold            int  `json:"error_threshold"`
		SuspendedCnt              int  `json:"suspended_cnt"`
		ResetCnt                  int  `json:"reset_cnt"`
		LocallyBlockedCnt         int  `json:"locally_blocked_cnt"`
		IdleCnt                   int  `json:"idle_cnt"`
	} `json:"circuit_groups"`
	Calls struct {
		MatchFilterCallCnt int `json:"match_filter_call_cnt"`
		ActiveCallCnt      int `json:"active_call_cnt"`
	} `json:"calls"`
	Hosts struct {
		WarningThreshold        int `json:"warning_threshold"`
		UpdatesAvailableCnt     int `json:"updates_available_cnt"`
		AuthorizationExpiredCnt int `json:"authorization_expired_cnt"`
		MissingPrerequisitesCnt int `json:"missing_prerequisites_cnt"`
		NotReadyHostList        struct {
		} `json:"not_ready_host_list"`
		AuthorizationAboutToExpireHostList struct {
		} `json:"authorization_about_to_expire_host_list"`
		RebootRequiredCnt            int `json:"reboot_required_cnt"`
		MissingPrerequisitesHostList struct {
		} `json:"missing_prerequisites_host_list"`
		InvalidLicenseCnt        int `json:"invalid_license_cnt"`
		UpdatesAvailableHostList struct {
		} `json:"updates_available_host_list"`
		ReadyCnt            int `json:"ready_cnt"`
		FeatureMismatchList struct {
		} `json:"feature_mismatch_list"`
		ReadyHostList struct {
			Name string `json:"name"`
		} `json:"ready_host_list"`
		InvalidLicenseHostList struct {
		} `json:"invalid_license_host_list"`
		ErrorThreshold                int `json:"error_threshold"`
		AuthorizationAboutToExpireCnt int `json:"authorization_about_to_expire_cnt"`
		SchedulingProblemHostList     struct {
		} `json:"scheduling_problem_host_list"`
		RebootRequiredHostList struct {
		} `json:"reboot_required_host_list"`
		FeatureMismatchCnt             int `json:"feature_mismatch_cnt"`
		LicenseExpiredCnt              int `json:"license_expired_cnt"`
		InvalidWebPortalConfigHostList struct {
		} `json:"invalid_web_portal_config_host_list"`
		InvalidWebPortalConfigCnt    int `json:"invalid web_portal_config_cnt"`
		SchedulingProblemCnt         int `json:"scheduling_problem_cnt"`
		LicenseAboutToExpireCnt      int `json:"license_about_to_expire_cnt"`
		NotReadyCnt                  int `json:"not_ready_cnt"`
		LicenseAboutToExpireHostList struct {
		} `json:"license_about_to_expire_host_list"`
		AuthorizationExpiredHostList struct {
		} `json:"authorization_expired_host_list"`
		LicenseExpiredHostList struct {
		} `json:"license_expired_host_list"`
	} `json:"hosts"`
	HostEthernetBondings struct {
		WarningThreshold int `json:"warning_threshold"`
		DownCnt          int `json:"down_cnt"`
		ActiveCnt        int `json:"active_cnt"`
		BackupCnt        int `json:"backup_cnt"`
		ErrorThreshold   int `json:"error_threshold"`
	} `json:"host_ethernet_bondings"`
	IsdnStacks struct {
		WarningThreshold int  `json:"warning_threshold"`
		DownCnt          int  `json:"down_cnt"`
		PartiallyUpCnt   int  `json:"partially_up_cnt"`
		NotConfigured    bool `json:"not_configured"`
		UpCnt            int  `json:"up_cnt"`
		ErrorThreshold   int  `json:"error_threshold"`
	} `json:"isdn_stacks"`
	Intercept struct {
		WarningThreshold         int `json:"warning_threshold"`
		IriBlockedQueueErrorList struct {
		} `json:"iri_blocked_queue_error_list"`
		IriServerConnectionFailureErrorList struct {
		} `json:"iri_server_connection_failure_error_list"`
		ErrorThreshold     int `json:"error_threshold"`
		IriUploadErrorList struct {
		} `json:"iri_upload_error_list"`
		InterceptionLegErrorList struct {
		} `json:"interception_leg_error_list"`
	} `json:"intercept"`
	Dns struct {
		WarningThreshold               int `json:"warning_threshold"`
		AvailableDnsGroupCnt           int `json:"available_dns_group_cnt"`
		PartiallyAvailableDnsGroupList struct {
			Name string `json:"name"`
		} `json:"partially_available_dns_group_list"`
		PartiallyAvailableDnsGroupCnt int `json:"partially_available_dns_group_cnt"`
		ErrorThreshold                int `json:"error_threshold"`
		UnavailableDnsGroupCnt        int `json:"unavailable_dns_group_cnt"`
	} `json:"dns"`
	SipSaps struct {
		WarningThreshold int `json:"warning_threshold"`
		SapCnt           int `json:"sap_cnt"`
		SipMap           struct {
			Name string `json:"name"`
		} `json:"sip_map"`
		ErrorThreshold int `json:"error_threshold"`
		SIPSTACK       struct {
			SipSapList struct {
				Name []string `json:"name"`
			} `json:"sip_sap_list"`
		} `json:"SIP_STACK"`
	} `json:"sip_saps"`
	HostFilesystems struct {
		WarningThreshold int `json:"warning_threshold"`
		DiskFullCnt      int `json:"disk_full_cnt"`
		ErrorThreshold   int `json:"error_threshold"`
		DiskFullHostList struct {
		} `json:"disk_full_host_list"`
	} `json:"host_filesystems"`
	HostEthernetPorts struct {
		HostMap struct {
			Name string `json:"name"`
		} `json:"host_map"`
		DownCnt         int `json:"down_cnt"`
		UpCnt           int `json:"up_cnt"`
		Telcobridgespro struct {
			UpPortList struct {
				Name []string `json:"name"`
			} `json:"up_port_list"`
		} `json:"telcobridgespro"`
		ErrorThreshold int `json:"error_threshold"`
	} `json:"host_ethernet_ports"`
	Adapters struct {
		WarningThreshold  int `json:"warning_threshold"`
		UpdatingCnt       int `json:"updating_cnt"`
		DownCnt           int `json:"down_cnt"`
		ConfiguringCnt    int `json:"configuring_cnt"`
		RebootRequiredCnt int `json:"reboot_required_cnt"`
		FaultCnt          int `json:"fault_cnt"`
		UpCnt             int `json:"up_cnt"`
		PowerFaultCnt     int `json:"power_fault_cnt"`
		Np1UnusableCnt    int `json:"np1_unusable_cnt"`
		Meta              struct {
			Version string `json:"version"`
			SrcPath string `json:"src_path"`
		} `json:"***meta***"`
		ErrorThreshold          int `json:"error_threshold"`
		DisabledCnt             int `json:"disabled_cnt"`
		LicenseExpiredCnt       int `json:"license_expired_cnt"`
		LicenseAboutToExpireCnt int `json:"license_about_to_expire_cnt"`
		InvalidBoardModeCnt     int `json:"invalid_board_mode_cnt"`
		CorruptedFileSystemCnt  int `json:"corrupted_file_system_cnt"`
	} `json:"adapters"`
	Naps struct {
		WarningThreshold      int `json:"warning_threshold"`
		FirewallBlockedNapCnt int `json:"firewall_blocked_nap_cnt"`
		CallCongestionNapCnt  int `json:"call_congestion_nap_cnt"`
		AvailableNapList      struct {
			Name []string `json:"name"`
		} `json:"available_nap_list"`
		AvailableNapCnt          int  `json:"available_nap_cnt"`
		NotConfigured            bool `json:"not_configured"`
		ErrorThreshold           int  `json:"error_threshold"`
		UnavailableNapCnt        int  `json:"unavailable_nap_cnt"`
		PartiallyAvailableNapCnt int  `json:"partially_available_nap_cnt"`
	} `json:"naps"`
	IsdnAnalyzers struct {
		UnavailableIsdnAnalyzerCnt        int `json:"unavailable_isdn_analyzer_cnt"`
		WarningThreshold                  int `json:"warning_threshold"`
		CurrentNbCallTerminating          int `json:"current_nb_call_terminating"`
		PartiallyAvailableIsdnAnalyzerCnt int `json:"partially_available_isdn_analyzer_cnt"`
		CurrentNbCallAnswered             int `json:"current_nb_call_answered"`
		CumulNbCallTerminatedTimeout      int `json:"cumul_nb_call_terminated_timeout"`
		CumulNbCallAnswered               int `json:"cumul_nb_call_answered"`
		ErrorThreshold                    int `json:"error_threshold"`
		CurrentNbCallSetup                int `json:"current_nb_call_setup"`
		CurrentNbCall                     int `json:"current_nb_call"`
		CumulNbCallTerminatedCollision    int `json:"cumul_nb_call_terminated_collision"`
		CumulNbCall                       int `json:"cumul_nb_call"`
		CumulNbCallTerminatedNetwork      int `json:"cumul_nb_call_terminated_network"`
		FullyAvailableIsdnAnalyzerCnt     int `json:"fully_available_isdn_analyzer_cnt"`
		CumulNbCallSetup                  int `json:"cumul_nb_call_setup"`
	} `json:"isdn_analyzers"`
	HostIpInterfaces struct {
		UnavailableCnt int `json:"unavailable_cnt"`
		HostMap        struct {
			Name string `json:"name"`
		} `json:"host_map"`
		Telcobridgespro struct {
			AvailableIpInterfaceList struct {
				Name []string `json:"name"`
			} `json:"available_ip_interface_list"`
		} `json:"telcobridgespro"`
		ErrorThreshold int `json:"error_threshold"`
		AvailableCnt   int `json:"available_cnt"`
	} `json:"host_ip_interfaces"`
	Database struct {
		SecondaryReady string `json:"secondary_ready"`
		PrimaryReady   string `json:"primary_ready"`
		ErrorThreshold int    `json:"error_threshold"`
	} `json:"database"`
	SipRegistrations struct {
		WarningThreshold int `json:"warning_threshold"`
		ErrorThreshold   int `json:"error_threshold"`
	} `json:"sip_registrations"`
	Firewalls struct {
		WarningThreshold  int `json:"warning_threshold"`
		RebootRequiredCnt int `json:"reboot_required_cnt"`
		ListFullSbcList   struct {
		} `json:"list_full_sbc_list"`
		ReadySbcList struct {
			Name string `json:"name"`
		} `json:"ready_sbc_list"`
		SubOptimalConfigCnt int `json:"sub_optimal_config_cnt"`
		ListFullCnt         int `json:"list_full_cnt"`
		ReadyCnt            int `json:"ready_cnt"`
		HighCpuSbcList      struct {
		} `json:"high_cpu_sbc_list"`
		DdosSbcList struct {
		} `json:"ddos_sbc_list"`
		ErrorThreshold   int `json:"error_threshold"`
		DdosCnt          int `json:"ddos_cnt"`
		ThresholdSbcList struct {
		} `json:"threshold_sbc_list"`
		WarningSbcList struct {
		} `json:"warning_sbc_list"`
		RebootRequiredSbcList struct {
		} `json:"reboot_required_sbc_list"`
		WarningCnt              int `json:"warning_cnt"`
		HighCpuCnt              int `json:"high_cpu_cnt"`
		ThresholdCnt            int `json:"threshold_cnt"`
		SchedulingProblemCnt    int `json:"scheduling_problem_cnt"`
		NotReadyCnt             int `json:"not_ready_cnt"`
		SubOptimalConfigSbcList struct {
		} `json:"sub_optimal_config_sbc_list"`
		SchedulingProblemSbcList struct {
		} `json:"scheduling_problem_sbc_list"`
		NotReadySbcList struct {
		} `json:"not_ready_sbc_list"`
	} `json:"firewalls"`
	Certificate struct {
		WarningThreshold int `json:"warning_threshold"`
		ValidCnt         int `json:"valid_cnt"`
		AboutToExpireCnt int `json:"about_to_expire_cnt"`
		ErrorThreshold   int `json:"error_threshold"`
		InvalidCnt       int `json:"invalid_cnt"`
		ValidList        struct {
			Name []string `json:"name"`
		} `json:"valid_list"`
	} `json:"certificate"`
	HostApplications struct {
		WarningThreshold int `json:"warning_threshold"`
		UpdatingCnt      int `json:"updating_cnt"`
		HostMap          struct {
			Name string `json:"name"`
		} `json:"host_map"`
		FaultCnt        int `json:"fault_cnt"`
		Telcobridgespro struct {
			ReadyList struct {
				Name []string `json:"name"`
			} `json:"ready_list"`
		} `json:"telcobridgespro"`
		ReadyCnt              int `json:"ready_cnt"`
		ErrorThreshold        int `json:"error_threshold"`
		NotRunningHostDownCnt int `json:"not_running_host_down_cnt"`
		NotRunningCnt         int `json:"not_running_cnt"`
	} `json:"host_applications"`
	Ha struct {
		HaDbReplicationState      string `json:"ha_db_replication_state"`
		HaRepositoryH248WarmStart string `json:"ha_repository_h248_warm_start"`
		HaStandbyApplications     string `json:"ha_standby_applications"`
		HaStandbyHost             string `json:"ha_standby_host"`
		ErrorThreshold            int    `json:"error_threshold"`
		HaSystemSwitchover        string `json:"ha_system_switchover"`
	} `json:"ha"`
	Clock struct {
		WarningThreshold          int `json:"warning_threshold"`
		ActiveClockReferencesList struct {
		} `json:"active_clock_references_list"`
		UnqualifiedClockReferencesList struct {
		} `json:"unqualified_clock_references_list"`
		NotConfigured                     bool `json:"not_configured"`
		BeingQualifiedClockReferencesList struct {
		} `json:"being_qualified_clock_references_list"`
		QualifiedClockReferencesList struct {
		} `json:"qualified_clock_references_list"`
		ErrorThreshold int `json:"error_threshold"`
	} `json:"clock"`
	Bits struct {
		WarningThreshold int  `json:"warning_threshold"`
		DownCnt          int  `json:"down_cnt"`
		NotConfigured    bool `json:"not_configured"`
		UpCnt            int  `json:"up_cnt"`
		ErrorThreshold   int  `json:"error_threshold"`
	} `json:"bits"`
	CallLegs CallLegs `json:"call_legs"`
	TmsIp    struct {
		WarningThreshold         int `json:"warning_threshold"`
		FromNetNbOutOfSeqPackets int `json:"from_net_nb_out_of_seq_packets"`
		FromNetNbPackets         int `json:"from_net_nb_packets"`
		TotalNbTmsIpTxConn       int `json:"total_nb_tms_ip_tx_conn"`
		TotalConnFailures        int `json:"total_conn_failures"`
		FromNetNbLostPackets     int `json:"from_net_nb_lost_packets"`
		TotalNbTmsIpRxConn       int `json:"total_nb_tms_ip_rx_conn"`
		HighestNbTmsIpRxConn     int `json:"highest_nb_tms_ip_rx_conn"`
		FromNetNbOtherErrors     int `json:"from_net_nb_other_errors"`
		FromNetDuration          int `json:"from_net_duration"`
		FromNetNbOctets          int `json:"from_net_nb_octets"`
		CurrentNbTmsIpTxConn     int `json:"current_nb_tms_ip_tx_conn"`
		CurrentNbTmsIpRxConn     int `json:"current_nb_tms_ip_rx_conn"`
		ErrorThreshold           int `json:"error_threshold"`
		FromNetNbBufferOverflows int `json:"from_net_nb_buffer_overflows"`
		FromNetNbLatePackets     int `json:"from_net_nb_late_packets"`
		HighestNbTmsIpTxConn     int `json:"highest_nb_tms_ip_tx_conn"`
		MaxNbTmsIpConn           int `json:"max_nb_tms_ip_conn"`
	} `json:"tms_ip"`
	LineServicesLeaf struct {
		WarningThreshold     int `json:"warning_threshold"`
		AvailableTrunkCnt    int `json:"available_trunk_cnt"`
		ErrorThreshold       int `json:"error_threshold"`
		UnavailableTrunkList struct {
		} `json:"unavailable_trunk_list"`
		UnavailableTrunkCnt int `json:"unavailable_trunk_cnt"`
	} `json:"line_services_leaf"`
	AdaptersUsage struct {
		WarningThreshold           int `json:"warning_threshold"`
		HighCpuUsageCnt            int `json:"high_cpu_usage_cnt"`
		HighVoipUsageCnt           int `json:"high_voip_usage_cnt"`
		HighLowDelayRelayUsageList struct {
		} `json:"high_low_delay_relay_usage_list"`
		HighDspUsageCnt    int `json:"high_dsp_usage_cnt"`
		HighTmsIpUsageList struct {
		} `json:"high_tms_ip_usage_list"`
		CallCongestionCnt  int `json:"call_congestion_cnt"`
		CallCongestionList struct {
		} `json:"call_congestion_list"`
		ErrorThreshold    int `json:"error_threshold"`
		HighTmsIpUsageCnt int `json:"high_tms_ip_usage_cnt"`
		HighDspUsageList  struct {
		} `json:"high_dsp_usage_list"`
		HighCpuUsageList struct {
		} `json:"high_cpu_usage_list"`
		HighLowDelayRelayUsageCnt int `json:"high_low_delay_relay_usage_cnt"`
		HighVoipUsageList         struct {
		} `json:"high_voip_usage_list"`
	} `json:"adapters_usage"`
}

type TBConfigs

type TBConfigs struct {
	Client
}

TBConfigs client

func (TBConfigs) GetConfig

func (c TBConfigs) GetConfig(name string) (*Configuration, error)

func (TBConfigs) GetFullConfig

func (c TBConfigs) GetFullConfig(name string) error

func (TBConfigs) GetNames

func (c TBConfigs) GetNames() ([]string, error)

type TBDigitMap

type TBDigitMap struct {
	Called       string `json:"called"csv:"called"`
	Calling      string `json:"calling"csv:"calling"`
	RouteSetName string `json:"routeset_name"csv:"routeset_name"`
}

func Append2Digitmap

func Append2Digitmap(customerName string, phoneNumbers []string, digitMap []TBDigitMap) ([]TBDigitMap, error)

type TBFile

type TBFile struct {
	Name    string `json:"name"`
	Content string `json:"content"`
}

type TBFileDBs

type TBFileDBs struct {
	Client
	// contains filtered or unexported fields
}

TBFileDBs client

func (TBFileDBs) CreateRouteDef

func (c TBFileDBs) CreateRouteDef(config string, file TBFile) error

func (TBFileDBs) DeleteRouteDef

func (c TBFileDBs) DeleteRouteDef(config string, rDef string) error

func (TBFileDBs) Get

func (c TBFileDBs) Get(config string) (*Nap, error)

func (TBFileDBs) GetCustomFileNames

func (c TBFileDBs) GetCustomFileNames(config string) ([]string, error)

func (TBFileDBs) GetDigitMap

func (c TBFileDBs) GetDigitMap(config string, dMap string) ([]TBDigitMap, error)

func (TBFileDBs) GetDigitMapsNames

func (c TBFileDBs) GetDigitMapsNames(config string) ([]string, error)

func (TBFileDBs) GetRouteDef

func (c TBFileDBs) GetRouteDef(config string, rDef string) ([]TBRouteDef, error)

func (TBFileDBs) GetRouteDefNames

func (c TBFileDBs) GetRouteDefNames(config string) ([]string, error)

func (TBFileDBs) UpdateDigitMap

func (c TBFileDBs) UpdateDigitMap(config string, digitMapFile string, digitMap []TBDigitMap) error

func (TBFileDBs) UpdateRouteDef

func (c TBFileDBs) UpdateRouteDef(config string, routeDefFile string, routeDef []TBRouteDef) error

type TBNapColumns

type TBNapColumns struct {
	Client
}

TBNapColumns client

func (TBNapColumns) Get

func (c TBNapColumns) Get(config string) (*Nap, error)

type TBNapColumnsValues

type TBNapColumnsValues struct {
	Client
}

TBNapColumnsValues client

func (TBNapColumnsValues) GetAllValues

func (c TBNapColumnsValues) GetAllValues(config string) (*Nap, error)

func (TBNapColumnsValues) UpdateNapColumnValues

func (c TBNapColumnsValues) UpdateNapColumnValues(config string, napName string, values NapColumnValues) error

type TBNaps

type TBNaps struct {
	Client
}

TBNaps client

func (TBNaps) CreateNap

func (c TBNaps) CreateNap(config string, nap Nap) error

func (TBNaps) GetColumnValues

func (c TBNaps) GetColumnValues(config string, napName string) (*NapColumnValues, error)

func (TBNaps) GetNames

func (c TBNaps) GetNames(config string) ([]string, error)

func (TBNaps) GetNap

func (c TBNaps) GetNap(config string, napName string) (*Nap, error)

func (TBNaps) GetNapStatus

func (c TBNaps) GetNapStatus(config string, napName string) (*NapStatus, error)

func (TBNaps) UpdateNap

func (c TBNaps) UpdateNap(config string, nap Nap) error

type TBRouteDef

type TBRouteDef struct {
	RouteSetName string `json:"routeset_name"csv:"routeset_name"`
	Priority     int    `json:"priority"csv:"priority"`
	Weight       int    `json:"weight"csv:"weight"`
	RouteGroup   string `json:"route_group"csv:"route_group"`
}

type TBRoutes

type TBRoutes struct {
	Client
}

func (TBRoutes) Create

func (c TBRoutes) Create(route Route) error

func (TBRoutes) GetRoute

func (c TBRoutes) GetRoute(routeStr string) (*Route, error)

func (TBRoutes) Update

func (c TBRoutes) Update(route Route) error

type TBStatus

type TBStatus struct {
	Client
}

TBStatus client

func (TBStatus) GetStatus

func (c TBStatus) GetStatus() (*Status, error)

type TBSystem

type TBSystem struct {
	Client
}

func (TBSystem) GetSystem

func (c TBSystem) GetSystem(system string) (*Nap, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL