"SoftLayer_" prefix removed for readability.
Get the connection or status graph image for a load balancer service group.
Get the graph image for a load balancer service group based on the supplied graph type and metric. The only available graph type currently is: ‘connections’, and the available metrics are: ‘day’, ‘week’ and ‘month’.
This method returns the raw binary image data.
Name | Type | Description |
---|---|---|
graphType | string | The graph type can currently only be ‘connections’. |
metric | string | The metric can be ‘day’, ‘week’, or ‘month’. |
Throw the exception “The graphType can only be ‘connections’.” when an invalid graphType is supplied.
Throw the exception “The metric can only be ‘day’, ‘week’, or ‘month’.” when an invalid metric is supplied.
Throw the exception “Unable to load the
graph for the - service group.” when the graph could not be found or is returned in an incorrect image format.