<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docs.hostway.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Monitoring%2FMemory</id>
		<title>Monitoring/Memory - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Monitoring%2FMemory"/>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Monitoring/Memory&amp;action=history"/>
		<updated>2026-05-23T13:20:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Monitoring/Memory&amp;diff=2505&amp;oldid=prev</id>
		<title>Corinne.chui: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Monitoring/Memory&amp;diff=2505&amp;oldid=prev"/>
				<updated>2016-05-30T19:36:51Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:36, 30 May 2016&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Corinne.chui</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Monitoring/Memory&amp;diff=2504&amp;oldid=prev</id>
		<title>Mitko.georgiev at 13:16, 13 May 2015</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Monitoring/Memory&amp;diff=2504&amp;oldid=prev"/>
				<updated>2015-05-13T13:16:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
='''POST''' /accounts/'''account_number'''/dedicatedServers/'''dedicated_server'''/ipAddresses/'''ip_address'''/monitoring/memory=&lt;br /&gt;
'''&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;This API call is deprecated!&amp;lt;/span&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Create Memory check&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
; account - ''string''&lt;br /&gt;
; dedicated_server - ''string''&lt;br /&gt;
; ip_address - ''string''&lt;br /&gt;
&lt;br /&gt;
== Request==&lt;br /&gt;
=== JSON ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
            &amp;quot;enabled&amp;quot;: {enabled}, &lt;br /&gt;
            &amp;quot;enabledAlert&amp;quot;: {enabled_alert}&lt;br /&gt;
         }, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeMemory&amp;quot;: 1024,&lt;br /&gt;
         &amp;quot;freeSwap&amp;quot;: 2048 &lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====monitoring====&lt;br /&gt;
=====check=====&lt;br /&gt;
; check.enabled - ''boolean''&lt;br /&gt;
: Enable the check&lt;br /&gt;
&lt;br /&gt;
; check.enabledAlert - ''boolean''&lt;br /&gt;
: Enable alerts&lt;br /&gt;
&lt;br /&gt;
=====options=====&lt;br /&gt;
; options.freeMemory - ''int''&lt;br /&gt;
: The memory usage limit for check alerts&lt;br /&gt;
; options.freeSwap - ''int''&lt;br /&gt;
: The swap file usage limit for check alerts&lt;br /&gt;
&lt;br /&gt;
== Response==&lt;br /&gt;
=== JSON ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;memory&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeMemory&amp;quot;: 1024,&lt;br /&gt;
         &amp;quot;freeSwap&amp;quot;: 2048 &lt;br /&gt;
      }, &lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: {status}, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: {last_check}, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: {enabled_alert}, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: {enabled}, &lt;br /&gt;
         &amp;quot;id&amp;quot;: {id}&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/{id}&amp;quot;, &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====monitoring====&lt;br /&gt;
; type - ''string''&lt;br /&gt;
: memory&lt;br /&gt;
&lt;br /&gt;
; links - ''list''&lt;br /&gt;
: [[Hypermedia]] for this resource.&lt;br /&gt;
&lt;br /&gt;
=====check=====&lt;br /&gt;
; check.id - ''string''&lt;br /&gt;
: Unique identifier for this check.&lt;br /&gt;
&lt;br /&gt;
; check.status&lt;br /&gt;
: Status of the memory check&lt;br /&gt;
&lt;br /&gt;
; check.lastCheck&lt;br /&gt;
: Time of last memory check&lt;br /&gt;
&lt;br /&gt;
; check.enabled - ''boolean''&lt;br /&gt;
: Is the check enabled&lt;br /&gt;
&lt;br /&gt;
; check.enabledAlert - ''boolean''&lt;br /&gt;
: Are alerts enabled&lt;br /&gt;
&lt;br /&gt;
=====options=====&lt;br /&gt;
; options.freeMemory - ''int''&lt;br /&gt;
: The memory usage limit for check alerts&lt;br /&gt;
; options.freeSwap - ''int''&lt;br /&gt;
: The swap file usage limit for check alerts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Response Codes ==&lt;br /&gt;
; Success&lt;br /&gt;
: ''HTTP/1.1 201 Created''&lt;br /&gt;
&lt;br /&gt;
; Failure&lt;br /&gt;
: ''HTTP/1.1 400 Bad Request'': There was an error in the request the client sent&lt;br /&gt;
: ''HTTP/1.1 401 Unauthorized'' : This server could not verify that you are authorized to access the document you requested.  Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.&lt;br /&gt;
: ''HTTP/1.1 403 Forbidden'' : You don't have permissions to access the resource&lt;br /&gt;
: ''HTTP/1.1 404 Not Found'' : The resource requested is not found.&lt;br /&gt;
: ''HTTP/1.1 409 Conflict'' : Only one memory check for Dedicated Server per IP is allowed&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
'''Successfully create a memory check'''&lt;br /&gt;
:'''POST''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: false, &amp;quot;enabledAlert&amp;quot;: false}, &amp;quot;options&amp;quot;: {&amp;quot;freeMemory&amp;quot;: 1024, &amp;quot;freeSwap&amp;quot;: 1024}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 201 Created&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Response Body:''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;memory&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeMemory&amp;quot;: 1024,&lt;br /&gt;
         &amp;quot;freeSwap&amp;quot;: 1024 &lt;br /&gt;
      }, &lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: null, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: null, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: false, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: true, &lt;br /&gt;
         &amp;quot;id&amp;quot;: 16&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/16&amp;quot;, &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Bad request - missing options in the request body'''&lt;br /&gt;
:'''POST''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: false, &amp;quot;enabledAlert&amp;quot;: false}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 400 Bad Request&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Response Body:''&lt;br /&gt;
 {&amp;quot;badRequest&amp;quot;: {&amp;quot;message&amp;quot;: &amp;quot;POST data error&amp;quot;, &amp;quot;code&amp;quot;: 400, &amp;quot;details&amp;quot;: {&amp;quot;monitoring.options&amp;quot;: &amp;quot;Required&amp;quot;}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Request to create memory check for a missing dedicated server or IP address'''&lt;br /&gt;
:'''POST''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;fake_server&amp;lt;/span&amp;gt;}/ipAddresses/{ip_address}/monitoring/memory&lt;br /&gt;
:'''POST''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;fake_ip&amp;lt;/span&amp;gt;}/monitoring/memory&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: true, &amp;quot;enabledAlert&amp;quot;: false}, &amp;quot;options&amp;quot;: {&amp;quot;freeMemory&amp;quot;: 1024, &amp;quot;freeSwap&amp;quot;: 1024}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 404 Not Found&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Add an existing memory check'''&lt;br /&gt;
:'''POST''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: true, &amp;quot;enabledAlert&amp;quot;: false}, &amp;quot;options&amp;quot;: {&amp;quot;freeMemory&amp;quot;: 1024, &amp;quot;freeSwap&amp;quot;: 1024}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 409 Conflict&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
='''GET''' /accounts/'''account'''/dedicatedServers/'''dedicated_server'''/ipAddresses/'''ip_address'''/monitoring/memory/'''id'''=&lt;br /&gt;
'''&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;This API call is deprecated!&amp;lt;/span&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Get memory check details&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
; account - ''string''&lt;br /&gt;
; dedicated_server - ''string''&lt;br /&gt;
; ip_address - ''string''&lt;br /&gt;
; id - ''string''&lt;br /&gt;
: Id of the memory check.&lt;br /&gt;
&lt;br /&gt;
== Response ==&lt;br /&gt;
=== JSON ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;{type}&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeMemory&amp;quot;: 1024,&lt;br /&gt;
         &amp;quot;freeSwap&amp;quot;: 2048 &lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: {status}, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: {last_check}, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: {enabled_alert}, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: {enabled}, &lt;br /&gt;
         &amp;quot;id&amp;quot;: {id}&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/{id}&amp;quot;, &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====monitoring====&lt;br /&gt;
; type - ''string''&lt;br /&gt;
: memory&lt;br /&gt;
&lt;br /&gt;
; links - ''list''&lt;br /&gt;
: [[Hypermedia]] for this resource.&lt;br /&gt;
&lt;br /&gt;
=====check=====&lt;br /&gt;
; check.id - ''string''&lt;br /&gt;
: Unique identifier for this check.&lt;br /&gt;
&lt;br /&gt;
; check.status&lt;br /&gt;
: Status of the memory check&lt;br /&gt;
&lt;br /&gt;
; check.lastCheck&lt;br /&gt;
: Time of last memory check&lt;br /&gt;
&lt;br /&gt;
; check.enabled - ''boolean''&lt;br /&gt;
: Is the check enabled&lt;br /&gt;
&lt;br /&gt;
; check.enabledAlert - ''boolean''&lt;br /&gt;
: Are alerts enabled&lt;br /&gt;
&lt;br /&gt;
=====options=====&lt;br /&gt;
; options.freeMemory - ''int''&lt;br /&gt;
: The memory usage limit for check alerts&lt;br /&gt;
; options.freeSwap - ''int''&lt;br /&gt;
: The swap file usage limit for check alerts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Response Codes ==&lt;br /&gt;
; Success&lt;br /&gt;
: ''HTTP/1.1 200 Ok''&lt;br /&gt;
&lt;br /&gt;
; Failure&lt;br /&gt;
: ''HTTP/1.1 401 Unauthorized'' : This server could not verify that you are authorized to access the document you requested.  Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.&lt;br /&gt;
: ''HTTP/1.1 403 Forbidden'' : You don't have permissions to access the resource&lt;br /&gt;
: ''HTTP/1.1 404 Not Found'' : The resource requested is not found.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
'''View memory check details'''&lt;br /&gt;
:'''GET''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/16&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 200 Ok&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Response Body:''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;memory&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeMemory&amp;quot;: 1024,&lt;br /&gt;
         &amp;quot;freeSwap&amp;quot;: 1024 &lt;br /&gt;
      }, &lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: null, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: null, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: false, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: true, &lt;br /&gt;
         &amp;quot;id&amp;quot;: 16&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/16&amp;quot;, &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Access a non-existing memory check'''&lt;br /&gt;
:'''GET''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/9999&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 404 Not Found&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Request a check for missing server or IP addresss'''&lt;br /&gt;
:'''GET''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;fake_server&amp;lt;/span&amp;gt;}/ipAddresses/{ip_address}/monitoring/memory/16&lt;br /&gt;
:'''GET''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;fake_ip&amp;lt;/span&amp;gt;}/monitoring/memory/16&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 404 Not Found&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
='''PUT''' /accounts/'''account'''/dedicatedServers/'''dedicated_server'''/ipAddresses/'''ip_address'''/monitoring/memory/'''id'''=&lt;br /&gt;
'''&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;This API call is deprecated!&amp;lt;/span&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Update memory check&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
; account - ''string''&lt;br /&gt;
; dedicated_server - ''string''&lt;br /&gt;
; ip_address - ''string''&lt;br /&gt;
; id - ''string''&lt;br /&gt;
: Id of the memory check.&lt;br /&gt;
&lt;br /&gt;
== Request==&lt;br /&gt;
=== JSON ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
            &amp;quot;enabled&amp;quot;: {enabled}, &lt;br /&gt;
            &amp;quot;enabledAlert&amp;quot;: {enabled_alert}&lt;br /&gt;
         }, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeMemory&amp;quot;: 1024,&lt;br /&gt;
         &amp;quot;freeSwap&amp;quot;: 2048 &lt;br /&gt;
      },&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====monitoring====&lt;br /&gt;
=====check=====&lt;br /&gt;
; check.enabled - ''boolean''&lt;br /&gt;
: Enable the check&lt;br /&gt;
&lt;br /&gt;
; check.enabledAlert - ''boolean''&lt;br /&gt;
: Enable alerts&lt;br /&gt;
&lt;br /&gt;
=====options=====&lt;br /&gt;
; options.freeMemory - ''int''&lt;br /&gt;
: The memory usage limit for check alerts&lt;br /&gt;
; options.freeSwap - ''int''&lt;br /&gt;
: The swap file usage limit for check alerts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Response==&lt;br /&gt;
=== JSON ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;{type}&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeMemory&amp;quot;: 1024,&lt;br /&gt;
         &amp;quot;freeSwap&amp;quot;: 2048 &lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: {status}, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: {last_check}, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: {enabled_alert}, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: {enabled}, &lt;br /&gt;
         &amp;quot;id&amp;quot;: {id}&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/{id}&amp;quot;, &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====monitoring====&lt;br /&gt;
; type - ''string''&lt;br /&gt;
: memory&lt;br /&gt;
&lt;br /&gt;
; links - ''list''&lt;br /&gt;
: [[Hypermedia]] for this resource.&lt;br /&gt;
&lt;br /&gt;
=====check=====&lt;br /&gt;
; check.id - ''string''&lt;br /&gt;
: Unique identifier for this check.&lt;br /&gt;
&lt;br /&gt;
; check.status&lt;br /&gt;
: Status of the memory check&lt;br /&gt;
&lt;br /&gt;
; check.lastCheck&lt;br /&gt;
: Time of last memory check&lt;br /&gt;
&lt;br /&gt;
; check.enabled - ''boolean''&lt;br /&gt;
: Is the check enabled&lt;br /&gt;
&lt;br /&gt;
; check.enabledAlert - ''boolean''&lt;br /&gt;
: Are alerts enabled&lt;br /&gt;
&lt;br /&gt;
=====options=====&lt;br /&gt;
; options.freeMemory - ''int''&lt;br /&gt;
: The memory usage limit for check alerts&lt;br /&gt;
; options.freeSwap - ''int''&lt;br /&gt;
: The swap file usage limit for check alerts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Response Codes ==&lt;br /&gt;
; Success&lt;br /&gt;
: ''HTTP/1.1 200 Ok''&lt;br /&gt;
&lt;br /&gt;
; Failure&lt;br /&gt;
: ''HTTP/1.1 400 Bad Request''&lt;br /&gt;
: ''HTTP/1.1 401 Unauthorized'' : This server could not verify that you are authorized to access the document you requested.  Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.&lt;br /&gt;
: ''HTTP/1.1 403 Forbidden''&lt;br /&gt;
: ''HTTP/1.1 404 Not Found'' : The resource requested is not found.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
'''Update existing memory check''''&lt;br /&gt;
:'''PUT''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/16&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: true, &amp;quot;enabledAlert&amp;quot;: false}, &amp;quot;options&amp;quot;: {&amp;quot;freeMemory&amp;quot;: 2048, &amp;quot;freeSwap&amp;quot;: 2048}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 200 Ok&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Response Body:''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;memory&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeMemory&amp;quot;: 2048,&lt;br /&gt;
         &amp;quot;freeSwap&amp;quot;: 2048 &lt;br /&gt;
      }, &lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: ERROR, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: 1334148166, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: false, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: true, &lt;br /&gt;
         &amp;quot;id&amp;quot;: 16&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/16&amp;quot;, &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Bad request - update a memory check with wrong request data'''&lt;br /&gt;
:'''PUT''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/16&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;options&amp;quot;: {&amp;quot;freeMemory&amp;quot;: 1024, &amp;quot;freeSwap&amp;quot;: 1024}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 400 Bad Request&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Response Body:''&lt;br /&gt;
 {&amp;quot;badRequest&amp;quot;: {&amp;quot;message&amp;quot;: &amp;quot;POST data error&amp;quot;, &amp;quot;code&amp;quot;: 400, &amp;quot;details&amp;quot;: {&amp;quot;monitoring.check&amp;quot;: &amp;quot;Required&amp;quot;}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Try to update a missing memory check resource'''&lt;br /&gt;
:'''PUT''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/9999&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: true, &amp;quot;enabledAlert&amp;quot;: false}, &amp;quot;options&amp;quot;: {&amp;quot;freeMemory&amp;quot;: 1024, &amp;quot;freeSwap&amp;quot;: 1024}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 404 Not Found&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
='''DELETE''' /accounts/'''account'''/dedicatedServers/'''dedicated_server'''/ipAddresses/'''ip_address'''/monitoring/memory/'''id'''=&lt;br /&gt;
'''&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;This API call is deprecated!&amp;lt;/span&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Delete memory check&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
; account - ''string''&lt;br /&gt;
; dedicated_server - ''string''&lt;br /&gt;
; ip_address - ''string''&lt;br /&gt;
; id - ''string''&lt;br /&gt;
: Id of the memory check.&lt;br /&gt;
&lt;br /&gt;
== Response Codes ==&lt;br /&gt;
; Success deleting the resource&lt;br /&gt;
: ''HTTP/1.1 204 No Content''&lt;br /&gt;
&lt;br /&gt;
; Failure&lt;br /&gt;
: ''HTTP/1.1 401 Unauthorized'' : This server could not verify that you are authorized to access the document you requested.  Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.&lt;br /&gt;
: ''HTTP/1.1 403 Forbidden''&lt;br /&gt;
: ''HTTP/1.1 404 Not Found'' : The resource requested is not found.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
'''Successfully delete a memory check'''&lt;br /&gt;
:'''DELETE''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/16&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 204 No Content&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Request to delete a missing memory check resource'''&lt;br /&gt;
:'''DELETE''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/memory/9999&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 404 Not Found&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Hostway API]]&lt;br /&gt;
[[Category:Dedicated Server Monitoring API]]&lt;/div&gt;</summary>
		<author><name>Mitko.georgiev</name></author>	</entry>

	</feed>