Class StaticStructureElementInstance
Represents a deployment instance of a SoftwareSystem or a Container, which can be added to a DeploymentNode.
[DataContract]
public abstract class StaticStructureElementInstance : DeploymentElement
- Inheritance
-
StaticStructureElementInstance
- Derived
- Inherited Members
Properties
DeploymentGroup
The deployment group used to decide which instances have replicated relationships.
[DataMember(Name = "deploymentGroup", EmitDefaultValue = false)]
public string DeploymentGroup { get; }
Property Value
HealthChecks
The set of health checks associated with this container instance.
[DataMember(Name = "healthChecks", EmitDefaultValue = false)]
public ISet<HttpHealthCheck> HealthChecks { get; }
Property Value
InstanceId
The one-based instance number for the underlying static element within the deployment environment.
[DataMember(Name = "instanceId", EmitDefaultValue = false)]
public int InstanceId { get; }
Property Value
Name
The name of the underlying static structure element.
public override string Name { get; }
Property Value
Methods
AddHealthCheck(string, string)
Adds a new health check, with the default interval (60 seconds) and timeout (0 milliseconds).
public HttpHealthCheck AddHealthCheck(string name, string url)
Parameters
Returns
- HttpHealthCheck
A HttpHealthCheck instance.
Exceptions
- ArgumentException
Thrown when the name or URL is blank, or when the URL is not valid.
AddHealthCheck(string, string, int, long)
Adds a new health check.
public HttpHealthCheck AddHealthCheck(string name, string url, int interval, long timeout)
Parameters
namestringThe name of the health check.
urlstringThe URL of the health check.
intervalintThe polling interval, in seconds.
timeoutlongThe timeout, in milliseconds.
Returns
- HttpHealthCheck
A HttpHealthCheck instance.
Exceptions
- ArgumentException
Thrown when the name or URL is invalid, or when
intervalortimeoutis negative.
GetRequiredTags()
Returns the required tags for this instance type.
public override List<string> GetRequiredTags()
Returns
RemoveTag(string)
Prevents removal of tags inherited from the underlying static structure element.
public override void RemoveTag(string tag)
Parameters
tagstringThe tag to remove.
Uses(InfrastructureNode, string, string)
Adds a relationship between this element instance and an infrastructure node.
public Relationship Uses(InfrastructureNode destination, string description, string technology)
Parameters
destinationInfrastructureNodethe destination InfrastructureNode
descriptionstringa short description of the relationship
technologystringthe technology
Returns
- Relationship
a Relationship object
Uses(InfrastructureNode, string, string, InteractionStyle?)
Adds a relationship between this element instance and an infrastructure node.
public Relationship Uses(InfrastructureNode destination, string description, string technology, InteractionStyle? interactionStyle)
Parameters
destinationInfrastructureNodethe destination InfrastructureNode
descriptionstringa short description of the relationship
technologystringthe technology
interactionStyleInteractionStyle?the interaction style (Synchronous vs Asynchronous)
Returns
- Relationship
a Relationship object
getElement()
Returns the static structure element represented by this deployment instance.
public abstract StaticStructureElement getElement()
Returns
- StaticStructureElement
The underlying static structure element.