Create a new monitored user

POST /api/entity_analytics/monitoring/users

Spaces method and path for this operation:

post /s/{space_id}/api/entity_analytics/monitoring/users

Refer to Spaces for more information.

application/json

Body Required

  • entity_analytics_monitoring object

    Entity analytics monitoring configuration for the user

    Hide entity_analytics_monitoring attribute Show entity_analytics_monitoring attribute object
    • labels array[object]

      Array of labels associated with the user

      Not more than 100 elements.

      Hide labels attributes Show labels attributes object
      • field string

        The field name for the label

        Maximum length is 256.

      • source string

        The source where this label was created (api, csv, or index_sync)

        Values are api, csv, or index_sync.

      • value string

        The value of the label

        Maximum length is 256.

  • user object
    Hide user attribute Show user attribute object
    • name string

      The name of the user.

      Maximum length is 512.

Responses

  • 200 application/json

    User created successfully

    Hide response attributes Show response attributes object
    • entity_analytics_monitoring object
      Hide entity_analytics_monitoring attribute Show entity_analytics_monitoring attribute object
      • labels array[object]
        Hide labels attributes Show labels attributes object
        • field string Required

          Maximum length is 256.

        • source string Required
        • value string Required

          Maximum length is 256.

    • id string

      Maximum length is 256.

    • labels object
      Hide labels attributes Show labels attributes object
      • source_ids array[string]

        Not more than 100 elements. Maximum length of each is 256.

      • source_integrations array[string]

        Not more than 100 elements. Maximum length of each is 256.

      • sources array

        Not more than 100 elements. Values are csv, index_sync, or api.

    • user object
      Hide user attributes Show user attributes object
      • is_privileged boolean

        Indicates if the user is privileged.

      • name string

        Maximum length is 512.

      • entity object
        Hide entity attribute Show entity attribute object
        • attributes object
          Hide attributes attribute Show attributes attribute object
          • Privileged boolean

            Indicates if the user is privileged.

    • @timestamp string(date-time)
    • event object
      Hide event attributes Show event attributes object
      • @timestamp string(date-time)
      • ingested string(date-time)
POST /api/entity_analytics/monitoring/users
curl \
 --request POST 'https://localhost:5601/api/entity_analytics/monitoring/users' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"entity_analytics_monitoring":{"labels":[{"field":"string","source":"api","value":"string"}]},"user":{"name":"string"}}'