Skip to content

[FEATURE] Add pup logs saved-views (list/get/create/delete) #488

@TheBlueSky

Description

@TheBlueSky

Is your feature request related to a problem?

When bootstrapping a new service, we routinely need to create N logs Saved Views (per environment, per Lambda, etc.) and link them from the service README. Pup has no command for this today (pup logs --help shows aggregate/archives/custom-destinations/list/metrics/query/restriction-queries/search; nothing for saved views). Datadog's public REST API also does not currently document a saved-views endpoint, but the Web UI clearly creates them, probably via some internal endpoint (URLs use ?saved-view-id=<numeric-id>).

Describe the solution you'd like

Expose a pup logs saved-views {list,get,create,delete} command group, ideally backed by a public Datadog API.

Describe alternatives you've considered

Continued creating logs Saved Views from the UI.

Additional context

This request is mainly triggered by a workflow that we want to automate using AI agents.

Proposed command syntax (if applicable)

pup logs saved-views {list,get,create,delete}  --the-usual-flags

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions