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

NLIC-2442 - prepare Warning Level documentation #12

Merged
merged 7 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/licensing-models/floating.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,12 @@ productModuleNumber0=Floating-DEMO&sessionId0=SampleSessionId&action0=checkIn
</netlicensing>
```
{: .ml-5 }

Warning Levels
--------------

Below are the default [warning levels](warning-level) associated with this licensing model.

| GREEN | YELLOW | RED |
|:------|:-------|:----|
| sessionsUsed < 80% | sessionsTotal < 10 AND sessionsUsed >= sessionsTotal<br>OR<br>sessionsUsed >= 80% | sessionsTotal >= 10<br>AND<br>sessionsUsed >= sessionsTotal |
9 changes: 9 additions & 0 deletions docs/licensing-models/multi-feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,12 @@ Validation response example:
</ns2:netlicensing>
```
{: .ml-5 }

Warning Levels
--------------

Below are the default [warning levels](warning-level) associated with this licensing model.

| GREEN | YELLOW | RED |
|:------|:-------|:----|
| always GREEN | N/A | N/A |
9 changes: 9 additions & 0 deletions docs/licensing-models/node-locked.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,12 @@ productModuleNumber0=MTEST-DEMO&nodeSecret0=HardwareOrGeneratedSecret
</ns2:netlicensing>
```
{: .ml-5 }

Warning Levels
--------------

Below are the default [warning levels](warning-level) associated with this licensing model.

| GREEN | YELLOW | RED |
|:------|:-------|:----|
| nodeSecretsUsed < 80% | nodeSecretsTotal < 10 AND nodeSecretsUsed >= nodeSecretsTotal<br>OR<br>nodeSecretsUsed >= 80% | nodeSecretsTotal >= 10<br>AND<br>nodeSecretsUsed >= nodeSecretsTotal |
9 changes: 9 additions & 0 deletions docs/licensing-models/pay-per-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,12 @@ productModuleNumber0=MTEST-DEMO&reserveQuantity0=20
</netlicensing> 
```
{: .ml-5 }

Warning Levels
--------------

Below are the default [warning levels](warning-level) associated with this licensing model.

| GREEN | YELLOW | RED |
|:------|:-------|:----|
| remainingQuantity < 80% | remainingQuantity >= 80% | remainingQuantity = 100% |
9 changes: 9 additions & 0 deletions docs/licensing-models/pricing-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,12 @@ Accept: application/xml
</ns2:netlicensing>
```
{: .ml-5 }

Warning Levels
--------------

Below are the default [warning levels](warning-level) associated with this licensing model.

| GREEN | YELLOW | RED |
|:------|:-------|:----|
| timeUsed < 80% | timeUsed >= 80% | timeUsed = 100% |
9 changes: 9 additions & 0 deletions docs/licensing-models/quota.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,12 @@ Validation response example:
</ns2:netlicensing>
```
{: .ml-5 }

Warning Levels
--------------

Below are the default [warning levels](warning-level) associated with this licensing model.

| GREEN | YELLOW | RED |
|:------|:-------|:----|
| totalQuota > 0 | N/A | totalQuota = 0 |
9 changes: 9 additions & 0 deletions docs/licensing-models/rental.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,12 @@ The logic is simple:
- When the amount of days remaining until expiration is more than "`yellowThreshold`", "`expirationWarningLevel`" == "`green`"
- When the amount of days remaining until expiration is more than "`redThreshold`", but less then or equal to the "`yellowThreshold`", "`expirationWarningLevel`" == "`yellow`"
- When the amount of days remaining until expiration is less then or equal to the "`redThreshold`", "`expirationWarningLevel`" == "`red`"

Warning Levels
--------------

Below are the default [warning levels](warning-level) associated with this licensing model.

