Package com.structurizr.model
Class HttpHealthCheck
java.lang.Object
com.structurizr.model.HttpHealthCheck
public final class HttpHealthCheck
extends java.lang.Object
Describes a HTTP based health check.
-
Method Summary
Modifier and Type Method Description voidaddHeader(java.lang.String name, java.lang.String value)Adds a HTTP header, which will be sent with the HTTP request to the health check URL.booleanequals(java.lang.Object o)java.util.Map<java.lang.String,java.lang.String>getHeaders()Gets a the HTTP headers associated with this health check.intgetInterval()Gets the polling interval of this health check.java.lang.StringgetName()Gets the name of this health check.longgetTimeout()Gets the timeout associated with this health check.java.lang.StringgetUrl()Gets the URL for this health check.inthashCode()
-
Method Details
-
getName
public java.lang.String getName()Gets the name of this health check.- Returns:
- the name, as a String
-
getUrl
public java.lang.String getUrl()Gets the URL for this health check.- Returns:
- the URL, as a String
-
addHeader
public void addHeader(java.lang.String name, java.lang.String value)Adds a HTTP header, which will be sent with the HTTP request to the health check URL.- Parameters:
name- the name of the headervalue- the value of the header
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders()Gets a the HTTP headers associated with this health check.- Returns:
- a Map (name=value)
-
getInterval
public int getInterval()Gets the polling interval of this health check.- Returns:
- the polling interval (in seconds), as an integer
-
getTimeout
public long getTimeout()Gets the timeout associated with this health check.- Returns:
- the timeout (in milliseconds)
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-