counter.fields

Get the available fields for a type (counter.types) of counter records.The counter.fields command is used to get the available fields for a type of counter records.

TR50 Request

{
  "1": {
    "command": "counter.fields",
    "params": {
      "type": "api.org.day"
    }
  }
}

Request Parameters

Name Type Required Description
type String Yes  Counter type of which fields to get.

TR50 Response

If the command is sent successfully a success message and the property value are returned. Otherwise, an error and error message will be returned.

{
  "1": {
    "success": true,
    "params": {
      "fields": [
        "OrgId",
        "service"
      ]
    }
  }
}

Response Parameters

Name Type Description
fields Array Counter type's fields that can be searched. These will differ between counter types.