Basis of Presentation and Summary of Significant Accounting Policies | 2. Basis of Presentation and Summary of Significant Accounting Policies Basis of Presentation The consolidated financial statements have been prepared in conformity with accounting principles generally accepted in the United States of America (“U.S. GAAP”). Fiscal Year The Company's fiscal year ends on January 31. For example, references to fiscal 2023 and 2022 refer to the fiscal year ended January 31, 2023 and 2022, respectively. Use of Estimates The preparation of the consolidated financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities, disclosure of contingent assets and liabilities at the date of the financial statements, and the reported amounts of revenue and expenses during the reporting period. Such estimates include, but are not limited to, allocation of revenue to the license element in the Company's self-managed subscriptions, estimating the amortization period for capitalized costs to obtain a contract, allowance for doubtful accounts, stock-based compensa tion expense, fair value of contingent consideration, fair valuation of retained interest in an investee on loss of control, valuation allowance for deferred income taxes, valuation of intangibles assets and impairment of goodwill and equity method investments. The Company bases these estimates on historical and anticipated results, trends, and various other assumptions that it believes are reasonable under the circumstances, including assumptions as to future events. Actual results could differ from those estimates. Principles of Consolidation The consolidated financial statements include 100% of the accounts of wholly owned and majority owned subsidiaries as well as a variable interest entity for which our Company is the primary beneficiary. The ownership interest of other investors is recorded as noncontrolling interest. All intercompany accounts and transactions have been eliminated in consolidation. On December 3, 2021, the Company completed the acquisition of Opstrace, Inc., a technology company based in San Francisco, California. Our consolidated financial statements include the operating results of the acquired entity beginning from the date of acquisition. Foreign Currency The reporting currency of the Company is the U.S. dollar. The Company determines the functional currency of each foreign subsidiary and the variable interest entity in accordance with ASC 830, Foreign Currency Matters, based on the currency of the primary economic environment in which each subsidiary and the variable interest entity operate. Items included in the financial statements of such subsidiaries and the variable interest entity are measured using that functional currency. For subsidiaries where the U.S. dollar is the functional currency, foreign currency denominated monetary assets and liabilities are re-measured into U.S. dollars at current exchange rates and foreign currency denominated non-monetary assets and liabilities are re-measured into U.S. dollars at historical exchange rates. Gains or losses from foreign currency remeasurement and settlements are included in foreign exchange gains (losses), net which is presented within other income (e xpense), net on the consolidated statements of operations. For the years ended January 31, 2023 , 2022 and 2021, the Company recognized foreign exchange gains (losses), net of $4.4 million, $(29.1) million and $23.4 million, respectively. For subsidiaries and the variable interest entity where the functional currency is other than the U.S. dollar, the Company uses the period-end exchange rates to translate assets and liabilities, the average monthly exchange rates to translate revenue and expenses, and historical exchange rates to translate stockholders’ equity (deficit) into U.S. dollars. The Company records translation gains and losses in accumulated other c omprehensive income (loss) as a component of stockholders’ equity (deficit) in the consolidated balance sheets. For the years ended January 31, 2023, 2022 and 2021, the Company recognized foreign translation adjustments of $(5.9) million, $27.6 million and $(24.0) million, respectively. Cash, Cash Equivalents, and Restricted Cash Cash and cash equivalents as of January 31, 2023 and 2022, consists of cash held in checking and savings accounts, investments in money market accounts and certain highly-liquid investments. The Company considers all highly-liquid investments purchased with an original or remaining maturity of three months or less at the date of purchase to be cash equivalents. Restricted cash as of January 31, 2023 and 2022, consists of a $2.5 million acquisition related security deposit withheld in an escrow for any potential post-closing indemnification claims. Refer to “Note 7. Business Combination .” Short-Term Investments - Marketable Securities The Company classifies its marketable securities with stated maturities of three months and greater at the date of purchase as short-term investments due to its ability to use these securities to support the Company’s current operations. As of January 31, 2023, a ll short-term investments are classified as available-for-sale and are reported at fair value, which is based on quoted market prices for such securities, if available, or based on quoted market prices of financial instruments with similar characteristics. If the fair value of a security falls below its amortized cost, the carrying value is reduced to its fair value if management intends to sell or it is more likely than not that it will be required to sell before recovery of the amortized cost basis. If neither of these conditions are satisfied, impairment is assessed for credit losses by comparing the present value of expected cash flows with the amortized cost basis, and an allowance for credit losses is recorded for the excess of amortized cost over expected cash flows. Impairment losses not attributable to credit losses are reported as a separate component of other comprehensive loss, net of tax. As of January 31, 2022, short-term investments comprised of certificates of deposit with a bank with an original maturity of greater than three months at the date of purchase. Such investments were carried at amortized cost, which approximated their fair value. The cost of securities sold is based on the specific-identification method and realized gains and losses on available-for-sale securities are recognized upon sale and are included in other income (expense), net in the consolidated statements of operations. Interest on securities classified as available-for-sale is included within Interest income on our consolidated statements of operations. Accounts Receivable and Allowance for Doubtful Accounts Accounts receivable, which represent trade receivables from the Company’s customers, are recorded at the invoiced amount and do not bear interest. The Company extends credit of typically 30 to 60 days to its customers in the normal course of business and does not require collateral from its customers. The allowance for doubtful accounts is the Company’s best estimate of the amount of expected credit losses in existing accounts receivable. As of January 31, 2023 and 2022, the allowance for doubtful accounts was $1.6 million and $1.1 million, respectively. Accounts receivable deemed uncollectible are written off against the allowance when identified. Concentration of Credit Risk and Significant Customers Financial instruments that potentially subject the Company to concentrations of credit risk consist primarily of cash, cash equivalents, restricted cash, short-term investments, and accounts receivable. At times, cash deposits may be in excess of insured limits. The Company believes that the financial institutions or corporations that hold its cash, cash equivalents, restricted cash, and short-term investments are financially sound and, accordingly, minimal credit risk exists with respect to these balances. The Company maintains allowances for potential credit losses on accounts receivable when deemed necessary. The Company uses various distribution channels. As of January 31, 2023, one of these channel partners represented 12% of the accounts receivable balance, while as of January 31, 2022 another channel partner represented 14% of the accounts receivable balance. There were no individual customers whose balance represented more than 10% of accounts receivable as of January 31, 2023 and 2022, respectively. There were no customers whose revenue represented more than 10% of total revenue during the years ended January 31, 2023, 2022 and 2021. Fair Value of Financial Instruments We define fair value as the price that would be received from selling an asset, or paid to transfer a liability, in an orderly transaction between market participants at the measurement date. When determining the fair value measurements for assets and liabilities which are required to be recorded at fair value, we consider the principal or most advantageous market in which to transact and the market-based risk. We apply fair value accounting for all financial assets and liabilities that are recognized or disclosed at fair value in the financial statements on a recurring basis. The carrying amounts reported in the consolidated financial statements approximate the fair value for cash equivalents, restricted cash, short-term investments, accounts receivable, accounts payable and accrued liabilities due to their short-term nature. The Company also recorded at fair value acquisition related contingent considerations further discussed in “Note 7. Business Combination.” The Company measures assets and liabilities at fair value at each reporting period using a fair value hierarchy which requires it to maximize the use of observable inputs and minimize the use of unobservable inputs when measuring fair value. U.S. GAAP describes a fair value hierarchy based on three levels of inputs, of which the first two are considered observable and the last unobservable, to measure the fair value: Level 1 – Inputs are unadjusted quoted prices in active markets for identical assets or liabilities. Level 2 – Inputs other than Level 1 that are observable, either directly or indirectly, such as quoted prices for similar assets or liabilities, quoted prices in markets that are not active, or other inputs that are observable or can be corroborated by observable market data for substantially the full term of the assets or liabilities. Level 3 – Inputs are unobservable based on the Company’s own assumptions used to measure assets and liabilities at fair value. The inputs require significant management judgment or estimation. Fair value estimates are made at a specific point in time based on relevant market information and information about the financial or nonfinancial asset or liability. Revenue Recognition The Company generates revenue primarily from offering self-managed (on-premise) and SaaS subscriptions. Revenue is also generated from professional services, including consulting and training. In accordance with ASC 606, revenue is recognized when a customer obtains control of the promised products and services. The amount of revenue recognized reflects the consideration that the Company expects to be entitled to receive in exchange for these products and services. To achieve the core principle of this standard, the Company applies the following five-step model as a framework: 1) Identify the contract with a customer. We consider the terms and conditions of our arrangements with customers to identify contracts under ASC 606. We consider that we have a contract with a customer when the contract is approved, we can identify each party's rights regarding the products and services to be transferred, we can identify the payment terms for the products and services, we have determined the customer has the ability and intent to pay, and the contract has commercial substance. We apply judgment in determining the customer's ability and intent to pay, which is based upon factors including the customer's historical payment experience or, for new customers, credit and financial information pertaining to the customers. At contract inception, we also evaluate whether two or more contracts should be combined and accounted for as a single contract. Further, contract modifications generally qualify as a separate contract. The typical term of a subscription contract for self-managed or SaaS offering is one to three years. Our contracts are non-cancelable over the contract term and we act as principal in all our customer contracts. Customers have the right to terminate their contracts generally only if we breach the contract and we fail to remedy the breach in accordance with the contractual terms. 2) Identify the performance obligations in the contract . Performance obligations in our contracts are identified based on the products and services that will be transferred to the customer that are both capable of being distinct, whereby the customer can benefit from the product or service either on its own or together with other resources that are readily available from third parties or from us, and are distinct in the context of the contract, whereby the transfer of the product or service is separately identifiable from other promises in the contract. Our self-managed subscriptions include two performance obligations: (i) to provide access to proprietary features in our software, and (ii) to provide support and maintenance (including the combined obligation to provide software updates on a when-and-if-available basis). Our SaaS products provide access to hosted software as well as support, which is evaluated to be a single performance obligation. Services-related performance obligations relate to the provision of consulting and training services. These services are distinct from subscriptions and do not result in significant customization of the software except in certain limited unique contracts. Some of our customers have the option to purchase additional licenses or renew at a stated price. These options are evaluated on a case-by-case basis but generally do not provide a material right as they are either at the same price as the existing licenses or are within our range of standalone selling price (“SSP”) and, as such, would not result in a separate performance obligation. Where material rights are identified in our contracts, they are treated as separate performance obligations. 3) Determine the transaction price . We determine transaction price based on the consideration to which we expect to be entitled in exchange for transferring products and services to the customer. Variable consideration is included in the transaction price only to the extent it is probable that a significant future reversal of cumulative revenue under the contract will not occur when the uncertainty associated with the variable consideration is resolved. Our contracts are non-refundable and non-cancellable. We do not offer refunds, rebates, or credits to our customers in the normal course of business. The impact of variable considerations has not been material. For contracts with a one year term, we applied a practical expedient available under ASC 606 and made no evaluation for the existence of a significant financing component. In these contracts, at contract inception, the period between when we expect to transfer a promised product or service to the customer and when the customer pays for that product or service will be one year or less. For contracts with terms of more than a year, we have applied judgment in determining that advance payments in such contracts are not collected with the primary intention of availing finance and therefore, do not represent a significant financing component. Revenue is recognized net of any taxes collected from customers which are subsequently remitted to governmental entities (e.g., sales tax and other indirect taxes). We do not offer the right of refund in our contracts. 4) Allocate the transaction price to the performance obligations in the contract. If the contract contains a single performance obligation, the entire transaction price is allocated to the single performance obligation. For contracts that contain multiple performance obligations, we allocate the transaction price for each contract to each performance obligation based on the relative SSP for each performance obligation. We use judgment in determining the SSP for our products and services. We typically assess the SSP for our products and services on an annual basis or when facts and circumstances change. To determine SSP, we maximize the use of observable standalone sales and observable data, where available. In instances where performance obligations do not have observable standalone sales, we utilize available information that may include other observable inputs or use the expected cost-plus margin approach to estimate the price we would charge if the products and services were sold separately. The expected cost-plus margin approach is currently used to determine SSP for each distinct performance obligation for self-managed subscriptions. We have concluded that (i) the right to use the software and (ii) the right to receive technical support and software fixes and updates are two distinct performance obligations in our self-managed subscriptions. Since neither of these performance obligations are sold on a standalone basis, we estimate SSP for each performance obligation using a model based on the “expected cost-plus margin” approach and update the model on an annual basis or when facts and circumstances change. This model uses observable data points to develop the main inputs and assumptions, which include the estimated historical costs to develop the paid features in the software license and the estimated future costs to provide post-contract customer support. 5) Revenue is recognized when or as we satisfy a performance obligation . Revenue is recognized at the time the related performance obligation is satisfied by transferring the promised products and services to a customer. We recognize revenue when we transfer control of the products and services to our customers for an amount that reflects the consideration that we expect to receive in exchange for those products and services. All revenue is generated from contracts with customers. Subscription - self-managed and SaaS Subscription - self-managed The Company's self-managed subscriptions include support, maintenance, upgrades, and updates on a when-and-if-available basis. Revenue for self-managed subscriptions is recognized ratably over the contract period based on the stand-ready nature of subscription elements. The Company offers two tiers of paid subscriptions as part of the self-managed model: Premium and Ultimate. Subscriptions for self-managed licenses include both (i) a right to use the underlying software (License revenue - Self managed) and (ii) a right to receive post-contract customer support during the subscription term (Subscription revenue - Self managed). Post-contract customer support comprises maintenance services (including updates and upgrades to the software on a when-and-if-available basis) and support services. The Company has concluded that the right to use the software, which is recognized upon delivery of the license, and the right to receive technical support and software fixes and updates, which is recognized ratably over the term of the arrangement, are two distinct performance obligations. Since neither of these performance obligations are sold on a standalone basis, the Company estimates the SSP for each performance obligation using a model based on the “expected cost-plus margin” approach and updates the model on an annual basis or when facts and circumstances change. This model uses observable data points to develop the main inputs and assumptions which include the estimated historical costs to develop the paid features in the software license and the estimated future costs to provide post-contract customer support. Based on this model, the Company allocated between 1 to 23% of the entire transaction price to the right to use the underlying software (License revenue - Self managed) and allocated the remaining value of the transaction to the right to receive post-contract customer support (Subscription revenue - Self managed) during the period covered by these consolidated financial statements. The typical term of a subscription contract for self-managed offering is one to three years. As of January 2021, Starter tier is no longer offered to new customers but remains available for a limited transitory period to our existing customers. SaaS We also offer two tiers of paid SaaS subscriptions: Premium and Ultimate. These subscriptions provide access to our latest managed version of our product hosted in a public or private cloud based on the customer’s preference. Revenue from our SaaS products (Subscription revenue - SaaS) is recognized ratably over the contract period when the performance obligation is satisfied. The typical term of a subscription contract for SaaS offering is one to three years. As of January 2021, Starter tier is no longer offered to new customers but remains available for a limited transitory period to our existing customers. License - self-managed and other The license component of our self-managed subscriptions reflects the revenue recognized by providing customers with rights to use proprietary software features. The Company allocates between 1 to 23% of the transaction value to License revenue, which is recognized upfront when the software license is made available to our customers. Other revenue consists of professional services revenue which is derived from fixed fee and time and materials offerings, subject to customer acceptance. Given the Company’s limited history of providing professional services, uncertainty exists about customer acceptance and therefore, control is presumed to transfer upon confirmation from the customer, as defined in each professional services contract. Accordingly, revenue is recognized upon satisfaction of all requirements per the applicable contract. Revenue from professional services provided on a time and material basis is recognized over the periods services are delivered. The Company presents financial information about disaggregation of revenue in “Note 3. Revenues” of the consolidated financial statements. Deferred Revenue and Contract Assets Contract liabilities consist of deferred revenue and include payments received in advance of performance under the contract. Such amounts are recognized as revenue over the contractual period. The portion of deferred revenue that the Company will recognize during the twelve-month period from the balance sheet date is recorded within current liabilities and the remaining portion is recorded as long-term. The Company receives payments from customers based upon contractual billing schedules and accounts receivable are recorded when the right to consideration becomes unconditional. Customers are generally billed in advance, including some multi-year contracts, but the majority of customers in multi-year contracts specifically request to pay annually in advance. Payment terms on invoiced amounts are typically 30 to 60 days. In limited cases, the Company has offered deferred payment terms of a maximum of one year in contracts with a one year contractual term. For multi-year license subscriptions, we generally invoice customers annually at the beginning of each annual coverage period and the license revenue for the full multi-year term is recognized upfront on delivery from deferred revenue. Where the value of revenue recognized exceeds the value of amounts invoiced for a contract at the end of a reporting period, it is reclassed from deferred revenue to contract assets until invoiced. Contract assets are included in prepaid expenses and other current assets on the consolidated balance sheets. During the years ended January 31, 2023, 2022 and 2021, $145.9 million, $87.1 million and $58.1 million, respectively, of revenue was recognized, which was included in the corresponding deferred revenue balance at the beginning of the reporting periods presented. The increase in deferred revenue balances for the periods presented is mainly attributable to the growth of contracts with new as well as existing customers. Remaining Performance Obligations As of January 31, 2023 and 2022, the aggregate amount of the transaction price allocated to billed and unbilled remaining performance obligations for which revenue has not yet been recognized was approximately $435.9 million and $312.4 million, respectively. As of January 31, 2023, the Company expected to recognize approximately 71% of the transaction price as product or services revenue over the next 12 months and 92% over the next 24 months. Deferred Contract Acquisition Costs Sales commissions and bonuses that are direct and incremental costs of the acquisition of contracts with customers are capitalized. These costs are recorded as deferred contract acquisition costs on the consolidated balance sheets. The Company determines whether costs should be deferred when the costs are direct and incremental and would not have occurred absent the customer contract. The deferred commission and bonus amounts are recoverable through the future revenue streams from our customer contracts all of which are non-cancelable. Commissions and bonuses paid upon the acquisition of an initial contract are amortized over an estimated period of benefit which has been determined generally to be three years based on historical analysis of average customer life and useful life of our product offerings. Commissions paid for subsequent renewals are amortized over the renewal term. Amortization is recognized on a straight-line basis and included in sales and marketing expenses in the consolidated statements of operations. However, costs for commissions that are incremental to obtain a self-managed license contract are expensed immediately. The Company periodically reviews these deferred costs to determine whether events or changes in circumstances have occurred that could impact the period of benefit of these deferred costs. The Company did not recognize any impairment of deferred contract acquisition costs during the periods presented. The following table presents the change in deferred contract acquisition costs (in thousands): January 31, 2023 2022 2021 Beginning balance $ 39,106 $ 30,476 $ 14,375 Added during the year 47,985 41,998 34,570 Amortized during the year (44,958) (33,368) (18,469) Ending balance $ 42,133 $ 39,106 $ 30,476 Cost of Revenue Cost of revenue for self-managed and SaaS subscriptions consists primarily of allocated cloud-hosting costs paid to third party service providers, personnel-related costs associated with our customer support personnel, including contractors; and allocated overhead. Personnel-related expenses consist of salaries, benefits, bonuses, and stock-based compensation. Cost of self-managed license and other revenue consists primarily of contractor and personnel-related costs, including stock-based compensation expenses, associated with the professional services team and customer support team, and allocated overhead. Research and Development Costs related to research and development of the Company’s software offerings are expensed as incurred. These costs consist primarily of compensation paid to the Company's research and development personnel, including contractors; and allocated overhead associated with developing new features or enhancing existing features. The Company’s internal customer software development process follows an iterative process that results in more frequent software releases than do traditional sequential or waterfall development methodologies and also results in internal validation of the software releases very shortly before they are made available to customers. Therefore, to date, costs to develop software that is marketed externally have not been capitalized as the current software development process is essentially completed concurrently with the establishment of technological feasibility through internal validation of the software releases. As such, all related software development costs are expensed as incurred and included in research and development expenses in the consolidated statements of operations. To date, software development for internal use has been immaterial and no such costs have been capitalized. Advertising Costs Advertising costs are expensed as incurred and are included within sales and marketing expenses in the consolidated statements of operations. Th ese include costs incurred on public relations, website design, advertising, field marketing, and market research services. The Company incurred advertising costs of $27.3 million, $21.4 million and $14.1 million during the years ended January 31, 2023, 2022 and 2021, respectively. Loss Contingencies If an exposure to any potential claim or legal proceeding is considered probable and the amount can be reasonably estimated, the Company records a liability for the estimated loss. Significant judgment is required in both the determination of probability and the determination as to whether an exposure is reasonably estimable. If applicable, the Company records receivables for probable insurance or other third-party recoveries. Due to uncertainties related to these matters, accruals are based on the best information available at the time. As additional information becomes available, the Company reassesses the potential liability and may revise its estimates. These revisions in the estimates of the potential liabilities could have a material impact on the Company’s results of operations and financial position. Legal fees and other costs associated with such actions are expensed as incurred. Income Taxes The Company is subject to income taxes in the United States and several foreign jurisdictions. The Company records a provision for income taxes for the anticipated tax consequences of the reported results of operations using the asset and liability method. Under this method, the Company recognizes deferred tax assets and liabilities for the expected future tax consequences of temporary differences between the financial reporting and the tax basis of assets and liabilities, as well as for operating losses and tax credit carryforwards. Deferred tax assets and liabilities are measured using the tax rates that are expected to apply to taxable income for the years in which those tax assets and liabilities are expected to be realized or settled. Valuation allowances are established when necessary to reduce deferred tax assets to the amounts more likely than not expected to be realized. Management applies significant judgment in assessing the positive and negative evidence available in the determination of the amount of deferred tax assets that were more likely than not to be realized in the future. Future realization of deferred tax assets ultimately depends on the existence of sufficient taxable income of the appropriate character (for example, ordinary income or capital gain) within the carryback or carryforward periods available under the tax law. The Company regularly reviews the deferred tax assets for recoverability based on historical taxable income, projected future taxable income, the expected timing of the reversals of existing temporary differences, and tax planning strategies. The Company’s judgments regarding future profitability may change due to many factors, including future market conditions and the ability to successfully execute its business plans and/or tax planning strategies. Should there be a change in the ability to recover deferred tax assets, the tax provision would increase or decrease in the period in which the assessment is changed. Compliance with income tax regulations requires the Company to take certain tax positions. In assessing the exposure associated with various filing positions, the Company determines whether a tax position is more likely than not to be sustained upon examination, including resolution of any related appeals or litigation processes, based on the technical merits of the position. The Company uses a two-step approach to recognizing and measuring uncertain tax positions. The first step is to evaluate the tax position for recognition by determining if the weight of the available evidence indicates that it is more likely than not that the position will be sustained upon tax authority examination, includi |