v1

latestOpenAPI 3.0.12026-07-17221165.2 KB
PMAPI HOST SERVICES

Modifies values of performance metrics

Some performance metrics allow their value to be modified, for example to re-initialize counters or to modify control variables.

This operation takes a single metric name to modify, and optionally specific instances. The mandatory value will be interpreted according to the type of the metric being modified.

If successful, the response from these requests is a JSON document.

$ curl -s http://localhost:44322/pmapi/store?name=pmcd.control.timeout&value=10

Reference: pmStore(3)

get/pmapi/store

Query parameters

inamestring

Comma-separated list of instance names

instancenumber

Comma-separated list of instance numbers

namestring

An individual metric name

{"stackTrail":"paths:/pmapi/store:get:parameters:3:schema","oasType":"schema","type":"unknown"}

New value for the given metric instance(s)

hostspecstring

Host specification as described in PCPIntro(1)

contextnumber

Web context number (optional like hostspec)

polltimeoutnumber

Seconds of inactivity before closing context

clientstring

Request identifier sent back with response

Response

OK