| GREEN | YELLOW | RED |
|:------|:-------|:----|
| Time-volume not reached yellow threshold<br>AND<br>Time-volume not reached red threshold | Time-volume reached yellow threshold | No time-volume license associated with the feature license<br>OR<br>Time-volume license expired<br>OR<br>Time-volume reached red threshold |
9 changes: 9 additions & 0 deletions docs/licensing-models/subscription.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,12 @@ Accept: application/xml
</netlicensing>
```
{: .ml-5 }

Warning Levels
--------------

Below are the default [warning levels](warning-level) associated with this licensing model.

| GREEN | YELLOW | RED |
|:------|:-------|:----|
| timeUsed < 80% | timeUsed >= 80% | timeUsed = 100% |
9 changes: 9 additions & 0 deletions docs/licensing-models/try-n-buy.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,12 @@ Accept: application/xml
</ns2:netlicensing>
```
{: .ml-5 }

Warning Levels
--------------

Below are the default [warning levels](warning-level) associated with this licensing model.

| GREEN | YELLOW | RED |
|:------|:-------|:----|
| trialPeriodActive = true<br>AND<br>featureAquired = true | trialPeriodActive = true | trialPeriodActive = false<br>AND<br>featureAquired = false |
59 changes: 59 additions & 0 deletions docs/warning-level.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
layout: default
title: Warning Level
nav_order: 93
description: "Labs64 NetLicensing warning level"
permalink: warning-level
---

{{ page.title }}
================

The NetLicensing Warning Level feature provides vendors with valuable metrics regarding the current licensing status of a specific customer. Represented as a traffic light, the Warning Level indicates whether a customer profile is fully licensed, approaching under-licensing, or has reached under-licensing.

Important Clarifications
------------------------

- **Warning Level** vs. **Valid Status**: The Warning Level should not be confused with the `valid` status in the validation response. While the `valid` status indicates the current validity of a specific product module for a given customer at the time of the request, the Warning Level value provides information about potential or imminent changes in the licensing situation, highlighting any forthcoming under-licensing issues.
- **Purpose**: The Warning Level is intended to act as an indicator of the licensee's health and is not meant to replace the validation response. It serves solely as a supplementary metric, providing an early warning if the customer's licensing situation is likely to change soon or requires immediate action.

Supported Warning Levels
--------

The Warning Level can have one of the following values:
- **GREEN (Licensed):** The customer is licensed for all configured product modules.
- **YELLOW (Warning):** Some product modules are approaching under-licensed status.
- **RED (Underlicensed):** Some product modules have reached under-licensed status.

**Note:** The warning level is calculated with each validation request from the customer and cached for a period of time. The value may be evicted from cache due to extended inactivity (no validation requests) or license changes since the last validation. In such cases, the warning level is not returned via API and is shown as grey-colored `Unknown` in the UI. To force an update, send a validation request with the `dryRun` parameter set to `true` (or click refresh symbol in the UI). Be aware that some licenses only activate on the first non-dry validation request, which may cause the warning level to be incorrectly reported as RED or YELLOW if updated via a dry validation.

Access
------

The Warning Level can be accessed via the following [RESTful API](restful-api) methods:

### Validation

The `warningLevel` value is included in the [validation results](licensee-services#validate-licensee) for each product module.

**Example:**
```xml
<ns2:property name="warningLevel">GREEN</ns2:property>
```

### Get Licensee

The `warningLevel` value in the licensee object provides a combined [result](licensee-services#get-licensee) of all product modules and their respective warning levels. This is a cached value, and is not recalculated on the request - see the note in the "Supported Warning Levels" section above.

**Example:**
```xml
<ns2:property name="warningLevel">
{"RED":["M7W5JGF4D","MKFRA22H3"],"YELLOW":[],"GREEN":["MVA66EEE6"]}
</ns2:property>
```

Rules
-----

Each licensing model specifies its own ruleset for determining the warning level.
Please refer to the description of the particular [licensing model](licensing-models) to see its specific warning level ruleset.
Loading