Commit 784cae74 authored by Michael Proestler's avatar Michael Proestler
Browse files

refactor sip_commons

parent 9e1754d7
Loading
Loading
Loading
Loading
+86 −0
Original line number Diff line number Diff line
Package sip_commons {
	Domain {
		pics:
		- SIP_SUBSCRIPTION_ELEMENT_STATE
		- SIP_SUBSCRIPTION_SECURITY_POSTURE
		- SIP_SUBSCRIPTION_SERVICE_STATE
		;
	}
	Data {
	
		type String;
		type Number;
		
		
		type SubscribeRequest
			with
						"event" 	of type String,
						expires 	of type Number,
			optional 	certificate of type Certificate 				
		;
						
		type OkResponse;
		
		type Notify;
		type Certificate;
			
		Number 0;
		
		// Subscriptions: ElementState
		type ElementStateEnum;
		
		ElementStateEnum normal;
		ElementStateEnum scheduledMaintenance;
		ElementStateEnum serviceDisruption;
		ElementStateEnum overloaded;
		ElementStateEnum goingDown;
		ElementStateEnum down;
						
		type ElementState
			with
				 	 state 	of type ElementStateEnum,
			optional reason of type String
		;
		
		// Subscriptions: SecurityPosture
		type SecurityPostureEnum;
		
		SecurityPostureEnum green;
		SecurityPostureEnum yellow;
		SecurityPostureEnum orange;		
		SecurityPostureEnum red;
		
		
		type SecurityPosture
			with
				 	 state 	of type SecurityPostureEnum,
			optional reason of type String
		;
			
		
		// Subscriptions: ServiceState
		type ServiceStateEnum;
		
		ServiceStateEnum normal;
		ServiceStateEnum unmanned;
		ServiceStateEnum "scheduledMaintenance(down)";
		ServiceStateEnum "scheduledMaintenance(available)";
		ServiceStateEnum majorIncidentInProgress;
		ServiceStateEnum partialService;
		ServiceStateEnum overloaded;
		ServiceStateEnum goingDown;
		ServiceStateEnum down;
		
		type ServiceState
			with
						 service of type String,
						 state	 of type ServiceStateEnum,
				optional reason	 of type String
		;
		
			
		SubscribeRequest UnsubscribeRequest containing
			expires indicating value 0
			;
	}
}
 No newline at end of file