Add Logs To Context
Adds existing logs to a context within a project. The logs must already exist in the project and can be specified by their IDs or by log_args criteria. The same logs can be associated with multiple contexts.
The context_name can be provided as a string or as an object with a name field. If the context doesn’t exist, it will be created automatically.
If copy=True, new copies of the logs will be created and added to the context. If copy=False (default), the existing logs will be associated with the context.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Name of the project to create context in.
Body
Name of the context to add logs to.
List of log IDs to add to the context. At least one log ID must be provided.
Dictionary of arguments (e.g. filter_expr) to select logs by criteria.
If True, a copy of each log is created and then added to the context. If False, the existing log associations are simply used.