Equity Incentive Plans - Summary of Stock-based Compensation Expense Recognized in Consolidated Statements of Operations (Details) - USD ($) $ in Thousands |
3 Months Ended |
9 Months Ended |
Jan. 31, 2022 |
Jan. 31, 2021 |
Jan. 31, 2022 |
Jan. 31, 2021 |
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |
|
|
|
|
| Stock-based compensation expense, net of amounts capitalized |
$ 37,393
|
$ 25,227
|
$ 97,553
|
$ 65,305
|
| Capitalized stock-based compensation expense |
70
|
0
|
152
|
0
|
| Total stock-based compensation expense |
37,463
|
25,227
|
97,705
|
65,305
|
| Cost of revenue—cost of subscription—self-managed and SaaS |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |
|
|
|
|
| Stock-based compensation expense, net of amounts capitalized |
2,064
|
1,839
|
6,262
|
5,065
|
| Cost of revenue—professional services |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |
|
|
|
|
| Stock-based compensation expense, net of amounts capitalized |
1,726
|
1,359
|
4,593
|
3,287
|
| Research and development |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |
|
|
|
|
| Stock-based compensation expense, net of amounts capitalized |
16,029
|
9,516
|
41,784
|
24,309
|
| Sales and marketing |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |
|
|
|
|
| Stock-based compensation expense, net of amounts capitalized |
12,545
|
8,372
|
30,798
|
22,519
|
| General and administrative |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |
|
|
|
|
| Stock-based compensation expense, net of amounts capitalized |
$ 5,029
|
$ 4,141
|
$ 14,116
|
$ 10,125
|