Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource pagerduty_schedule does not include final_schedule and rendered_coverage_percentage #332

Closed
Padorax opened this issue May 10, 2021 · 1 comment

Comments

@Padorax
Copy link
Contributor

Padorax commented May 10, 2021

Issue

The PagerDuty schedule API exposes some useful fields that are currently missing from the provider output.

  1. rendered_coverage_percentage under schedule_layers.
  2. final_schedule with rendered_coverage_percentage.

These fields can help users check whether there are coverage gaps, especially in final_schedules. So they don't miss alerts indeliberately.

Current output

       foo_schedule                = {
           description = "foo_schedule Schedule"
           id           = <schedule_id>
           layer       = [
               {
                   end                          = null
                   id                           = (known after apply)
                   name                         = "Layer 1"
                   restriction                  = []
                   rotation_turn_length_seconds = 604800
                   rotation_virtual_start       = "2019-05-10T11:00:00+01:00"
                   start                        = "2021-03-05T00:00:00Z"
                   users                        = [
                       "<user_id>",
                    ]
                },
            ]
           name        = "foo_schedule"
           overflow    = null
           time_zone   = "Europe/London"
        }
    }

Provider version

terraform {
    pagerduty = {
      version = "1.9.6"
    }
}
@Padorax Padorax changed the title pagerduty_schedule does not include final_schedule and rendered_coverage_percentage resource pagerduty_schedule does not include final_schedule and rendered_coverage_percentage May 17, 2021
@imjaroiswebdev
Copy link
Contributor

Addressed in #528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants