Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DescriptionCreate a manual metric

URL

/api/metrics

HTTP MethodPOST

Security

Requires authentication and Administer System Administrator rolepermission

Examples

Use CaseExample Request

Create a manual metric:

  • Key: foo
  • Name: bar
  • Value type: INT
  • Description: blabla
  • Domain: Size

curl -X POST -v -u admin:admin 'http://localhost:9000/api/metrics/foo?name=bar&val_type=INT&description=blabla&domain=Size'

...

DescriptionUpdate a manual metric

URL

/api/metrics

HTTP MethodPUT

Security

Requires authentication and Administer System Administrator rolepermission

Examples

Use CaseExample Request

Update the manual metric whose key is 'foo':

  • New name: bar
  • New value type: INT
  • New description: blabla
  • New domain: Size

curl -X PUT -v -u admin:admin 'http://localhost:9000/api/metrics/foo?name=bar&val_type=INT&description=blabla&domain=Size'

...

DescriptionDelete a manual metric

URL

/api/metrics

HTTP MethodDELETE

Security

Requires authentication and Administer System Administrator rolepermission

Examples

Use CaseExample Request

Delete the manual metric whose key is 'foo'.

curl -X DELETE -v -u admin:admin 'http://localhost:9000/api/metrics/foo'

...