Skip to content

Commit 313501d

Browse files
Merge pull request #252615 from kellydevens/main
Update resource-graph-samples.md
2 parents eb4237d + b59fc23 commit 313501d

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

articles/orbital/resource-graph-samples.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ and [Resource Graph samples by Table](../governance/resource-graph/samples/sampl
2323

2424
```kusto
2525
OrbitalResources
26-
|wheretype == 'microsoft.orbital/spacecrafts/contacts'andtodatetime(properties.reservationStartTime) >= now()
27-
|sort by todatetime(properties.reservationStartTime)
28-
| extend Contact_Profile = tostring(split(properties.contactProfile.id,"/")[-1])
29-
| extend Spacecraft = tostring(split(id,"/")[-3])
30-
|projectContact = tostring(name), Groundstation = tostring(properties.groundStationName), Spacecraft, Contact
26+
| where type == 'microsoft.orbital/spacecrafts/contacts' and todatetime(properties.reservationStartTime) >= now()
27+
| sort by todatetime(properties.reservationStartTime)
28+
| extend Contact_Profile = tostring(split(properties.contactProfile.id, "/")[-1])
29+
| extend Spacecraft = tostring(split(id, "/")[-3])
30+
| project Contact = tostring(name), Groundstation = tostring(properties.groundStationName), Spacecraft, Contact_Profile, Status=properties.status, Provisioning_Status=properties.provisioningState
3131
```
3232

3333
#### Sorted by ground station
@@ -46,16 +46,18 @@ OrbitalResources
4646
```kusto
4747
OrbitalResources
4848
| where type == 'microsoft.orbital/spacecrafts/contacts'
49-
| where todatetime(properties.reservationStartTime) >= now()
50-
| sort by Contact_Profile
49+
| where todatetime(properties.reservationStartTime) >= now()
5150
| extend Contact_Profile = tostring(split(properties.contactProfile.id, "/")[-1])
51+
| sort by Contact_Profile
5252
| extend Spacecraft = tostring(split(id, "/")[-3])
53-
| project Contact = tostring(name), Groundstation = tostring(properties.groundStationName), Spacecraft, Contact_Profile, Reservation_Start_Time = todatetime(properties.reservationStartTime), Reservation_End_Time = todatetime(properties.reservationEndTime), Status=properties.status, Provisioning_Status=properties.provisioningState
53+
| project Contact = tostring(name), Groundstation = tostring(properties.groundStationName), Spacecraft, Contact_Profile, Reservation_Start_Time = todatetime(properties.reservationStartTime), Reservation_End_Time = todatetime(properties.reservationEndTime), Status=properties.status, Provisioning_Status=properties.provisioningState
5454
```
5555

56-
### List Contacts from Past ‘x’ Days – sorted by reservation start time
56+
### List Contacts from Past ‘x’ Days
5757

58-
```kusto
58+
#### Sorted by reservation start time
59+
60+
```kust
5961
OrbitalResources
6062
| where type == 'microsoft.orbital/spacecrafts/contacts' and todatetime(properties.reservationStartTime) >= now(-1d)
6163
| sort by todatetime(properties.reservationStartTime)

0 commit comments

Comments
 (0)